1
2.PHONY: all
3
4all: case.1 case.2 case.3 case.4
5
6# We can't have this, due to "Implicit Rule Search Algorithm" step 5c
7#xxx: void
8
9# 1 - existing file
10%.1: void ; @exit 1
11%.1: t001.mk ; @exit 0
12
13# 2 - phony
14%.2: void ; @exit 1
15%.2: 2.phony ; @exit 0
16.PHONY: 2.phony
17
18# 3 - implicit-phony
19%.3: void ; @exit 1
20%.3: 3.implicit-phony ; @exit 0
21
223.implicit-phony:
23
24# 4 - explicitly mentioned file made by an implicit rule
25%.4: void ; @exit 1
26%.4: test.x ; @exit 0
27%.x: ;