VirtualBox

source: kBuild/trunk/src/kmk/tests/scripts/variables/MAKELEVEL

Last change on this file was 1967, checked in by bird, 16 years ago

scripts/variables/MAKELEVEL: MAKELEVEL is called KMK_LEVEL in kmk so it won't interfer with (kmk_g)make.

  • Property svn:eol-style set to LF
File size: 842 bytes
Line 
1# -*-perl-*-
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
11if (!$is_kmk) {
12 print MAKEFILE <<EOF;
13all:
14\t\@echo MAKELEVEL is \$(MAKELEVEL)
15\techo \$\$MAKELEVEL
16EOF
17} else {
18 print MAKEFILE <<EOF;
19all:
20\t\@echo KMK_LEVEL is \$(KMK_LEVEL)
21\techo \$\$KMK_LEVEL
22EOF
23}
24
25# END of Contents of MAKEFILE
26
27close(MAKEFILE);
28
29# RUN MAKE
30
31&run_make_with_options($makefile,"",&get_logfile);
32
33# SET ANSWER
34
35if (!$is_kmk) {
36 $answer = "MAKELEVEL is 0\necho \$MAKELEVEL\n1\n";
37} else {
38 $answer = "KMK_LEVEL is 0\necho \$KMK_LEVEL\n1\n";
39}
40
41# COMPARE RESULTS
42
43&compare_output($answer,&get_logfile(1));
44
451;
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