mirror of
https://https.git.savannah.gnu.org/git/make.git
synced 2026-01-28 02:15:03 +00:00
Avoid Emacs local variable settings to disable whitespace cleanup, by creating markup tokens for TAB characters (#TAB#) and space characters (#SPACE#) (for end-of-line spaces). Modify all the tests that use TABs to use the new markup. This requires changing some old-fashioned tests to use the modern run_make_test(). Also remove some of the comments regarding test numbers now that the framework keeps track.
25 lines
540 B
Perl
25 lines
540 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:
|
|
#TAB#@echo $(TMP)
|
|
#TAB#$(MAKE) -f #MAKEFILE# foo
|
|
|
|
foo:
|
|
#TAB#@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;
|