VirtualBox

source: kBuild/trunk/src/kmk/tests/scripts/targets/FORCE

Last change on this file was 969, checked in by bird, 18 years ago

Fixing some svn props.

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

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