thread: Add a function to pop and call all registered cleanup handlers
[strongswan.git] / Makefile.am
index be32018..bea4ba7 100644 (file)
@@ -20,6 +20,9 @@ config_includedir = $(ipseclibdir)/include
 nodist_config_include_HEADERS = config.h
 endif
 
 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
+
 Android.common.mk :    Android.common.mk.in configure.ac
                $(AM_V_GEN) \
                sed \
 Android.common.mk :    Android.common.mk.in configure.ac
                $(AM_V_GEN) \
                sed \
@@ -31,7 +34,7 @@ Doxyfile :    Doxyfile.in
                sed \
                -e "s:\@PACKAGE_VERSION\@:$(PACKAGE_VERSION):" \
                -e "s:\@PACKAGE_NAME\@:$(PACKAGE_NAME):" \
                sed \
                -e "s:\@PACKAGE_VERSION\@:$(PACKAGE_VERSION):" \
                -e "s:\@PACKAGE_NAME\@:$(PACKAGE_NAME):" \
-               -e "s:\@SRC_DIR\@:$(srcdir):" \
+               -e "s:\@SRC_DIR\@:$(srcdir):g" \
                $(srcdir)/$@.in > $@
 
 apidoc :       Doxyfile
                $(srcdir)/$@.in > $@
 
 apidoc :       Doxyfile
@@ -39,7 +42,7 @@ apidoc :      Doxyfile
 
 cov-reset-common:
                @rm -rf $(top_builddir)/coverage
 
 cov-reset-common:
                @rm -rf $(top_builddir)/coverage
-               @find $(top_builddir)/{src,scripts} -name "*.gcda" -delete
+               @find $(top_builddir)/src $(top_builddir)/scripts -name "*.gcda" -delete
 
 if COVERAGE
 cov-reset: cov-reset-common
 
 if COVERAGE
 cov-reset: cov-reset-common
@@ -52,7 +55,7 @@ cov-report:
                lcov -r $(top_builddir)/coverage/coverage.info '*/tests/*' \
                         -o $(top_builddir)/coverage/coverage.cleaned.info \
                         --rc lcov_branch_coverage=1
                lcov -r $(top_builddir)/coverage/coverage.info '*/tests/*' \
                         -o $(top_builddir)/coverage/coverage.cleaned.info \
                         --rc lcov_branch_coverage=1
-               genhtml --num-spaces 4 --legend --branch-coverage \
+               genhtml --num-spaces 4 --legend --branch-coverage --ignore-errors source \
                                -t "$(PACKAGE_STRING)" \
                                -o $(top_builddir)/coverage/html \
                                -p `readlink -m $(abs_top_srcdir)`/src \
                                -t "$(PACKAGE_STRING)" \
                                -o $(top_builddir)/coverage/html \
                                -p `readlink -m $(abs_top_srcdir)`/src \
@@ -69,7 +72,7 @@ coverage:
 endif
 
 clean-local: cov-reset-common
 endif
 
 clean-local: cov-reset-common
-               @find $(top_builddir)/{src,scripts} -name "*.gcno" -delete
+               @find $(top_builddir)/src $(top_builddir)/scripts -name "*.gcno" -delete
                @rm -rf apidoc
 
 .PHONY: cov-reset-common cov-reset cov-report coverage
                @rm -rf apidoc
 
 .PHONY: cov-reset-common cov-reset cov-report coverage