]> git.ipfire.org Git - people/ms/strongswan.git/blame - Makefile.am
eap-sim-pcsc: fix compiler warning
[people/ms/strongswan.git] / Makefile.am
CommitLineData
fc16b361 1SUBDIRS = src man init testing
cf00cffe
TB
2
3if USE_SCRIPTS
4 SUBDIRS += scripts
5endif
6
d0f01a58
MW
7if USE_SILENT_RULES
8 AM_MAKEFLAGS = -s
9endif
10
c0e56a66 11ACLOCAL_AMFLAGS = -I m4/config
e455ae13 12
3fa8d773 13EXTRA_DIST = Doxyfile.in LICENSE Android.common.mk.in Android.common.mk Android.mk
dcb4651d 14CLEANFILES = Doxyfile
3fa8d773
TB
15BUILT_SOURCES = Android.common.mk
16MAINTAINERCLEANFILES = Android.common.mk
807c12ce 17
b188f231 18if USE_DEV_HEADERS
7300eb29
MW
19config_includedir = $(ipseclibdir)/include
20nodist_config_include_HEADERS = config.h
b188f231 21endif
7300eb29 22
3fa8d773 23Android.common.mk : Android.common.mk.in configure.in
0be946dc 24 $(AM_V_GEN) \
807c12ce
TB
25 sed \
26 -e "s:\@PACKAGE_VERSION\@:$(PACKAGE_VERSION):" \
27 $(srcdir)/$@.in > $@
b1e69188
MW
28
29Doxyfile : Doxyfile.in
0be946dc 30 $(AM_V_GEN) \
b1e69188
MW
31 sed \
32 -e "s:\@PACKAGE_VERSION\@:$(PACKAGE_VERSION):" \
33 -e "s:\@PACKAGE_NAME\@:$(PACKAGE_NAME):" \
c33d4f29 34 -e "s:\@SRC_DIR\@:$(srcdir):" \
ea7e89c7 35 $(srcdir)/$@.in > $@
b1e69188
MW
36
37apidoc : Doxyfile
38 doxygen
dcb4651d 39
ab73ae67 40cov-reset-common:
1f14b4a1 41 @rm -rf $(top_builddir)/coverage
a5b63a3e 42 @find $(top_builddir)/{src,scripts} -name "*.gcda" -delete
ab73ae67
TB
43
44if COVERAGE
45cov-reset: cov-reset-common
1f14b4a1
TB
46 @lcov --zerocounters --directory $(top_builddir)
47
48cov-report:
49 @mkdir $(top_builddir)/coverage
50 lcov -c -o $(top_builddir)/coverage/coverage.info -d $(top_builddir)
ab73ae67
TB
51 lcov -r $(top_builddir)/coverage/coverage.info '*/tests/*' \
52 -o $(top_builddir)/coverage/coverage.cleaned.info
1f14b4a1
TB
53 genhtml --num-spaces 4 --legend \
54 -t "$(PACKAGE_STRING)" \
55 -o $(top_builddir)/coverage/html \
56 -p `readlink -m $(abs_top_srcdir)`/src \
ab73ae67 57 $(top_builddir)/coverage/coverage.cleaned.info
1f14b4a1
TB
58 @echo "Coverage Report at $(top_builddir)/coverage/html" >&2
59
60coverage:
61 @$(MAKE) cov-reset
62 @$(MAKE) check
63 @$(MAKE) cov-report
64else
1f14b4a1
TB
65coverage:
66 @echo "reconfigure with --enable-coverage"
67endif
68
ab73ae67 69clean-local: cov-reset-common
a5b63a3e 70 @find $(top_builddir)/{src,scripts} -name "*.gcno" -delete
ab73ae67
TB
71 @rm -rf apidoc
72
73.PHONY: cov-reset-common cov-reset cov-report coverage