File: LIBPATTERNS

package info (click to toggle)
make-doc-non-dfsg 4.4.1-1
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid, trixie
  • size: 9,632 kB
  • sloc: ansic: 31,255; sh: 5,213; perl: 1,612; makefile: 160; lisp: 26; sed: 16
file content (38 lines) | stat: -rw-r--r-- 884 bytes parent folder | download | duplicates (21)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#                                                                    -*-perl-*-

$description = "Test .LIBPATTERNS special variable.";

$details = "";

# TEST 0: basics

touch('mtest_foo.a');

run_make_test('
.LIBPATTERNS = mtest_%.a
all: -lfoo ; @echo "build $@ from $<"
',
              '', "build all from mtest_foo.a\n");

# TEST 1: Handle elements that are not patterns.

run_make_test('
.LIBPATTERNS = mtest_foo.a mtest_%.a
all: -lfoo ; @echo "build $@ from $<"
',
              '', "#MAKE#: .LIBPATTERNS element 'mtest_foo.a' is not a pattern
build all from mtest_foo.a\n");

# TEST 2: target-specific override

# Uncomment this when we add support, see Savannah bug #25703
# run_make_test('
# .LIBPATTERNS = mbad_%.a
# all: .LIBPATTERNS += mtest_%.a
# all: -lfoo ; @echo "build $@ from $<"
# ',
#               '', "build all from mtest_foo.a\n");

unlink('mtest_foo.a');

1;