mirror of
https://git.savannah.gnu.org/git/make.git
synced 2024-12-27 06:27:51 +00:00
23c2b99e9d
Fixes Savannah bug #34530.
24 lines
473 B
Perl
24 lines
473 B
Perl
# -*-perl-*-
|
|
|
|
$description = "Test proper behavior of the MAKE variable";
|
|
|
|
$details = "DETAILS";
|
|
|
|
run_make_test(q!
|
|
TMP := $(MAKE)
|
|
MAKE := $(subst X=$(X),,$(MAKE))
|
|
all:
|
|
@echo $(TMP)
|
|
$(MAKE) -f #MAKEFILE# foo
|
|
|
|
foo:
|
|
@echo $(MAKE)
|
|
!,
|
|
'',
|
|
"#MAKEPATH#\n#MAKEPATH# -f #MAKEFILE# foo\n"
|
|
. "#MAKE#[1]: Entering directory '#PWD#'\n"
|
|
. "#MAKEPATH#\n#MAKE#[1]: Leaving directory '#PWD#'\n");
|
|
|
|
rmfiles("foo");
|
|
|
|
1;
|