This commit was manufactured by cvs2svn to create tag
[kbuild-mirror.git] / src / gmake / tests / scripts / variables / MAKELEVEL
blob79a184e4983831e7a132207e6d096326ef4d5b67
1 #                                                               -*-perl-mode-*-
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 SHELL = /bin/sh
13 all:
14 \t\@echo MAKELEVEL is \$(MAKELEVEL)
15 \techo \$\$MAKELEVEL
16 EOF
18 # END of Contents of MAKEFILE
20 close(MAKEFILE);
22 # RUN MAKE
24 &run_make_with_options($makefile,"",&get_logfile);
26 # SET ANSWER
28 $answer = "MAKELEVEL is 0\necho \$MAKELEVEL\n1\n";
30 # COMPARE RESULTS
32 &compare_output($answer,&get_logfile(1));