3
$description = "The following test creates a makefile to delete a \n"
4
."file in the directory. It tests to see if make will \n"
5
."NOT execute the command unless the rule is given in \n"
6
."the make command line.";
8
$example = "EXAMPLE_FILE";
10
open(MAKEFILE,"> $makefile");
12
# The Contents of the MAKEFILE ...
14
print MAKEFILE "all: \n";
15
print MAKEFILE "\t\@echo This makefile did not clean the dir... good\n";
16
print MAKEFILE "clean: \n";
17
print MAKEFILE "\t$delete_command EXAMPLE_FILE\n";
19
# END of Contents of MAKEFILE
26
&run_make_with_options($makefile,"",&get_logfile,0);
28
# Create the answer to what should be produced by this Makefile
29
$answer = "This makefile did not clean the dir... good\n";
31
&compare_output($answer,&get_logfile(1)) || &error ("abort");
34
$answer = "$delete_command $example\n";
35
&run_make_with_options($makefile,"clean",&get_logfile,0);
39
&compare_output($answer,&get_logfile(1)) || &error ("abort");