-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile.am
98 lines (74 loc) · 2.87 KB
/
Makefile.am
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Makefile.am - Top level automakefile for libuninameslist
SUBDIRS = .
if ENABLE_PYLIB
SUBDIRS += py
endif
SUBDIRS += tests
DIST_SUBDIRS = . py tests
test_programs = call-test0 call-test1 call-test2
if WANTLIBOFR
test_programs += call-test3 call-test4 call-test5 call-test6 call-test7
else
test_programs += call-test6
endif
# The braces around ACLOCAL_FLAGS below instead of parentheses are intentional!
# Otherwise autoreconf misparses the line.
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
AM_CFLAGS = $(WCFLAGS) $(UN_CFLAGS)
AM_LDFLAGS = $(WUNLIB) $(UN_LIB) -no-undefined
LIBTOOL_DEPS = @LIBTOOL_DEPS@
EXTRA_DIST = LICENSE README.md m4/ax_check_compile_flag.m4 tests/call-test.c \
py/setup.py py/uninameslist.py libuninameslist.3 libuninameslist-fr.3 \
build.sh
noinst_PROGRAMS = buildnameslist
buildnameslist_SOURCES = buildnameslist.c buildnameslist.h
nodist_EXTRA_DATA = NamesList.txt ListeDesNoms.txt buildnameslist.h .git .github .appveyor.yml .travis.yml
DISTCLEANFILES = libuninameslist.pc
DISTCHECK_CONFIGURE_FLAGS = --enable-frenchlib --enable-pylib --disable-silent-rules
lib_LTLIBRARIES =
if WANTLIBOFR
lib_LTLIBRARIES += libuninameslist-fr.la
endif
lib_LTLIBRARIES += libuninameslist.la
include_HEADERS = uninameslist.h
libuninameslist_la_LIBADD =
man_MANS = libuninameslist.3
noinst_HEADERS = nameslist-dll.h
if WANTLIBOFR
include_HEADERS += uninameslist-fr.h
libuninameslist_fr_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(FR_VERSION)
libuninameslist_fr_la_SOURCES = nameslist-fr.c buildnameslist.h
libuninameslist_fr_la.$(OBJEXT): uninameslist-fr.h nameslist-dll.h
libuninameslist_la_LIBADD += libuninameslist-fr.la
man_MANS += libuninameslist-fr.3
else
EXTRA_DIST += nameslist-fr.c uninameslist-fr.h libuninameslist-fr.3
endif
libuninameslist_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(UN_VERSION)
libuninameslist_la_SOURCES = nameslist.c buildnameslist.h
libuninameslist_la.$(OBJEXT): uninameslist.h nameslist-dll.h
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libuninameslist.pc
buildnameslist.h:
echo 'const char NL_VERSION[] = "$(NL_VERSION)";' > buildnameslist.h
echo 'const char NFR_VERSION[] = "$(NFR_VERSION)";' >> buildnameslist.h
libtool: $(LIBTOOL_DEPS)
$(SHELL) ./config.status libtool
NamesList.txt:
$(WGET) "https://www.unicode.org/Public/UCD/latest/ucd/NamesList.txt" -O NamesList.txt
ListeDesNoms.txt:
$(WGET) "http://hapax.qc.ca/ListeNoms-15.1.0.txt" -O ListeDesNoms.txt
# test: run all tests in cwd and subdirs
test: $(TEST_PROGS)
.PHONY: test
# run make test as part of make check
check-local: test
GENERATED = NamesList.txt ListeDesNoms.latin1 ListeDesNoms.txt buildnameslist buildnameslist.h
clean-local:
rm -rf $(GENERATED)
MAINTAINERCLEANFILES = \
$(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
$(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \
$(GITIGNORE_MAINTAINERCLEANFILES_M4_GETTEXT) \
$(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL)
-include $(top_srcdir)/git.mk