Makefile: no build means no reports

Trying to extract reports for a failed build is a bad idea.
This commit is contained in:
Michael Shigorin 2012-04-23 17:07:39 +03:00
parent aed6540702
commit 7221c53ccf

View File

@ -43,7 +43,10 @@ export NUM_TARGETS := $(words $(MAKECMDGOALS))
for ARCH in $(ARCHES); do \
if [ "$$ARCH" != "$(firstword $(ARCHES))" ]; then say; fi; \
say "** ARCH: $$ARCH" >&2; \
$(MAKE) -f main.mk ARCH=$$ARCH $@ $(POSTPROC); \
$(MAKE) -f reports.mk ARCH=$$ARCH; \
if $(MAKE) -f main.mk ARCH=$$ARCH $@ $(POSTPROC); then \
if [ -n "$$REPORT" ]; then \
$(MAKE) -f reports.mk ARCH=$$ARCH; \
fi; \
fi; \
done; \
if [ "$$n" -lt "$(NUM_TARGETS)" ]; then say; fi