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
41