3
$description = "Test the MAKECMDGOALS variable.";
6
We construct a makefile with various targets, all of which print out
7
\$(MAKECMDGOALS), then call it different ways.";
9
open(MAKEFILE,"> $makefile");
12
\@echo \$(MAKECMDGOALS)
18
&run_make_with_options($makefile,
23
&compare_output($answer,&get_logfile(1));
27
&run_make_with_options($makefile,
32
&compare_output($answer,&get_logfile(1));
37
&run_make_with_options($makefile,
41
$answer = "foo bar baz yaz\nfoo bar baz yaz\nfoo bar baz yaz\nfoo bar baz yaz\n";
42
&compare_output($answer,&get_logfile(1));
45
# This tells the test driver that the perl test script executed properly.