VirtualBox

source: kBuild/vendor/gnumake/current/tests/scripts/functions/value@ 3208

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

gnumake/current -> 3.82-cvs.

  • 屬性 svn:eol-style 設為 LF
檔案大小: 732 位元組
 
1# -*-perl-*-
2
3$description = "Test the value function.";
4
5$details = "This is a test of the value function in GNU make.
6This function will evaluate to the value of the named variable with no
7further expansion performed on it.\n";
8
9open(MAKEFILE,"> $makefile");
10
11print MAKEFILE <<'EOF';
12export FOO = foo
13
14recurse = FOO = $FOO
15static := FOO = $(value FOO)
16
17all: ; @echo $(recurse) $(value recurse) $(static) $(value static)
18EOF
19
20close(MAKEFILE);
21
22&run_make_with_options($makefile, "", &get_logfile);
23
24# Create the answer to what should be produced by this Makefile
25$answer = "FOO = OO FOO = foo FOO = foo FOO = foo\n";
26
27
28&compare_output($answer,&get_logfile(1));
29
301;
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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