1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/build/pymake/tests/implicit-terminal.mk Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,16 @@ 1.4 +#T returncode: 2 1.5 + 1.6 +# the %.object rule is "terminal". This means that additional implicit rules cannot be chained to it. 1.7 + 1.8 +all: test.prog 1.9 + test "$$(cat $<)" = "Program: Object: Source: test.source" 1.10 + @echo TEST-FAIL 1.11 + 1.12 +%.prog: %.object 1.13 + printf "Program: %s" "$$(cat $<)" > $@ 1.14 + 1.15 +%.object:: %.source 1.16 + printf "Object: %s" "$$(cat $<)" > $@ 1.17 + 1.18 +%.source: 1.19 + printf "Source: %s" $@ > $@