mirror of
https://git.savannah.gnu.org/git/make.git
synced 2024-12-28 15:57:48 +00:00
988deb489b
Info on this fix from barkalow@reputation.com: thanks! Some updates/cleanups of some of the tests; added a forgotten -t test, etc.
31 lines
827 B
Perl
31 lines
827 B
Perl
# -*-perl-*-
|
|
|
|
$description = "\
|
|
This tests random features of make's algorithms, often somewhat obscure,
|
|
which have either broken at some point in the past or seem likely to
|
|
break.";
|
|
|
|
open(MAKEFILE,"> $makefile");
|
|
|
|
# The contents of the Makefile ...
|
|
|
|
print MAKEFILE <<'EOF';
|
|
# Make sure that subdirectories built as prerequisites are actually handled
|
|
# properly.
|
|
|
|
all: dir/subdir/file.a
|
|
|
|
dir/subdir: ; @echo mkdir -p dir/subdir
|
|
|
|
dir/subdir/file.b: dir/subdir ; @echo touch dir/subdir/file.b
|
|
|
|
dir/subdir/%.a: dir/subdir/%.b ; @echo cp $< $@
|
|
EOF
|
|
|
|
close(MAKEFILE);
|
|
|
|
&run_make_with_options($makefile,"",&get_logfile);
|
|
$answer = "mkdir -p dir/subdir\ntouch dir/subdir/file.b\ncp dir/subdir/file.b dir/subdir/file.a\n";
|
|
&compare_output($answer,&get_logfile(1));
|
|
|
|
1;
|