huangcm
2025-04-22 c8cf547b11f2c03565d8fb8b8bcdc69860d0ed08
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Preparation: create foo.c
test1:
   touch foo.c exist
 
# foo.o should match the suffix rule below.
test2: foo.o
 
%.o: %.c not_exist
   echo FAIL
 
%.o: %.c exist
   echo PASS $@ $< $^
 
%.o: %.c not_exist
   echo FAIL
 
%.o: %.cc
   echo FAIL