From eaad036407c9546be0de27f61745fef4b6856e56 Mon Sep 17 00:00:00 2001 From: johannst Date: Mon, 29 May 2023 20:34:16 +0000 Subject: deploy: d2013ee5952bbcf88906a832748783e372f3a939 --- development/make.html | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'development/make.html') diff --git a/development/make.html b/development/make.html index bb004a2..fe08ad1 100644 --- a/development/make.html +++ b/development/make.html @@ -83,7 +83,7 @@ @@ -197,7 +197,7 @@ aaa: bbb:

Running above Makefile gives:

-
@ = foobar
+
@ = foobar
 < = aaa
 ^ = aaa bbb
 + = aaa bbb bbb
@@ -214,6 +214,19 @@ bbb:
 
  • $(CURDIR): Path of current working dir after using make -C path
+

Arguments

+

Arguments specified on the command line override ordinary variable +assignments in the makefile (overriding variables).

+
VAR = abc
+all:
+	@echo VAR=$(VAR)
+
+
# make
+VAR=abc
+
+# make VAR=123
+VAR=123
+

Useful functions

Substitution references

Substitute strings matching pattern in a list.

-- cgit v1.2.3