3 $description = "Test the MAKEFILES variable.";
5 $makefile2 = &get_tmpfile;
6 $makefile3 = &get_tmpfile;
8 open(MAKEFILE,"> $makefile");
9 print MAKEFILE 'all: ; @echo DEFAULT RULE: M2=$(M2) M3=$(M3)', "\n";
13 open(MAKEFILE,"> $makefile2");
16 NDEF: ; \@echo RULE FROM MAKEFILE 2
21 open(MAKEFILE,"> $makefile3");
24 NDEF3: ; \@echo RULE FROM MAKEFILE 3
29 &run_make_with_options($makefile, "MAKEFILES='$makefile2 $makefile3'",
31 $answer = "DEFAULT RULE: M2=m2 M3=m3\n";
32 &compare_output($answer,&get_logfile(1));