|
Last change
on this file was 969, checked in by bird, 19 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 |
|
|---|
| 7 | open(MAKEFILE,"> $makefile");
|
|---|
| 8 |
|
|---|
| 9 | # The Contents of the MAKEFILE ...
|
|---|
| 10 |
|
|---|
| 11 | print MAKEFILE ".IGNORE :\n";
|
|---|
| 12 | print MAKEFILE "clean: FORCE\n";
|
|---|
| 13 | print MAKEFILE "\t$delete_command clean\n";
|
|---|
| 14 | print MAKEFILE "FORCE:\n";
|
|---|
| 15 |
|
|---|
| 16 | # END of Contents of MAKEFILE
|
|---|
| 17 |
|
|---|
| 18 | close(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 |
|
|---|
| 31 | 1;
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 |
|
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 |
|
|---|
| 40 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.