VirtualBox

source: kBuild/trunk/src/gmake/tests/scripts/features/varnesting@ 285

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

Initial revision

  • 屬性 svn:eol-style 設為 native
檔案大小: 624 位元組
 
1$description = "The following test creates a makefile to ...";
2
3$details = "";
4
5open(MAKEFILE,"> $makefile");
6
7# The Contents of the MAKEFILE ...
8
9print MAKEFILE "x = variable1\n"
10 ."variable2 := Hello\n"
11 ."y = \$(subst 1,2,\$(x))\n"
12 ."z = y\n"
13 ."a := \$(\$(\$(z)))\n"
14 ."all: \n"
15 ."\t\@echo \$(a)\n";
16
17# END of Contents of MAKEFILE
18
19close(MAKEFILE);
20
21&run_make_with_options($makefile,"",&get_logfile);
22
23# Create the answer to what should be produced by this Makefile
24$answer = "Hello\n";
25
26&compare_output($answer,&get_logfile(1));
27
281;
29
30
31
32
33
34
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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