summaryrefslogtreecommitdiff
blob: 6cc7446868cdca43881c6bbd45ad856195d9bb6a (plain)
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
lib_LTLIBRARIES = libHBAAPI.la
libHBAAPI_la_SOURCES = hbaapi.h vendorhbaapi.h
nodist_libHBAAPI_la_SOURCES = hbaapilib.c
libHBAAPI_la_LDFLAGS = -version-info 2:2:0

nobase_include_HEADERS = hbaapi.h vendorhbaapi.h

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = HBAAPI.pc

dist_sysconf_DATA = hba.conf
dist_noinst_DATA = HBAAPILIB.c HBAAPI.pc.in

hbaapilib.c: ${srcdir}/HBAAPILIB.c
	cp ${srcdir}/HBAAPILIB.c $@

clean-local:
	-rm -f hbaapilib.c
	-if [ ${abs_srcdir} != ${abs_builddir} ]; then \
		rm -f hba.conf; \
	fi

# re-write hba.conf to edit out everything except for comments and blank lines
FORCE:
hba.conf: FORCE
	grep "^#\|^[[:space:]]*$$" ${srcdir}/$@ > $@.tmp
	mv $@.tmp $@