VirtualBox

source: kBuild/trunk/src/gmake/tests/scripts/misc/general4@ 53

Last change on this file since 53 was 53, checked in by bird, 21 years ago

Initial revision

  • Property svn:eol-style set to native
File size: 827 bytes
Line 
1# -*-perl-*-
2
3$description = "\
4This tests random features of make's algorithms, often somewhat obscure,
5which have either broken at some point in the past or seem likely to
6break.";
7
8open(MAKEFILE,"> $makefile");
9
10# The contents of the Makefile ...
11
12print MAKEFILE <<'EOF';
13# Make sure that subdirectories built as prerequisites are actually handled
14# properly.
15
16all: dir/subdir/file.a
17
18dir/subdir: ; @echo mkdir -p dir/subdir
19
20dir/subdir/file.b: dir/subdir ; @echo touch dir/subdir/file.b
21
22dir/subdir/%.a: dir/subdir/%.b ; @echo cp $< $@
23EOF
24
25close(MAKEFILE);
26
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));
30
311;
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette