3 $description = "Test make -B (always remake) option.\n";
6 Construct a simple makefile that builds a target.
7 Invoke make once, so it builds everything. Invoke it again and verify
8 that nothing is built. Then invoke it with -B and verify that everything
25 run_make_test(undef, '', "#MAKE#: Nothing to be done for 'all'.");
26 run_make_test(undef, '-B', 'cp bar.x foo');
28 # Put the timestamp for foo into the future; it should still be remade.
31 run_make_test(undef, '', "#MAKE#: Nothing to be done for 'all'.");
32 run_make_test(undef, '-B', 'cp bar.x foo');
36 rmfiles('bar.x', 'foo');
38 # Test -B with the re-exec feature: we don't want to re-exec forever
43 $(info MAKE_RESTARTS=$(MAKE_RESTARTS))
48 #MAKEFILE#:4: foo.x: No such file or directory
53 # Test -B with the re-exec feature: we DO want -B in the "normal" part of the
59 all: blah.x ; @echo $@
60 $(info MAKE_RESTARTS=$(MAKE_RESTARTS))
66 #MAKEFILE#:4: foo.x: No such file or directory
71 rmfiles('foo.x', 'blah.x');
73 # Test that $? is set properly with -B; all prerequisites will be newer!