2014-03-20 17:17:24 +01:00
|
|
|
# got some hints from https://gitorious.org/openismus-playground/examplelib/source
|
|
|
|
|
2015-07-14 13:15:49 +02:00
|
|
|
SUBDIRS = po include src tools $(LIBPSL_DOCS) tests
|
2015-01-26 13:16:59 +01:00
|
|
|
|
2014-03-20 22:43:04 +01:00
|
|
|
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
|
2014-03-20 17:17:24 +01:00
|
|
|
|
|
|
|
# Enable GTK-Doc during make distcheck
|
2015-01-26 13:16:59 +01:00
|
|
|
#DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-man
|
2014-03-20 17:17:24 +01:00
|
|
|
|
|
|
|
## Install the generated pkg-config file (.pc) into the expected location for
|
|
|
|
## architecture-dependent package configuration information. Occasionally,
|
|
|
|
## pkg-config files are also used for architecture-independent data packages,
|
|
|
|
## in which case the correct install location would be $(datadir)/pkgconfig.
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
2014-05-31 18:56:07 +02:00
|
|
|
pkgconfig_DATA = libpsl.pc
|
2014-03-20 22:43:04 +01:00
|
|
|
|
2015-11-19 11:16:16 +01:00
|
|
|
EXTRA_DIST = config.rpath LICENSE
|
|
|
|
dist-hook:
|
|
|
|
mkdir -p $(distdir)/list/tests
|
|
|
|
cp -p $(PSL_FILE) $(distdir)/list
|
|
|
|
cp -p $(PSL_TESTFILE) $(distdir)/list/tests
|
2016-09-23 17:13:32 +02:00
|
|
|
|
|
|
|
clean-local:
|
|
|
|
rm -rf */*.gc?? libpsl.info lcov
|
|
|
|
|
|
|
|
check-coverage:
|
|
|
|
$(MAKE) clean
|
|
|
|
lcov --no-external --capture --initial --directory . --output-file libpsl.info
|
|
|
|
CFLAGS=$CFLAGS" --coverage" LDFLAGS=$LDFLAGS" --coverage" $(MAKE) check
|
|
|
|
lcov --no-external --capture --directory . --output-file libpsl.info
|
|
|
|
genhtml --prefix . --ignore-errors source libpsl.info --legend --title "libpsl" --output-directory=lcov
|