VirtualBox

source: kBuild/branches/GNU/src/gmake/tests/scripts/variables/MAKELEVEL@ 54

Last change on this file since 54 was 53, checked in by bird, 21 years ago

Initial revision

  • Property svn:eol-style set to native
File size: 657 bytes
Line 
1# -*-perl-mode-*-
2
3$description = "The following test creates a makefile to test
4makelevels in Make. It prints \$(MAKELEVEL) and then
5prints the environment variable MAKELEVEL";
6
7open(MAKEFILE,"> $makefile");
8
9# The Contents of the MAKEFILE ...
10
11print MAKEFILE <<EOF;
12SHELL = /bin/sh
13all:
14\t\@echo MAKELEVEL is \$(MAKELEVEL)
15\techo \$\$MAKELEVEL
16EOF
17
18# END of Contents of MAKEFILE
19
20close(MAKEFILE);
21
22# RUN MAKE
23
24&run_make_with_options($makefile,"",&get_logfile);
25
26# SET ANSWER
27
28$answer = "MAKELEVEL is 0\necho \$MAKELEVEL\n1\n";
29
30# COMPARE RESULTS
31
32&compare_output($answer,&get_logfile(1));
33
341;
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette