We compute various values for vpath lookup the first time through
[make.git] / tests / scripts / features / vpath3
blobc6ede2828b9c26eec3ac84e373e49b3ba9433fe9
1 #                                                                    -*-perl-*-
3 $description = "Test the interaction of the -lfoo feature and vpath";
4 $details = "";
6 my @dirs_to_make = qw(a1 b1 a2 b2 b3);
7 for my $d (@dirs_to_make) {
8     mkdir($d, 0777);
11 my @files_to_touch = ("a1${pathsep}lib1.a",
12                       "a1${pathsep}libc.a",
13                       "b1${pathsep}lib1.so",
14                       "a2${pathsep}lib2.a",
15                       "b2${pathsep}lib2.so",
16                       "lib3.a",
17                       "b3${pathsep}lib3.so");
18 &touch(@files_to_touch);
20 run_make_test('
21 vpath %.h b3
22 vpath %.a a1
23 vpath %.so b1
24 vpath % a2 b2
25 vpath % b3
26 all: -l1 -lc -l2 -l3; @echo $^
28               '', "a1${pathsep}lib1.a a1${pathsep}libc.a a2${pathsep}lib2.a lib3.a\n");
30 unlink(@files_to_touch);
31 for my $d (@dirs_to_make) {
32     rmdir($d);