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
11 open(MAKEFILE,"> $makefile");
13 print MAKEFILE <<'EOF';
29 &run_make_with_options($makefile, '', &get_logfile);
30 $answer = "cp bar.x foo\n";
31 &compare_output($answer, &get_logfile(1));
33 &run_make_with_options($makefile, '', &get_logfile);
34 $answer = "$make_name: Nothing to be done for `all'.\n";
35 &compare_output($answer, &get_logfile(1));
37 &run_make_with_options($makefile, '-B', &get_logfile);
38 $answer = "cp bar.x foo\n";
39 &compare_output($answer, &get_logfile(1));
41 unlink('bar.x', 'foo') unless $keep;