summaryrefslogtreecommitdiffstats
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
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>
-rw-r--r--Makefile5
-rw-r--r--install/po/Makefile.in2
-rw-r--r--ipapython/Makefile2
3 files changed, 9 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
diff --git a/install/po/Makefile.in b/install/po/Makefile.in
index e0bf2e0a1..713fcb5aa 100644
--- a/install/po/Makefile.in
+++ b/install/po/Makefile.in
@@ -78,6 +78,8 @@ C_POTFILES = $(C_FILES) $(H_FILES)
all:
+check:
+
SUFFIXES = .po .mo
.po.mo:
diff --git a/ipapython/Makefile b/ipapython/Makefile
index 852764323..a865ca758 100644
--- a/ipapython/Makefile
+++ b/ipapython/Makefile
@@ -10,6 +10,8 @@ all:
(cd $$subdir && $(MAKE) $@) || exit 1; \
done
+check:
+
.PHONY: install
install:
if [ "$(DESTDIR)" = "" ]; then \