Browse Source

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.
pull/942/merge
Karl Palsson 6 years ago
parent
commit
b309b7e082
  1. 3
      .gitignore
  2. 6
      Makefile

3
.gitignore

@ -43,3 +43,6 @@ locm3.sublime-workspace
# cscope databases
cscope.out
# build droppings
.stamp_failure*

6
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

Loading…
Cancel
Save