blob: c3b50f5fcc7208d645c03771e7b39835c265e1f5 [file] [log] [blame]
# -*-perl-*-
$description = "Test the MAKECMDGOALS variable.";
$details = "\
We construct a makefile with various targets, all of which print out
\$(MAKECMDGOALS), then call it different ways.";
run_make_test(q!
.DEFAULT all:
#TAB#@echo $(MAKECMDGOALS)
!,
'', "\n");
run_make_test(undef, "all", "all\n");
run_make_test(undef, "foo bar baz yaz",
"foo bar baz yaz\nfoo bar baz yaz\nfoo bar baz yaz\nfoo bar baz yaz\n");
# This tells the test driver that the perl test script executed properly.
1;