3 $description = "Test special GNU make variables.";
7 $makefile2 = &get_tmpfile;
10 open(MAKEFILE, "> $makefile");
12 print MAKEFILE <<'EOF';
14 X1 := $(sort $(filter FOO BAR,$(.VARIABLES)))
18 X2 := $(sort $(filter FOO BAR,$(.VARIABLES)))
25 @echo LAST = $(sort $(filter FOO BAR,$(.VARIABLES)))
34 &run_make_with_options($makefile, "", &get_logfile);
35 $answer = "X1 =\nX2 = FOO\nLAST = BAR FOO\n";
36 &compare_output($answer, &get_logfile(1));
41 # open(MAKEFILE, "> $makefile2");
43 # print MAKEFILE <<'EOF';
45 # X1 := $(sort $(.TARGETS))
50 # @echo LAST = $(sort $(.TARGETS))
52 # X2 := $(sort $(.TARGETS))
63 # &run_make_with_options($makefile2, "", &get_logfile);
64 # $answer = "X1 =\nX2 = all\nLAST = all foo\n";
65 # &compare_output($answer, &get_logfile(1));