VirtualBox

source: kBuild/vendor/gnumake/current/tests/scripts/variables/MAKEFILES@ 486

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

Initial revision

  • 屬性 svn:eol-style 設為 native
檔案大小: 739 位元組
 
1# -*-perl-*-
2
3$description = "Test the MAKEFILES variable.";
4
5$makefile2 = &get_tmpfile;
6$makefile3 = &get_tmpfile;
7
8open(MAKEFILE,"> $makefile");
9print MAKEFILE 'all: ; @echo DEFAULT RULE: M2=$(M2) M3=$(M3)', "\n";
10close(MAKEFILE);
11
12
13open(MAKEFILE,"> $makefile2");
14print MAKEFILE <<EOF;
15M2 = m2
16NDEF: ; \@echo RULE FROM MAKEFILE 2
17EOF
18close(MAKEFILE);
19
20
21open(MAKEFILE,"> $makefile3");
22print MAKEFILE <<EOF;
23M3 = m3
24NDEF3: ; \@echo RULE FROM MAKEFILE 3
25EOF
26close(MAKEFILE);
27
28
29&run_make_with_options($makefile, "MAKEFILES='$makefile2 $makefile3'",
30 &get_logfile);
31$answer = "DEFAULT RULE: M2=m2 M3=m3\n";
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