-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
39 lines (29 loc) · 959 Bytes
/
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
SUBDIRS = src docs
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = README.md rational.pc.in
DISTCLEANFILES = rational.pc
doc_DATA = README.md
pkgconfigdir = $(libdir)/pkgconfig
nodist_pkgconfig_DATA = rational.pc
AM_DISTCHECK_CONFIGURE_FLAGS = --enable-cln --enable-gmp --enable-infint --with-mpreal
if WITH_CLN
PKGCFG_WITH_CLN = cln >= 1.3.2
endif
if WITH_GMPXX
PKGCFG_GMP_CFLAGS = ${GMP_CFLAGS}
PKGCFG_GMP_LIBS = ${GMP_LIBS}
endif
if WITH_INFINT
PKGCFG_INFINT_CFLAGS = ${INFINT_CFLAGS}
endif
rational.pc: $(top_srcdir)/rational.pc.in
$(AM_V_GEN)$(SED) \
-e 's|@requires_cln[@]|$(PKGCFG_WITH_CLN)|g' \
-e 's|@INFINT_CFLAGS[@]|$(PKGCFG_INFINT_CFLAGS)|g' \
-e 's|@GMP_CFLAGS[@]|$(PKGCFG_GMP_CFLAGS)|g' \
-e 's|@GMP_LIBS[@]|$(PKGCFG_GMP_LIBS)|g' \
-e 's|@prefix[@]|$(prefix)|g' \
-e 's|@exec_prefix[@]|$(exec_prefix)|g' \
-e 's|@PACKAGE_VERSION[@]|$(PACKAGE_VERSION)|g' \
-e 's|@includedir[@]|$(includedir)|g' \
-e 's|@libdir[@]|$(libdir)|g' < $< > $@