mirror of
https://git.savannah.gnu.org/git/make.git
synced 2024-12-29 08:09:02 +00:00
d2516343bc
* New function: $(info ...) * Disallow $(eval ...) to create prereq relationships inside command scripts (caused core dumps) * Try to allow more tests to succeed in Windows/DOS by sanitizing CRLF and \ * Various bug fixes and code cleanups (see the ChangeLog entry)
30 lines
619 B
Perl
30 lines
619 B
Perl
# -*-perl-*-
|
|
|
|
$description = "Test the MAKEFILE_LIST variable.";
|
|
|
|
$makefile2 = &get_tmpfile;
|
|
|
|
open(MAKEFILE,"> $makefile");
|
|
print MAKEFILE <<EOF;
|
|
m1 := \$(MAKEFILE_LIST)
|
|
include $makefile2
|
|
m3 := \$(MAKEFILE_LIST)
|
|
|
|
all:
|
|
\t\@echo \$(m1)
|
|
\t\@echo \$(m2)
|
|
\t\@echo \$(m3)
|
|
EOF
|
|
close(MAKEFILE);
|
|
|
|
|
|
open(MAKEFILE,"> $makefile2");
|
|
print MAKEFILE "m2 := \$(MAKEFILE_LIST)\n";
|
|
close(MAKEFILE);
|
|
|
|
|
|
&run_make_with_options($makefile, "", &get_logfile);
|
|
$answer = "$makefile\n$makefile $makefile2\n$makefile $makefile2\n";
|
|
&compare_output($answer,&get_logfile(1));
|
|
|
|
1;
|