1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/build/pymake/tests/call.mk Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,12 @@ 1.4 +test = $0 1.5 +reverse = $2 $1 1.6 +twice = $1$1 1.7 +sideeffect = $(shell echo "called$1:" >>dummyfile) 1.8 + 1.9 +all: 1.10 + test "$(call test)" = "test" 1.11 + test "$(call reverse,1,2)" = "2 1" 1.12 +# expansion happens *before* substitution, thank sanity 1.13 + test "$(call twice,$(sideeffect))" = "" 1.14 + test `cat dummyfile` = "called:" 1.15 + @echo TEST-PASS