4 |
|
|
5 |
$details = ""; |
$details = ""; |
6 |
|
|
7 |
|
use Cwd; |
8 |
|
|
9 |
|
$dir = cwd; |
10 |
|
$dir =~ s,.*/([^/]+)$,../$1,; |
11 |
|
|
12 |
|
|
13 |
# TEST #1: Make sure that multiple patterns where the same target |
# TEST #1: Make sure that multiple patterns where the same target |
14 |
# can be built are searched even if the first one fails |
# can be built are searched even if the first one fails |
15 |
# to match properly. |
# to match properly. |
69 |
foo.out'); |
foo.out'); |
70 |
|
|
71 |
|
|
72 |
|
# TEST #3: make sure intermidite files that also happened to be |
73 |
|
# prerequisites are not removed (Savannah bug #12267). |
74 |
|
# |
75 |
|
run_make_test(' |
76 |
|
$(dir)/foo.o: |
77 |
|
|
78 |
|
$(dir)/foo.y: |
79 |
|
@echo $@ |
80 |
|
|
81 |
|
%.c: %.y |
82 |
|
touch $@ |
83 |
|
|
84 |
|
%.o: %.c |
85 |
|
@echo $@ |
86 |
|
|
87 |
|
.PHONY: install |
88 |
|
install: $(dir)/foo.c |
89 |
|
|
90 |
|
', |
91 |
|
"dir=$dir", |
92 |
|
"$dir/foo.y |
93 |
|
touch $dir/foo.c |
94 |
|
$dir/foo.o"); |
95 |
|
|
96 |
|
unlink("$dir/foo.c"); |
97 |
|
|
98 |
# This tells the test driver that the perl test script executed properly. |
# This tells the test driver that the perl test script executed properly. |
99 |
1; |
1; |