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.
This commit is contained in:
parent
72e1ffdc72
commit
b309b7e082
3
.gitignore
vendored
3
.gitignore
vendored
@ -43,3 +43,6 @@ locm3.sublime-workspace
|
|||||||
|
|
||||||
# cscope databases
|
# cscope databases
|
||||||
cscope.out
|
cscope.out
|
||||||
|
|
||||||
|
# build droppings
|
||||||
|
.stamp_failure*
|
||||||
|
6
Makefile
6
Makefile
@ -70,7 +70,11 @@ $(LIB_DIRS): $(IRQ_DEFN_FILES:=.genhdr)
|
|||||||
echo "Failure building: $@: code: $$?" > .stamp_failure_$(subst /,_,$@)
|
echo "Failure building: $@: code: $$?" > .stamp_failure_$(subst /,_,$@)
|
||||||
|
|
||||||
lib: $(LIB_DIRS)
|
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:
|
html doc:
|
||||||
$(Q)$(MAKE) -C doc html
|
$(Q)$(MAKE) -C doc html
|
||||||
|
Loading…
x
Reference in New Issue
Block a user