Changeset 2596 in kBuild for vendor/gnumake/current/tests/scripts/variables/MAKE
- Timestamp:
- Jun 19, 2012 10:44:52 PM (12 years ago)
- Location:
- vendor/gnumake/current
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
tests (modified) (1 prop)
-
tests/scripts/variables/MAKE (modified) (1 diff, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
vendor/gnumake/current
- Property svn:ignore deleted
-
vendor/gnumake/current/tests
- Property svn:ignore deleted
-
vendor/gnumake/current/tests/scripts/variables/MAKE
-
Property svn:eol-style
changed from
nativetoLF
r284 r2596 1 1 # -*-perl-*- 2 2 3 $description = "The following test creates a makefile to test MAKE \n" 4 ."(very generic)"; 3 $description = "Test proper behavior of the MAKE variable"; 5 4 6 5 $details = "DETAILS"; 7 6 8 open(MAKEFILE,"> $makefile"); 7 run_make_test(q! 8 TMP := $(MAKE) 9 MAKE := $(subst X=$(X),,$(MAKE)) 10 all: 11 @echo $(TMP) 12 $(MAKE) -f #MAKEFILE# foo 9 13 10 # The Contents of the MAKEFILE ... 14 foo: 15 @echo $(MAKE) 16 !, 17 '', 18 "#MAKEPATH#\n#MAKEPATH# -f #MAKEFILE# foo\n" 19 . "#MAKE#[1]: Entering directory `#PWD#'\n" 20 . "#MAKEPATH#\n#MAKE#[1]: Leaving directory `#PWD#'\n"); 11 21 12 print MAKEFILE "TMP := \$(MAKE)\n"; 13 print MAKEFILE "MAKE := \$(subst X=\$(X),,\$(MAKE))\n\n"; 14 print MAKEFILE "all:\n"; 15 print MAKEFILE "\t\@echo \$(TMP)\n"; 16 print MAKEFILE "\t\$(MAKE) -f $makefile foo\n\n"; 17 print MAKEFILE "foo:\n"; 18 print MAKEFILE "\t\@echo \$(MAKE)\n"; 19 20 # END of Contents of MAKEFILE 21 22 close(MAKEFILE); 23 24 # Create the answer to what should be produced by this Makefile 25 $answer = "$mkpath\n$mkpath -f $makefile foo\n" 26 . "${make_name}[1]: Entering directory `$pwd'\n" 27 . "$mkpath\n${make_name}[1]: Leaving directory `$pwd'\n"; 28 29 &run_make_with_options($makefile,"",&get_logfile,0); 30 31 &rmfiles("foo"); 32 # COMPARE RESULTS 33 &compare_output($answer,&get_logfile(1)); 22 rmfiles("foo"); 34 23 35 24 1; -
Property svn:eol-style
changed from
Note:
See TracChangeset
for help on using the changeset viewer.

