VirtualBox

source: kBuild/vendor/gnumake/current/tests/scripts/variables/MAKELEVEL@ 3208

最後變更 在這個檔案從3208是 2596,由 bird 提交於 13 年 前

gnumake/current -> 3.82-cvs.

  • 屬性 svn:eol-style 設為 LF
檔案大小: 641 位元組
 
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
11print MAKEFILE <<EOF;
12all:
13\t\@echo MAKELEVEL is \$(MAKELEVEL)
14\techo \$\$MAKELEVEL
15EOF
16
17# END of Contents of MAKEFILE
18
19close(MAKEFILE);
20
21# RUN MAKE
22
23&run_make_with_options($makefile,"",&get_logfile);
24
25# SET ANSWER
26
27$answer = "MAKELEVEL is 0\necho \$MAKELEVEL\n1\n";
28
29# COMPARE RESULTS
30
31&compare_output($answer,&get_logfile(1));
32
331;
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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