No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gmake / tests / scripts / features / override
blob23e4f2b42bf7040f1bf7a71d8a37167c958107c5
1 $description = "The following test creates a makefile to ...";
3 $details = "";
5 open(MAKEFILE,"> $makefile");
7 # The Contents of the MAKEFILE ...
9 print MAKEFILE "override define foo\n"
10               ."\@echo First comes the definition.\n"
11               ."\@echo Then comes the override.\n"
12               ."endef\n"
13               ."all: \n"
14               ."\t\$(foo)\n";
16 # END of Contents of MAKEFILE
18 close(MAKEFILE);
20 &run_make_with_options($makefile,"foo=Hello",&get_logfile);
22 # Create the answer to what should be produced by this Makefile
23 $answer = "First comes the definition.\n"
24          ."Then comes the override.\n";
26 &compare_output($answer,&get_logfile(1));