diff options
Diffstat (limited to 'python/pymake/tests/implicit-terminal.mk')
-rw-r--r-- | python/pymake/tests/implicit-terminal.mk | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/python/pymake/tests/implicit-terminal.mk b/python/pymake/tests/implicit-terminal.mk new file mode 100644 index 000000000..db2e244ed --- /dev/null +++ b/python/pymake/tests/implicit-terminal.mk @@ -0,0 +1,16 @@ +#T returncode: 2 + +# the %.object rule is "terminal". This means that additional implicit rules cannot be chained to it. + +all: test.prog + test "$$(cat $<)" = "Program: Object: Source: test.source" + @echo TEST-FAIL + +%.prog: %.object + printf "Program: %s" "$$(cat $<)" > $@ + +%.object:: %.source + printf "Object: %s" "$$(cat $<)" > $@ + +%.source: + printf "Source: %s" $@ > $@ |