VirtualBox

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

Last change on this file since 285 was 285, checked in by bird, 20 years ago

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

  • Property svn:eol-style set to native
File size: 791 bytes
Line 
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
Note: See TracBrowser for help on using the repository browser.

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