Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thirdpin/libopencm3.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Palsson <karlp@tweak.net.au>2018-07-11 01:16:34 +0300
committerKarl Palsson <karlp@tweak.net.au>2018-07-29 23:31:17 +0300
commitb309b7e082d9db958025e859eeffe626ee4ec80f (patch)
tree1538c3b942081e8eee5d8db592b918cd7b0c1939 /Makefile
parent72e1ffdc72af4bee79d51bde59d7fb7fb9fd69e5 (diff)
make: report errors from multiple sub builds properly.
The reporting of make errors wasn't catching a failure from multiple sublibs. rework it to iterate all found, rather than trying a single file test.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 02b67c85..3ace81b8 100644
--- a/Makefile
+++ b/Makefile
@@ -70,7 +70,11 @@ $(LIB_DIRS): $(IRQ_DEFN_FILES:=.genhdr)
echo "Failure building: $@: code: $$?" > .stamp_failure_$(subst /,_,$@)
lib: $(LIB_DIRS)
- $(Q)[ -f .stamp_failure_* ] && cat .stamp_failure_* && exit 1 || true;
+ $(Q)$(RM) .stamp_failure_tld
+ $(Q)for failure in .stamp_failure_*; do \
+ [ -f $$failure ] && cat $$failure >> .stamp_failure_tld || true; \
+ done;
+ $(Q)[ -f .stamp_failure_tld ] && cat .stamp_failure_tld && exit 1 || true;
html doc:
$(Q)$(MAKE) -C doc html