summaryrefslogtreecommitdiffstats
path: root/build/pymake/tests/implicit-chain.mk
blob: 16288b3f5a8d016da21630c9162cdb8b1fb3b60b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
all: test.prog
	test "$$(cat $<)" = "Program: Object: Source: test.source"
	@echo TEST-PASS

%.prog: %.object
	printf "Program: %s" "$$(cat $<)" > $@

%.object: %.source
	printf "Object: %s" "$$(cat $<)" > $@

%.source:
	printf "Source: %s" $@ > $@