mirror of
https://github.com/mirror/make.git
synced 2026-08-30 11:18:08 +08:00
Various enhancements
- OS/2 Patches - OpenVMS updates - Sanitize the handling of -include/sinclude with and without -k - Fix the setting of $< for order-only rules.
This commit is contained in:
@@ -4,12 +4,7 @@ $description = "Test special GNU make variables.";
|
||||
|
||||
$details = "";
|
||||
|
||||
$makefile2 = &get_tmpfile;
|
||||
|
||||
|
||||
open(MAKEFILE, "> $makefile");
|
||||
|
||||
print MAKEFILE <<'EOF';
|
||||
&run_make_test('
|
||||
|
||||
X1 := $(sort $(filter FOO BAR,$(.VARIABLES)))
|
||||
|
||||
@@ -23,21 +18,12 @@ all:
|
||||
@echo X1 = $(X1)
|
||||
@echo X2 = $(X2)
|
||||
@echo LAST = $(sort $(filter FOO BAR,$(.VARIABLES)))
|
||||
|
||||
EOF
|
||||
|
||||
close(MAKEFILE);
|
||||
|
||||
# TEST #1
|
||||
# -------
|
||||
|
||||
&run_make_with_options($makefile, "", &get_logfile);
|
||||
$answer = "X1 =\nX2 = FOO\nLAST = BAR FOO\n";
|
||||
&compare_output($answer, &get_logfile(1));
|
||||
|
||||
',
|
||||
'', "X1 =\nX2 = FOO\nLAST = BAR FOO\n");
|
||||
|
||||
|
||||
|
||||
# $makefile2 = &get_tmpfile;
|
||||
# open(MAKEFILE, "> $makefile2");
|
||||
|
||||
# print MAKEFILE <<'EOF';
|
||||
|
||||
Reference in New Issue
Block a user