3 |
|
|
4 |
$details = ""; |
$details = ""; |
5 |
|
|
6 |
|
|
7 |
# Test #1: basic logic. |
# Test #1: basic logic. |
8 |
# |
# |
9 |
run_make_test(' |
run_make_test(' |
46 |
512); |
512); |
47 |
|
|
48 |
|
|
49 |
# Test #2: more than one target. |
# Test #3: more than one target. |
50 |
# |
# |
51 |
run_make_test(' |
run_make_test(' |
52 |
.DEFAULT_TARGET := foo bar |
.DEFAULT_TARGET := foo bar |
56 |
512); |
512); |
57 |
|
|
58 |
|
|
59 |
|
# Test #4: Savannah bug #12226. |
60 |
|
# |
61 |
|
run_make_test(' |
62 |
|
define rule |
63 |
|
foo: ; @echo $$@ |
64 |
|
endef |
65 |
|
|
66 |
|
define make-rule |
67 |
|
$(eval $(rule)) |
68 |
|
endef |
69 |
|
|
70 |
|
$(call make-rule) |
71 |
|
|
72 |
|
', |
73 |
|
'', |
74 |
|
'foo'); |
75 |
|
|
76 |
|
|
77 |
# This tells the test driver that the perl test script executed properly. |
# This tells the test driver that the perl test script executed properly. |
78 |
1; |
1; |