3 $description = "Test various flavors of make variable setting.";
7 open(MAKEFILE, "> $makefile");
9 # The Contents of the MAKEFILE ...
11 print MAKEFILE <<'EOF';
16 all: multi ; @echo $(foo)
25 space := $(nullstring) $(nullstring)
27 next: ; @echo $x$(space)$y
48 outer: ; @echo $(inner)
52 # END of Contents of MAKEFILE
59 &run_make_with_options($makefile, "", &get_logfile);
60 $answer = "hi\necho there\nthere\nHello\n";
61 &compare_output($answer, &get_logfile(1));
66 &run_make_with_options($makefile, "next", &get_logfile);
67 $answer = "later foo bar\n";
68 &compare_output($answer, &get_logfile(1));
73 &run_make_with_options($makefile, "BOGUS=true", &get_logfile, 512);
74 $answer = "$makefile:23: *** empty variable name. Stop.\n";
75 &compare_output($answer, &get_logfile(1));
80 &run_make_with_options($makefile, "outer", &get_logfile);
82 &compare_output($answer, &get_logfile(1));