michael@0: test = $0 michael@0: reverse = $2 $1 michael@0: twice = $1$1 michael@0: sideeffect = $(shell echo "called$1:" >>dummyfile) michael@0: michael@0: all: michael@0: test "$(call test)" = "test" michael@0: test "$(call reverse,1,2)" = "2 1" michael@0: # expansion happens *before* substitution, thank sanity michael@0: test "$(call twice,$(sideeffect))" = "" michael@0: test `cat dummyfile` = "called:" michael@0: @echo TEST-PASS