Commit 20c6145d authored by Jan Včelák's avatar Jan Včelák 🚀

build: manual recursive targets for check-compile

AM_EXTRA_RECURSIVE_TARGETS works since automake 1.13. (CentOS 6 has 1.11.)
parent e13f680c
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = libtap src tests tests-fuzz samples doc
.PHONY: singlehtml install-singlehtml
singlehtml install-singlehtml:
$(MAKE) -C doc $@
.PHONY: check-compile
check-compile:
$(MAKE) $(AM_MAKEFLAGS) -C libtap $@
$(MAKE) $(AM_MAKEFLAGS) -C src $@
$(MAKE) $(AM_MAKEFLAGS) -C tests $@
$(MAKE) $(AM_MAKEFLAGS) -C tests-fuzz $@
AM_DISTCHECK_CONFIGURE_FLAGS =
CODE_COVERAGE_INFO = coverage.info
......@@ -86,5 +94,6 @@ code-coverage-clean:
-find . -name "*.gcda" -o -name "*.gcov" -delete
endif
.PHONY: check-code-coverage code-coverage-initial code-coverage-capture code-coverage-html code-coverage-summary code-coverage-clean singlehtml install-singlehtml
.PHONY: check-code-coverage code-coverage-initial code-coverage-capture code-coverage-html code-coverage-summary code-coverage-clean
.NOTPARALLEL: clean
......@@ -11,7 +11,6 @@ m4_define([knot_PKG_VERSION],[knot_VERSION_MAJOR.knot_VERSION_MINOR.knot_VERSION
AC_INIT([knot], knot_PKG_VERSION, [knot-dns@labs.nic.cz])
AM_INIT_AUTOMAKE([gnits subdir-objects no-dist-gzip dist-xz -Wall -Werror])
AM_SILENT_RULES([yes])
AM_EXTRA_RECURSIVE_TARGETS([check-compile])
AC_CONFIG_SRCDIR([src/knot])
AC_CONFIG_HEADERS([src/config.h])
AC_CONFIG_MACRO_DIR([m4])
......
......@@ -12,4 +12,4 @@ check_PROGRAMS = \
EXTRA_DIST = \
tap/libtap.sh
check-compile-local: $(check_LTLIBRARIES) $(check_PROGRAMS)
check-compile: $(check_LTLIBRARIES) $(check_PROGRAMS)
ACLOCAL_AMFLAGS = -I $(top_srcdir)/m4
SUBDIRS = zscanner dnssec contrib/dnstap .
.PHONY: check-compile
check-compile:
$(MAKE) $(AM_MAKEFLAGS) -C zscanner $@
$(MAKE) $(AM_MAKEFLAGS) -C dnssec $@
lib_LTLIBRARIES = \
libknot.la
noinst_LTLIBRARIES = \
......
SUBDIRS = . utils tests
.PHONY: check-compile
check-compile:
$(MAKE) $(AM_MAKEFLAGS) -C tests $@
AM_CPPFLAGS = \
-include $(top_builddir)/src/config.h \
-I$(srcdir)/shared \
......
......@@ -48,7 +48,7 @@ check_PROGRAMS = \
keystore_pkcs11_CPPFLAGS = $(AM_CPPFLAGS) -DLIBDIR='"$(libdir)"'
check-compile-local: $(check_PROGRAMS)
check-compile: $(check_PROGRAMS)
check-local: $(check_PROGRAMS)
$(top_builddir)/libtap/runtests -s $(srcdir) \
......
......@@ -24,7 +24,7 @@ tests/unittests:
$(edit) < $(top_srcdir)/src/zscanner/$@.in > $(top_builddir)/src/zscanner/$@
chmod +x $(top_builddir)/src/zscanner/$@
check-compile-local: $(check_SCRIPTS) $(check_PROGRAMS)
check-compile: $(check_SCRIPTS) $(check_PROGRAMS)
check-local: $(check_PROGRAMS)
$(top_builddir)/libtap/runtests \
......
......@@ -21,4 +21,4 @@ knotd_stdio_LDADD = \
$(top_builddir)/src/utils/knotd/knotd-main.o \
$(top_builddir)/src/libknotd.la $(liburcu_LIBS)
check-compile-local: $(check_PROGRAMS)
check-compile: $(check_PROGRAMS)
......@@ -65,7 +65,7 @@ check_PROGRAMS = \
check_PROGRAMS += \
modules/online_sign
check-compile-local: $(check_PROGRAMS)
check-compile: $(check_PROGRAMS)
check-local: $(check_PROGRAMS)
$(top_builddir)/libtap/runtests -s $(top_srcdir)/tests \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment