1 SUBDIRS = src man conf init testing
15 ACLOCAL_AMFLAGS = -I m4/config
17 EXTRA_DIST = Doxyfile.in LICENSE Android.common.mk.in Android.common.mk Android.mk
19 BUILT_SOURCES = Android.common.mk
20 MAINTAINERCLEANFILES = Android.common.mk
23 config_includedir = $(ipseclibdir)/include
24 nodist_config_include_HEADERS = config.h
27 # we leave config files behind intentionally so prevent distcheck from complaining
28 distuninstallcheck_listfiles = find . -type f \! -name '*.conf' \! -name '*.secrets' -print
30 Android.common.mk : Android.common.mk.in configure.ac
33 -e "s:\@PACKAGE_VERSION\@:$(PACKAGE_VERSION):" \
36 Doxyfile : Doxyfile.in
39 -e "s:\@PACKAGE_VERSION\@:$(PACKAGE_VERSION):" \
40 -e "s:\@PACKAGE_NAME\@:$(PACKAGE_NAME):" \
41 -e "s:\@SRC_DIR\@:$(srcdir):g" \
45 @test -d apidoc || doxygen
46 @! find Doxyfile $(top_srcdir)/src/ \( -name '*.h' -o -name '*.md' \) -newer apidoc | \
47 grep -q '' || doxygen && touch apidoc
50 @rm -rf $(top_builddir)/coverage
51 @find $(top_builddir)/src $(top_builddir)/scripts -name "*.gcda" -delete
54 cov-reset: cov-reset-common
55 @lcov --zerocounters --directory $(top_builddir)
58 @mkdir $(top_builddir)/coverage
59 lcov -c -o $(top_builddir)/coverage/coverage.info -d $(top_builddir) \
60 --rc lcov_branch_coverage=1
61 lcov -r $(top_builddir)/coverage/coverage.info '*/tests/*' '*/suites/*' '/usr*' \
62 -o $(abs_top_builddir)/coverage/coverage.cleaned.info \
63 --rc lcov_branch_coverage=1
64 genhtml --num-spaces 4 --legend --branch-coverage --ignore-errors source \
65 -t "$(PACKAGE_STRING)" \
66 -o $(top_builddir)/coverage/html \
67 -p `readlink -m $(abs_top_srcdir)`/src \
68 $(top_builddir)/coverage/coverage.cleaned.info
69 @echo "Coverage Report at $(top_builddir)/coverage/html" >&2
77 @echo "reconfigure with --enable-coverage"
80 clean-local: cov-reset-common
81 @find $(top_builddir)/src $(top_builddir)/scripts -name "*.gcno" -delete
84 .PHONY: cov-reset-common cov-reset cov-report coverage apidoc