mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-05 00:00:45 -04:00
configure.ac has been the recommended name for autoconf input for several years now. Newer autotools start to complain about the configure.in, so we finally change it.
74 lines
1.8 KiB
Makefile
74 lines
1.8 KiB
Makefile
SUBDIRS = src man init testing
|
|
|
|
if USE_SCRIPTS
|
|
SUBDIRS += scripts
|
|
endif
|
|
|
|
if USE_SILENT_RULES
|
|
AM_MAKEFLAGS = -s
|
|
endif
|
|
|
|
ACLOCAL_AMFLAGS = -I m4/config
|
|
|
|
EXTRA_DIST = Doxyfile.in LICENSE Android.common.mk.in Android.common.mk Android.mk
|
|
CLEANFILES = Doxyfile
|
|
BUILT_SOURCES = Android.common.mk
|
|
MAINTAINERCLEANFILES = Android.common.mk
|
|
|
|
if USE_DEV_HEADERS
|
|
config_includedir = $(ipseclibdir)/include
|
|
nodist_config_include_HEADERS = config.h
|
|
endif
|
|
|
|
Android.common.mk : Android.common.mk.in configure.ac
|
|
$(AM_V_GEN) \
|
|
sed \
|
|
-e "s:\@PACKAGE_VERSION\@:$(PACKAGE_VERSION):" \
|
|
$(srcdir)/$@.in > $@
|
|
|
|
Doxyfile : Doxyfile.in
|
|
$(AM_V_GEN) \
|
|
sed \
|
|
-e "s:\@PACKAGE_VERSION\@:$(PACKAGE_VERSION):" \
|
|
-e "s:\@PACKAGE_NAME\@:$(PACKAGE_NAME):" \
|
|
-e "s:\@SRC_DIR\@:$(srcdir):" \
|
|
$(srcdir)/$@.in > $@
|
|
|
|
apidoc : Doxyfile
|
|
doxygen
|
|
|
|
cov-reset-common:
|
|
@rm -rf $(top_builddir)/coverage
|
|
@find $(top_builddir)/{src,scripts} -name "*.gcda" -delete
|
|
|
|
if COVERAGE
|
|
cov-reset: cov-reset-common
|
|
@lcov --zerocounters --directory $(top_builddir)
|
|
|
|
cov-report:
|
|
@mkdir $(top_builddir)/coverage
|
|
lcov -c -o $(top_builddir)/coverage/coverage.info -d $(top_builddir)
|
|
lcov -r $(top_builddir)/coverage/coverage.info '*/tests/*' \
|
|
-o $(top_builddir)/coverage/coverage.cleaned.info
|
|
genhtml --num-spaces 4 --legend \
|
|
-t "$(PACKAGE_STRING)" \
|
|
-o $(top_builddir)/coverage/html \
|
|
-p `readlink -m $(abs_top_srcdir)`/src \
|
|
$(top_builddir)/coverage/coverage.cleaned.info
|
|
@echo "Coverage Report at $(top_builddir)/coverage/html" >&2
|
|
|
|
coverage:
|
|
@$(MAKE) cov-reset
|
|
@$(MAKE) check
|
|
@$(MAKE) cov-report
|
|
else
|
|
coverage:
|
|
@echo "reconfigure with --enable-coverage"
|
|
endif
|
|
|
|
clean-local: cov-reset-common
|
|
@find $(top_builddir)/{src,scripts} -name "*.gcno" -delete
|
|
@rm -rf apidoc
|
|
|
|
.PHONY: cov-reset-common cov-reset cov-report coverage
|