No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gmake / tests / scripts / misc / general4
blobdd77f539e7b7237c31c2c84d75ddfd05b02877d5
1 #                                                                    -*-perl-*-
3 $description = "\
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
6 break.";
8 open(MAKEFILE,"> $makefile");
10 # The contents of the Makefile ...
12 print MAKEFILE <<'EOF';
13 # Make sure that subdirectories built as prerequisites are actually handled
14 # properly.
16 all: dir/subdir/file.a
18 dir/subdir: ; @echo mkdir -p dir/subdir
20 dir/subdir/file.b: dir/subdir ; @echo touch dir/subdir/file.b
22 dir/subdir/%.a: dir/subdir/%.b ; @echo cp $< $@
23 EOF
25 close(MAKEFILE);
27 &run_make_with_options($makefile,"",&get_logfile);
28 $answer = "mkdir -p dir/subdir\ntouch dir/subdir/file.b\ncp dir/subdir/file.b dir/subdir/file.a\n";
29 &compare_output($answer,&get_logfile(1));