From ae5415d4a1000022c568932e7a6efa96e684b016 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Wed, 10 May 2017 19:09:46 +0200 Subject: Make sure the build fails if a docs/rel/test/shell dep fails Before this change, the build would continue, even if a dependency failed to build. This could lead to obscure errors in the middle of a testsuite for instance. With this change, the build fails immediately, exactly like when a regular dependency fails to build. While here, replace most uses of `|| exit $$?` with `set -e`. This simplifies error handling if we need to add more commands to each blocks. Also, echo error messages to stderr. --- core/rel.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/rel.mk') diff --git a/core/rel.mk b/core/rel.mk index b149158..f64278c 100644 --- a/core/rel.mk +++ b/core/rel.mk @@ -15,5 +15,5 @@ ifneq ($(SKIP_DEPS),) rel-deps: else rel-deps: $(ALL_REL_DEPS_DIRS) - $(verbose) for dep in $(ALL_REL_DEPS_DIRS) ; do $(MAKE) -C $$dep; done + $(verbose) set -e; for dep in $(ALL_REL_DEPS_DIRS) ; do $(MAKE) -C $$dep; done endif -- cgit v1.2.3