Last change
on this file since 284 was 284, checked in by bird, 20 years ago |
Current make snaphot, 2005-05-16.
|
-
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 |
|
---|
5 | if ($vos)
|
---|
6 | {
|
---|
7 | $delete_command = "delete_file";
|
---|
8 | }
|
---|
9 | else
|
---|
10 | {
|
---|
11 | $delete_command = "rm";
|
---|
12 | }
|
---|
13 |
|
---|
14 | open(MAKEFILE,"> $makefile");
|
---|
15 |
|
---|
16 | # The Contents of the MAKEFILE ...
|
---|
17 |
|
---|
18 | print MAKEFILE ".IGNORE :\n";
|
---|
19 | print MAKEFILE "clean: FORCE\n";
|
---|
20 | print MAKEFILE "\t$delete_command clean\n";
|
---|
21 | print MAKEFILE "FORCE:\n";
|
---|
22 |
|
---|
23 | # END of Contents of MAKEFILE
|
---|
24 |
|
---|
25 | close(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 |
|
---|
38 | 1;
|
---|
39 |
|
---|
40 |
|
---|
41 |
|
---|
42 |
|
---|
43 |
|
---|
44 |
|
---|
45 |
|
---|
46 |
|
---|
47 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.