115 |
|
|
116 |
unlink("$dir/foo.bar"); |
unlink("$dir/foo.bar"); |
117 |
|
|
118 |
|
|
119 |
|
# TEST #5: make sure targets of a macthed implicit pattern rule never |
120 |
|
# never considered intermediate (Savannah bug #13022). |
121 |
|
# |
122 |
|
run_make_test(' |
123 |
|
.PHONY: all |
124 |
|
all: foo.c foo.o |
125 |
|
|
126 |
|
%.h %.c: %.in |
127 |
|
touch $*.h |
128 |
|
touch $*.c |
129 |
|
|
130 |
|
%.o: %.c %.h |
131 |
|
echo $+ >$@ |
132 |
|
|
133 |
|
%.o: %.c |
134 |
|
@echo wrong rule |
135 |
|
|
136 |
|
foo.in: |
137 |
|
touch $@ |
138 |
|
|
139 |
|
', |
140 |
|
'', |
141 |
|
'touch foo.in |
142 |
|
touch foo.h |
143 |
|
touch foo.c |
144 |
|
echo foo.c foo.h >foo.o'); |
145 |
|
|
146 |
|
unlink('foo.in', 'foo.h', 'foo.c', 'foo.o'); |
147 |
|
|
148 |
# This tells the test driver that the perl test script executed properly. |
# This tells the test driver that the perl test script executed properly. |
149 |
1; |
1; |