1 $description = "The following test creates a makefile to test MAKE \n"
6 open(MAKEFILE,"> $makefile");
8 # The Contents of the MAKEFILE ...
10 print MAKEFILE "TMP := \$(MAKE)\n";
11 print MAKEFILE "MAKE := \$(subst X=\$(X),,\$(MAKE))\n\n";
12 print MAKEFILE "all:\n";
13 print MAKEFILE "\t\@echo \$(TMP)\n";
14 print MAKEFILE "\t\$(MAKE) -f $makefile foo\n\n";
15 print MAKEFILE "foo:\n";
16 print MAKEFILE "\t\@echo \$(MAKE)\n";
18 # END of Contents of MAKEFILE
22 # Create the answer to what should be produced by this Makefile
23 $answer = "$mkpath\n$mkpath -f $makefile foo\n"
24 . "${make_name}[1]: Entering directory `$pwd'\n"
25 . "$mkpath\n${make_name}[1]: Leaving directory `$pwd'\n";
27 &run_make_with_options($makefile,"",&get_logfile,0);
31 &compare_output($answer,&get_logfile(1));