[PATCH 1/1] .DEFAULT_GOAL is a variable, not a target

Ariel Otilibili Anieli otilibil at eurecom.fr
Thu Sep 21 13:40:22 UTC 2023


Makefile has been working because, in the script, `wg` appears as  
first target.

https://www.gnu.org/software/make/manual/html_node/Special-Variables.html

Signed-off-by: Ariel Otilibili <otilibil at eurecom.fr>
---
  src/Makefile | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Makefile b/src/Makefile
index 0533910..9f450e7 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -108,7 +108,7 @@ check: clean
         scan-build --html-title=wireguard-tools -maxloop 100 --view  
--keep-going $(MAKE) wg

  all: wg
-.DEFAULT_GOAL: all
+.DEFAULT_GOAL := all
  .PHONY: clean install check

  -include *.d
-- 
2.42.0

-------------------------------------------------------------------------------
This message was sent using EURECOM Webmail: http://webmail.eurecom.fr



More information about the WireGuard mailing list