]>
Commit | Line | Data |
---|---|---|
c75acc4c | 1 | SUBDIRS = src man conf init testing |
cf00cffe TB |
2 | |
3 | if USE_SCRIPTS | |
4 | SUBDIRS += scripts | |
5 | endif | |
6 | ||
d0f01a58 MW |
7 | if USE_SILENT_RULES |
8 | AM_MAKEFLAGS = -s | |
9 | endif | |
10 | ||
c0e56a66 | 11 | ACLOCAL_AMFLAGS = -I m4/config |
e455ae13 | 12 | |
3fa8d773 | 13 | EXTRA_DIST = Doxyfile.in LICENSE Android.common.mk.in Android.common.mk Android.mk |
dcb4651d | 14 | CLEANFILES = Doxyfile |
3fa8d773 TB |
15 | BUILT_SOURCES = Android.common.mk |
16 | MAINTAINERCLEANFILES = Android.common.mk | |
807c12ce | 17 | |
b188f231 | 18 | if USE_DEV_HEADERS |
7300eb29 MW |
19 | config_includedir = $(ipseclibdir)/include |
20 | nodist_config_include_HEADERS = config.h | |
b188f231 | 21 | endif |
7300eb29 | 22 | |
127f65db TB |
23 | # we leave config files behind intentionally so prevent distcheck from complaining |
24 | distuninstallcheck_listfiles = find . -type f \! -name '*.conf' -print | |
25 | ||
c577b5eb | 26 | Android.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 | |
32 | Doxyfile : 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 | |
40 | apidoc : Doxyfile | |
882c993b | 41 | @test -d apidoc || doxygen |
1f3dbb1b | 42 | @! find Doxyfile $(top_srcdir)/src/ \( -name '*.h' -o -name '*.md' \) -newer apidoc | \ |
882c993b | 43 | grep -q '' || doxygen && touch apidoc |
dcb4651d | 44 | |
ab73ae67 | 45 | cov-reset-common: |
1f14b4a1 | 46 | @rm -rf $(top_builddir)/coverage |
6122bfd2 | 47 | @find $(top_builddir)/src $(top_builddir)/scripts -name "*.gcda" -delete |
ab73ae67 TB |
48 | |
49 | if COVERAGE | |
50 | cov-reset: cov-reset-common | |
1f14b4a1 TB |
51 | @lcov --zerocounters --directory $(top_builddir) |
52 | ||
53 | cov-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 | ||
67 | coverage: | |
68 | @$(MAKE) cov-reset | |
69 | @$(MAKE) check | |
70 | @$(MAKE) cov-report | |
71 | else | |
1f14b4a1 TB |
72 | coverage: |
73 | @echo "reconfigure with --enable-coverage" | |
74 | endif | |
75 | ||
ab73ae67 | 76 | clean-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 |