|
Last change
on this file was 2579, checked in by bird, 12 years ago |
|
Importing make-3.82.tar.bz2 (md5sum 1a11100f3c63fcf5753818e59d63088f) with --auto-props but no keywords.
|
|
File size:
600 bytes
|
| Line | |
|---|
| 1 | # -*-perl-*-
|
|---|
| 2 |
|
|---|
| 3 | $description = "Test the --eval option.";
|
|---|
| 4 |
|
|---|
| 5 | $details = "Verify that --eval options take effect,
|
|---|
| 6 | and are passed to sub-makes.";
|
|---|
| 7 |
|
|---|
| 8 | # Verify that --eval is evaluated first
|
|---|
| 9 | run_make_test(q!
|
|---|
| 10 | BAR = bar
|
|---|
| 11 | all: ; @echo all
|
|---|
| 12 | recurse: ; @$(MAKE) -f #MAKEFILE# && echo recurse!,
|
|---|
| 13 | '--eval=\$\(info\ eval\) FOO=\$\(BAR\)', "eval\nall");
|
|---|
| 14 |
|
|---|
| 15 | # Make sure that --eval is handled correctly during recursion
|
|---|
| 16 | run_make_test(undef, '--no-print-directory --eval=\$\(info\ eval\) recurse',
|
|---|
| 17 | "eval\neval\nall\nrecurse");
|
|---|
| 18 |
|
|---|
| 19 | 1;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.