VirtualBox

source: kBuild/trunk/src/gmake/tests/scripts/targets/FORCE@ 503

最後變更 在這個檔案從503是 503,由 bird 提交於 19 年 前

Untested merge with GNU Make v3.81 (vendor/gnumake/2005-05-16 -> vendor/gnumake/current).

  • 屬性 svn:eol-style 設為 native
檔案大小: 785 位元組
 
1# -*-perl-*-
2
3$description = "The following tests rules without Commands or Dependencies.";
4
5$details = "If the rule ...\n";
6
7open(MAKEFILE,"> $makefile");
8
9# The Contents of the MAKEFILE ...
10
11print MAKEFILE ".IGNORE :\n";
12print MAKEFILE "clean: FORCE\n";
13print MAKEFILE "\t$delete_command clean\n";
14print MAKEFILE "FORCE:\n";
15
16# END of Contents of MAKEFILE
17
18close(MAKEFILE);
19
20
21# Create a file named "clean". This is the same name as the target clean
22# and tricks the target into thinking that it is up to date. (Unless you
23# use the .PHONY target.
24&touch("clean");
25
26$answer = "$delete_command clean\n";
27&run_make_with_options($makefile,"clean",&get_logfile);
28
29&compare_output($answer,&get_logfile(1));
30
311;
32
33
34
35
36
37
38
39
40
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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