VirtualBox

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

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

This commit was generated by cvs2svn to compensate for changes in r284,
which included commits to RCS files with non-trunk default branches.

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

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