1 test: foo 2 3 foo: foo.o 4 echo link foo 5 6 %.o: %.c 7 echo compile from $< to $@ 8 9 foo.c: genc 10 echo generate $@ 11 12 .PHONY: genc 13 genc: 14