michael@0: #T returncode: 2 michael@0: michael@0: # the %.object rule is "terminal". This means that additional implicit rules cannot be chained to it. michael@0: michael@0: all: test.prog michael@0: test "$$(cat $<)" = "Program: Object: Source: test.source" michael@0: @echo TEST-FAIL michael@0: michael@0: %.prog: %.object michael@0: printf "Program: %s" "$$(cat $<)" > $@ michael@0: michael@0: %.object:: %.source michael@0: printf "Object: %s" "$$(cat $<)" > $@ michael@0: michael@0: %.source: michael@0: printf "Source: %s" $@ > $@