1
$description = "The following tests rules without Commands or Dependencies.";
3
$details = "If the rule ...\n";
7
$delete_command = "delete_file";
11
$delete_command = "rm";
14
open(MAKEFILE,"> $makefile");
16
# The Contents of the MAKEFILE ...
18
print MAKEFILE ".IGNORE :\n";
19
print MAKEFILE "clean: FORCE\n";
20
print MAKEFILE "\t$delete_command clean\n";
21
print MAKEFILE "FORCE:\n";
23
# END of Contents of MAKEFILE
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.
33
$answer = "$delete_command clean\n";
34
&run_make_with_options($makefile,"clean",&get_logfile);
36
&compare_output($answer,&get_logfile(1));