summaryrefslogtreecommitdiff
path: root/mk/target.mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2007-03-12 10:50:53 +0000
committerIan Lynagh <igloo@earth.li>2007-03-12 10:50:53 +0000
commit5b8241166c9a6cfc57d7e91677331d334caed89d (patch)
tree7445f3345194f52db28d0820701893e8587a6284 /mk/target.mk
parentca5ded310c0a596be199a3da5f14be2fb2020687 (diff)
downloadhaskell-5b8241166c9a6cfc57d7e91677331d334caed89d.tar.gz
Be a bit more verbose about what's happening when recursively making in subdirs
Diffstat (limited to 'mk/target.mk')
-rw-r--r--mk/target.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/mk/target.mk b/mk/target.mk
index bf82fd430a..32eb7e39f9 100644
--- a/mk/target.mk
+++ b/mk/target.mk
@@ -1176,13 +1176,19 @@ $(ALL_TARGET) docs runtests $(BOOT_TARGET) TAGS clean distclean mostlyclean main
@echo "------------------------------------------------------------------------"
# Don't rely on -e working, instead we check exit return codes from sub-makes.
@case '${MFLAGS}' in *-[ik]*) x_on_err=0;; *-r*[ik]*) x_on_err=0;; *) x_on_err=1;; esac; \
+ if [ $$x_on_err -eq 0 ]; \
+ then echo "Won't exit on error due to MFLAGS: ${MFLAGS}"; \
+ fi; \
for i in $(SUBDIRS); do \
echo "------------------------------------------------------------------------"; \
echo "== $(MAKE) $@ $(MFLAGS);"; \
echo " in $(shell pwd)/$$i"; \
echo "------------------------------------------------------------------------"; \
$(MAKE) --no-print-directory -C $$i $(MFLAGS) $@; \
- if [ $$? -eq 0 -o $$x_on_err -eq 0 ] ; then true; else exit 1; fi; \
+ if [ $$? -eq 0 -o $$x_on_err -eq 0 ]; \
+ then echo "Finished making $@ in $$i": $$?; \
+ else echo "Failed making $@ in $$i": $$?; exit 1; \
+ fi; \
done
@echo "------------------------------------------------------------------------"
@echo "== Finished making \`$@' in $(SUBDIRS) ..."