Add the beginning of the .ONESHELL special feature.
[make.git] / tests / scripts / variables / MAKELEVEL
blob96a4e74071a59397be3cdb39700209d29174fd7c
1 #                                                                    -*-perl-*-
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 ...
11 print MAKEFILE <<EOF;
12 all:
13 \t\@echo MAKELEVEL is \$(MAKELEVEL)
14 \techo \$\$MAKELEVEL
15 EOF
17 # END of Contents of MAKEFILE
19 close(MAKEFILE);
21 # RUN MAKE
23 &run_make_with_options($makefile,"",&get_logfile);
25 # SET ANSWER
27 $answer = "MAKELEVEL is 0\necho \$MAKELEVEL\n1\n";
29 # COMPARE RESULTS
31 &compare_output($answer,&get_logfile(1));