mirror of
https://github.com/mirror/make.git
synced 2025-01-10 04:10:37 +08:00
4e51b6d9a4
evaluated as a makefile statement before the first makefile is read.
20 lines
600 B
Perl
20 lines
600 B
Perl
# -*-perl-*-
|
|
|
|
$description = "Test the --eval option.";
|
|
|
|
$details = "Verify that --eval options take effect,
|
|
and are passed to sub-makes.";
|
|
|
|
# Verify that --eval is evaluated first
|
|
run_make_test(q!
|
|
BAR = bar
|
|
all: ; @echo all
|
|
recurse: ; @$(MAKE) -f #MAKEFILE# && echo recurse!,
|
|
'--eval=\$\(info\ eval\) FOO=\$\(BAR\)', "eval\nall");
|
|
|
|
# Make sure that --eval is handled correctly during recursion
|
|
run_make_test(undef, '--no-print-directory --eval=\$\(info\ eval\) recurse',
|
|
"eval\neval\nall\nrecurse");
|
|
|
|
1;
|