diff options
-rw-r--r-- | testcase/equal_and_semi_in_rule.mk | 7 | ||||
-rw-r--r-- | testcase/shell_var.mk | 14 |
2 files changed, 21 insertions, 0 deletions
diff --git a/testcase/equal_and_semi_in_rule.mk b/testcase/equal_and_semi_in_rule.mk new file mode 100644 index 0000000..4b70c1f --- /dev/null +++ b/testcase/equal_and_semi_in_rule.mk @@ -0,0 +1,7 @@ +test: foo bar + +foo: A=echo ; echo PASS +foo: + echo $(A) + +bar: ; echo PASS=PASS diff --git a/testcase/shell_var.mk b/testcase/shell_var.mk new file mode 100644 index 0000000..24f4f00 --- /dev/null +++ b/testcase/shell_var.mk @@ -0,0 +1,14 @@ +$(info $(SHELL)) + +SHELL:=/bin/echo + +$(info $(shell foo)) + +# TODO: Fix. +#echo=/bin/echo +#SHELL=$(echo) + +$(info $(shell bar)) + +test: + baz |