diff --git a/autotests/folding/Makefile.fold b/autotests/folding/Makefile.fold --- a/autotests/folding/Makefile.fold +++ b/autotests/folding/Makefile.fold @@ -26,3 +26,11 @@ $(CC) bla.o $< \ -o bla.exe @echo "hello" + +# String Substitution +VAR := $(ANOTHER_VAR:%=%+1) + +rempl := x +foo := a b c +bar := foo +hello := $($(bar):a=$(rempl)) diff --git a/autotests/html/Makefile.html b/autotests/html/Makefile.html --- a/autotests/html/Makefile.html +++ b/autotests/html/Makefile.html @@ -32,4 +32,12 @@ $(CC) bla.o $< \ -o bla.exe @echo "hello" + +# String Substitution +VAR := $(ANOTHER_VAR:%=%+1) + +rempl := x +foo := a b c +bar := foo +hello := $($(bar):a=$(rempl)) diff --git a/autotests/input/Makefile b/autotests/input/Makefile --- a/autotests/input/Makefile +++ b/autotests/input/Makefile @@ -26,3 +26,11 @@ $(CC) bla.o $< \ -o bla.exe @echo "hello" + +# String Substitution +VAR := $(ANOTHER_VAR:%=%+1) + +rempl := x +foo := a b c +bar := foo +hello := $($(bar):a=$(rempl)) diff --git a/autotests/reference/Makefile.ref b/autotests/reference/Makefile.ref --- a/autotests/reference/Makefile.ref +++ b/autotests/reference/Makefile.ref @@ -26,3 +26,11 @@ $(CC) bla.o $< \
-o bla.exe
@echo "hello"
+
+# String Substitution
+VAR := $(ANOTHER_VAR:%=%+1)
+
+rempl := x
+foo := a b c
+bar := foo
+hello := $($(bar):a=$(rempl))
diff --git a/data/syntax/makefile.xml b/data/syntax/makefile.xml --- a/data/syntax/makefile.xml +++ b/data/syntax/makefile.xml @@ -10,7 +10,7 @@ @@ -341,7 +341,8 @@ - + + @@ -456,6 +457,16 @@ + + + + + + + + + +