4 This tests random features of the parser that need to be supported, and
5 which have either broken at some point in the past or seem likely to
8 $makefile2 = &get_tmpfile;
10 open(MAKEFILE,"> $makefile");
12 # The contents of the Makefile ...
15 # We want to allow both empty commands _and_ commands that resolve to empty.
18 .PHONY: all a1 a2 a3 a4
28 \# Non-empty lines that expand to nothing should also be ignored.
30 TAB = \t \# A TAB and some spaces
40 &run_make_with_options($makefile,"",&get_logfile);
41 $answer = "$make_name: Nothing to be done for `all'.\n";
42 &compare_output($answer,&get_logfile(1));
47 # Make sure files without trailing newlines are handled properly.
49 open(MAKEFILE, "> $makefile2");
50 print MAKEFILE "all:;\@echo FOO = \$(FOO)\nFOO = foo";
53 &run_make_with_options($makefile2,"",&get_logfile);
54 $answer = "FOO = foo\n";
55 &compare_output($answer,&get_logfile(1));