4 This tests random features of make's algorithms, often somewhat obscure,
5 which have either broken at some point in the past or seem likely to
8 open(MAKEFILE,"> $makefile");
9 print MAKEFILE <<'EOF';
10 # Make sure that subdirectories built as prerequisites are actually handled
13 all: dir/subdir/file.a
15 dir/subdir: ; @echo mkdir -p dir/subdir
17 dir/subdir/file.b: dir/subdir ; @echo touch dir/subdir/file.b
19 dir/subdir/%.a: dir/subdir/%.b ; @echo cp $< $@
23 &run_make_with_options($makefile,"",&get_logfile);
24 $answer = "mkdir -p dir/subdir\ntouch dir/subdir/file.b\ncp dir/subdir/file.b dir/subdir/file.a\n";
25 &compare_output($answer,&get_logfile(1));
30 run_make_test('foo: foo.o',
31 'CC="@echo cc" OUTPUT_OPTION=',
37 # Test other implicit rule searching
42 %.foo : baz ; @echo done $<
43 %.foo : bar ; @echo done $<