diff options
author | Karl Palsson <karlp@tweak.net.au> | 2018-07-11 01:16:34 +0300 |
---|---|---|
committer | Karl Palsson <karlp@tweak.net.au> | 2018-07-29 23:31:17 +0300 |
commit | b309b7e082d9db958025e859eeffe626ee4ec80f (patch) | |
tree | 1538c3b942081e8eee5d8db592b918cd7b0c1939 /Makefile | |
parent | 72e1ffdc72af4bee79d51bde59d7fb7fb9fd69e5 (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-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |