VirtualBox

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

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

Initial revision

  • 屬性 svn:eol-style 設為 native
檔案大小: 681 位元組
 
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 "override define foo\n"
10 ."\@echo First comes the definition.\n"
11 ."\@echo Then comes the override.\n"
12 ."endef\n"
13 ."all: \n"
14 ."\t\$(foo)\n";
15
16# END of Contents of MAKEFILE
17
18close(MAKEFILE);
19
20&run_make_with_options($makefile,"foo=Hello",&get_logfile);
21
22# Create the answer to what should be produced by this Makefile
23$answer = "First comes the definition.\n"
24 ."Then comes the override.\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