main shinobi / tests / mk / gnu / features / vpathplus / t004 / mk
 1VPATH = work/
 2.SUFFIXES: .a .b .c .d
 3.PHONY: general rename notarget intermediate
 4
 5%.a:
 6%.b:
 7%.c:
 8%.d:
 9
10%.a : %.b ; cat $^ > $@
11%.b : %.c ; cat $^ > $@ 2>/dev/null || exit 1
12%.c :: %.d ; cat $^ > $@
13
14# General testing info:
15
16general: foo.b
17foo.b: foo.c bar.c
18
19# Rename testing info:
20
21rename: $(VPATH)/foo.c foo.d
22
23# Target not made testing info:
24
25notarget: notarget.b
26notarget.c: notarget.d ; -@echo "not creating $@ from $^"
27
28# Intermediate files:
29
30intermediate: inter.a