]>
Commit | Line | Data |
---|---|---|
fc16b361 | 1 | SUBDIRS = src man 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 | |
c577b5eb | 23 | Android.common.mk : Android.common.mk.in configure.ac |
0be946dc | 24 | $(AM_V_GEN) \ |
807c12ce TB |
25 | sed \ |
26 | -e "s:\@PACKAGE_VERSION\@:$(PACKAGE_VERSION):" \ | |
27 | $(srcdir)/$@.in > $@ | |
b1e69188 MW |
28 | |
29 | Doxyfile : 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 | |
37 | apidoc : Doxyfile | |
38 | doxygen | |
dcb4651d | 39 | |
ab73ae67 | 40 | cov-reset-common: |
1f14b4a1 | 41 | @rm -rf $(top_builddir)/coverage |
a5b63a3e | 42 | @find $(top_builddir)/{src,scripts} -name "*.gcda" -delete |
ab73ae67 TB |
43 | |
44 | if COVERAGE | |
45 | cov-reset: cov-reset-common | |
1f14b4a1 TB |
46 | @lcov --zerocounters --directory $(top_builddir) |
47 | ||
48 | cov-report: | |
49 | @mkdir $(top_builddir)/coverage | |
906a4fd1 TB |
50 | lcov -c -o $(top_builddir)/coverage/coverage.info -d $(top_builddir) \ |
51 | --rc lcov_branch_coverage=1 | |
ab73ae67 | 52 | lcov -r $(top_builddir)/coverage/coverage.info '*/tests/*' \ |
906a4fd1 TB |
53 | -o $(top_builddir)/coverage/coverage.cleaned.info \ |
54 | --rc lcov_branch_coverage=1 | |
55 | genhtml --num-spaces 4 --legend --branch-coverage \ | |
1f14b4a1 TB |
56 | -t "$(PACKAGE_STRING)" \ |
57 | -o $(top_builddir)/coverage/html \ | |
58 | -p `readlink -m $(abs_top_srcdir)`/src \ | |
ab73ae67 | 59 | $(top_builddir)/coverage/coverage.cleaned.info |
1f14b4a1 TB |
60 | @echo "Coverage Report at $(top_builddir)/coverage/html" >&2 |
61 | ||
62 | coverage: | |
63 | @$(MAKE) cov-reset | |
64 | @$(MAKE) check | |
65 | @$(MAKE) cov-report | |
66 | else | |
1f14b4a1 TB |
67 | coverage: |
68 | @echo "reconfigure with --enable-coverage" | |
69 | endif | |
70 | ||
ab73ae67 | 71 | clean-local: cov-reset-common |
a5b63a3e | 72 | @find $(top_builddir)/{src,scripts} -name "*.gcno" -delete |
ab73ae67 TB |
73 | @rm -rf apidoc |
74 | ||
c577b5eb | 75 | .PHONY: cov-reset-common cov-reset cov-report coverage |