VirtualBox

source: kBuild/trunk/src/gmake/tests/scripts/variables/MAKELEVEL@ 53

最後變更 在這個檔案從53是 53,由 bird 提交於 21 年 前

Initial revision

  • 屬性 svn:eol-style 設為 native
檔案大小: 657 位元組
 
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;
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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