3 $description = "The following test creates a makefile to test
4 makelevels in Make. It prints \$(MAKELEVEL) and then
5 prints the environment variable MAKELEVEL";
7 open(MAKEFILE,"> $makefile");
9 # The Contents of the MAKEFILE ...
14 \t\@echo MAKELEVEL is \$(MAKELEVEL)
18 # END of Contents of MAKEFILE
24 &run_make_with_options($makefile,"",&get_logfile);
28 $answer = "MAKELEVEL is 0\necho \$MAKELEVEL\n1\n";
32 &compare_output($answer,&get_logfile(1));