1 # Preparation: create foo.c
2 test1:
3 touch foo.c
4
5 # foo.o should match the pattern rule below.
6 test2: foo.o
7
8 %.o: %.c
9 echo FAIL
10
11 # This passes with GNU make 4.0 but fails with 3.81.
12 #%o: %c
13 # echo FAIL2
14
15 # The last one should be used.
16 %.o: %.c
17 echo PASS
18