]> git.ipfire.org Git - people/ms/strongswan.git/blame - Makefile.am
apidoc: Fix make target dependency find precedence
[people/ms/strongswan.git] / Makefile.am
CommitLineData
c75acc4c 1SUBDIRS = src man conf 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
127f65db
TB
23# we leave config files behind intentionally so prevent distcheck from complaining
24distuninstallcheck_listfiles = find . -type f \! -name '*.conf' -print
25
c577b5eb 26Android.common.mk : Android.common.mk.in configure.ac
0be946dc 27 $(AM_V_GEN) \
807c12ce
TB
28 sed \
29 -e "s:\@PACKAGE_VERSION\@:$(PACKAGE_VERSION):" \
30 $(srcdir)/$@.in > $@
b1e69188
MW
31
32Doxyfile : Doxyfile.in
0be946dc 33 $(AM_V_GEN) \
b1e69188
MW
34 sed \
35 -e "s:\@PACKAGE_VERSION\@:$(PACKAGE_VERSION):" \
36 -e "s:\@PACKAGE_NAME\@:$(PACKAGE_NAME):" \
945fdeb9 37 -e "s:\@SRC_DIR\@:$(srcdir):g" \
ea7e89c7 38 $(srcdir)/$@.in > $@
b1e69188
MW
39
40apidoc : Doxyfile
882c993b 41 @test -d apidoc || doxygen
bef227c5 42 @! find Doxyfile src/ \( -name '*.h' -o -name '*.md' \) -newer apidoc | \
882c993b 43 grep -q '' || doxygen && touch apidoc
dcb4651d 44
ab73ae67 45cov-reset-common:
1f14b4a1 46 @rm -rf $(top_builddir)/coverage
6122bfd2 47 @find $(top_builddir)/src $(top_builddir)/scripts -name "*.gcda" -delete
ab73ae67
TB
48
49if COVERAGE
50cov-reset: cov-reset-common
1f14b4a1
TB
51 @lcov --zerocounters --directory $(top_builddir)
52
53cov-report:
54 @mkdir $(top_builddir)/coverage
906a4fd1
TB
55 lcov -c -o $(top_builddir)/coverage/coverage.info -d $(top_builddir) \
56 --rc lcov_branch_coverage=1
ab73ae67 57 lcov -r $(top_builddir)/coverage/coverage.info '*/tests/*' \
906a4fd1
TB
58 -o $(top_builddir)/coverage/coverage.cleaned.info \
59 --rc lcov_branch_coverage=1
b98551c7 60 genhtml --num-spaces 4 --legend --branch-coverage --ignore-errors source \
1f14b4a1
TB
61 -t "$(PACKAGE_STRING)" \
62 -o $(top_builddir)/coverage/html \
63 -p `readlink -m $(abs_top_srcdir)`/src \
ab73ae67 64 $(top_builddir)/coverage/coverage.cleaned.info
1f14b4a1
TB
65 @echo "Coverage Report at $(top_builddir)/coverage/html" >&2
66
67coverage:
68 @$(MAKE) cov-reset
69 @$(MAKE) check
70 @$(MAKE) cov-report
71else
1f14b4a1
TB
72coverage:
73 @echo "reconfigure with --enable-coverage"
74endif
75
ab73ae67 76clean-local: cov-reset-common
6122bfd2 77 @find $(top_builddir)/src $(top_builddir)/scripts -name "*.gcno" -delete
ab73ae67
TB
78 @rm -rf apidoc
79
882c993b 80.PHONY: cov-reset-common cov-reset cov-report coverage apidoc