VirtualBox

source: kBuild/trunk/src/kmk/tests/scripts/variables/LIBPATTERNS@ 3140

Last change on this file since 3140 was 3140, checked in by bird, 7 years ago

kmk: Merged in changes from GNU make 4.2.1 (2e55f5e4abdc0e38c1d64be703b446695e70b3b6 / https://git.savannah.gnu.org/git/make.git).

File size: 884 bytes
Line 
1# -*-perl-*-
2
3$description = "Test .LIBPATTERNS special variable.";
4
5$details = "";
6
7# TEST 0: basics
8
9touch('mtest_foo.a');
10
11run_make_test('
12.LIBPATTERNS = mtest_%.a
13all: -lfoo ; @echo "build $@ from $<"
14',
15 '', "build all from mtest_foo.a\n");
16
17# TEST 1: Handle elements that are not patterns.
18
19run_make_test('
20.LIBPATTERNS = mtest_foo.a mtest_%.a
21all: -lfoo ; @echo "build $@ from $<"
22',
23 '', "#MAKE#: .LIBPATTERNS element 'mtest_foo.a' is not a pattern
24build all from mtest_foo.a\n");
25
26# TEST 2: target-specific override
27
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");
35
36unlink('mtest_foo.a');
37
381;
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