Commit 7221c53c authored by Michael Shigorin's avatar Michael Shigorin

Makefile: no build means no reports

Trying to extract reports for a failed build is a bad idea.
parent aed65407
...@@ -43,7 +43,10 @@ export NUM_TARGETS := $(words $(MAKECMDGOALS)) ...@@ -43,7 +43,10 @@ export NUM_TARGETS := $(words $(MAKECMDGOALS))
for ARCH in $(ARCHES); do \ for ARCH in $(ARCHES); do \
if [ "$$ARCH" != "$(firstword $(ARCHES))" ]; then say; fi; \ if [ "$$ARCH" != "$(firstword $(ARCHES))" ]; then say; fi; \
say "** ARCH: $$ARCH" >&2; \ say "** ARCH: $$ARCH" >&2; \
$(MAKE) -f main.mk ARCH=$$ARCH $@ $(POSTPROC); \ if $(MAKE) -f main.mk ARCH=$$ARCH $@ $(POSTPROC); then \
$(MAKE) -f reports.mk ARCH=$$ARCH; \ if [ -n "$$REPORT" ]; then \
$(MAKE) -f reports.mk ARCH=$$ARCH; \
fi; \
fi; \
done; \ done; \
if [ "$$n" -lt "$(NUM_TARGETS)" ]; then say; fi if [ "$$n" -lt "$(NUM_TARGETS)" ]; then say; fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment