Convert all "`'" quotes to "''" per new GNU Coding Standard guidelines.
[make.git] / tests / scripts / variables / LIBPATTERNS
blob918295443d35ab047b231d25c1e396b1797900dc
1 #                                                                    -*-perl-*-
3 $description = "Test .LIBPATTERNS special variable.";
5 $details = "";
7 # TEST 0: basics
9 touch('mtest_foo.a');
11 run_make_test('
12 .LIBPATTERNS = mtest_%.a
13 all: -lfoo ; @echo "build $@ from $<"
15               '', "build all from mtest_foo.a\n");
17 # TEST 1: Handle elements that are not patterns.
19 run_make_test('
20 .LIBPATTERNS = mtest_foo.a mtest_%.a
21 all: -lfoo ; @echo "build $@ from $<"
23               '', "#MAKE#: .LIBPATTERNS element 'mtest_foo.a' is not a pattern
24 build all from mtest_foo.a\n");
26 # TEST 2: target-specific override
28 # Uncomment this when we add support, see Savannah bug #25703
29 # run_make_test('
30 # .LIBPATTERNS = mbad_%.a
31 # all: .LIBPATTERNS += mtest_%.a
32 # all: -lfoo ; @echo "build $@ from $<"
33 # ',
34 #               '', "build all from mtest_foo.a\n");
36 unlink('mtest_foo.a');