]> git.ipfire.org Git - thirdparty/strongswan.git/blobdiff - Makefile.am
Merge branch 'mobike-nat'
[thirdparty/strongswan.git] / Makefile.am
index bea4ba7c0290e2041f007fa6a5500c8a9fea55b2..54b822050299a77b365686ca6fc262d739fdfe77 100644 (file)
@@ -1,5 +1,9 @@
 SUBDIRS = src man conf init testing
 
+if USE_FUZZING
+  SUBDIRS += fuzz
+endif
+
 if USE_SCRIPTS
   SUBDIRS += scripts
 endif
@@ -21,7 +25,7 @@ nodist_config_include_HEADERS = config.h
 endif
 
 # we leave config files behind intentionally so prevent distcheck from complaining
-distuninstallcheck_listfiles = find . -type f \! -name '*.conf' -print
+distuninstallcheck_listfiles = find . -type f \! -name '*.conf' \! -name '*.secrets' -print
 
 Android.common.mk :    Android.common.mk.in configure.ac
                $(AM_V_GEN) \
@@ -38,7 +42,9 @@ Doxyfile :    Doxyfile.in
                $(srcdir)/$@.in > $@
 
 apidoc :       Doxyfile
-               doxygen
+               @test -d apidoc || doxygen
+               @! find Doxyfile $(top_srcdir)/src/ \( -name '*.h' -o -name '*.md' \) -newer apidoc | \
+                       grep -q '' || doxygen && touch apidoc
 
 cov-reset-common:
                @rm -rf $(top_builddir)/coverage
@@ -52,8 +58,8 @@ cov-report:
                @mkdir $(top_builddir)/coverage
                lcov -c -o $(top_builddir)/coverage/coverage.info -d $(top_builddir) \
                         --rc lcov_branch_coverage=1
-               lcov -r $(top_builddir)/coverage/coverage.info '*/tests/*' \
-                        -o $(top_builddir)/coverage/coverage.cleaned.info \
+               lcov -r $(top_builddir)/coverage/coverage.info '*/tests/*' '*/suites/*' '/usr*' \
+                        -o $(abs_top_builddir)/coverage/coverage.cleaned.info \
                         --rc lcov_branch_coverage=1
                genhtml --num-spaces 4 --legend --branch-coverage --ignore-errors source \
                                -t "$(PACKAGE_STRING)" \
@@ -75,4 +81,4 @@ clean-local: cov-reset-common
                @find $(top_builddir)/src $(top_builddir)/scripts -name "*.gcno" -delete
                @rm -rf apidoc
 
-.PHONY: cov-reset-common cov-reset cov-report coverage
+.PHONY: cov-reset-common cov-reset cov-report coverage apidoc