ehlo,
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.
LS
>From ba0e01bb8dd754b24580615decf54b718ba07b2e Mon Sep 17 00:00:00 2001
From: Lukas Slebodnik
Date: Fri, 13 Nov 2015 06:54:12 +
Subject: [PATCH 7/8] 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
---
Makefile | 5 +
install/po/Makefile.in | 2 ++
ipapython/Makefile | 2 ++
3 files changed, 9 insertions(+)
diff --git a/Makefile b/Makefile
index
3c81466d3728022c1d9cf5bb216990f14a59b7e5..d2c37f1597a011af2bd9ef1a4f7ce87ac59620a3
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
e0bf2e0a1f3db14d485c7d787ae95e433703856f..713fcb5aa9143d718049bf691e7c3bc9e102803f
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
8527643232fd1b14fc246bd36678631baac088db..a865ca7580f5270eca4383508ced23e8537da669
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 \
--
2.5.0
--
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code