summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2015-11-13 06:54:12 +0000
committerMartin Basti <mbasti@redhat.com>2015-11-18 12:53:26 +0100
commit2d39acf626358c01b5f18567f991b195ca842641 (patch)
treee4b296a44a937543fea2f5791b3b15a508d2638e /Makefile
parent559420562839b7cfe8e9af45bf22a3e9755963a7 (diff)
downloadfreeipa-2d39acf626358c01b5f18567f991b195ca842641.tar.gz
freeipa-2d39acf626358c01b5f18567f991b195ca842641.tar.xz
freeipa-2d39acf626358c01b5f18567f991b195ca842641.zip
BUILD: provide check target in custom Makefiles
The automake generated makefiles have already a target check. We need to provide this target also to non-generated Makefiles so we can recursively call make check from top level Makefile Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3c81466d3..d2c37f159 100644
--- a/Makefile
+++ b/Makefile
@@ -74,6 +74,11 @@ client: client-autogen
done
cd ipaplatform && $(PYTHON) setup.py build
+check: bootstrap-autogen server tests
+ @for subdir in $(SUBDIRS); do \
+ (cd $$subdir && $(MAKE) check) || exit 1; \
+ done
+
bootstrap-autogen: version-update client-autogen
@echo "Building IPA $(IPA_VERSION)"
cd asn1; if [ ! -e Makefile ]; then ../autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=$(LIBDIR); fi