michael@0: $(shell touch foo.testfile1 foo.testfile2) michael@0: michael@0: # when a rule has commands and no prerequisites, should it be executed? michael@0: # double-colon: yes michael@0: # single-colon: no michael@0: michael@0: all: foo.testfile1 foo.testfile2 michael@0: test "$$(cat foo.testfile1)" = "" michael@0: test "$$(cat foo.testfile2)" = "remade:foo.testfile2" michael@0: @echo TEST-PASS michael@0: michael@0: foo.testfile1: michael@0: @echo TEST-FAIL michael@0: michael@0: foo.testfile2:: michael@0: printf "remade:$@"> $@