summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2014-12-14 17:53:57 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2014-12-14 17:53:57 (GMT)
commit73898524eadf450b650fb06ee1d0690b4a2510db (patch)
tree3e09bdc122505eae04d0f1ee47660e4964133b6c /Makefile
parentaabb2ef8b2f769ce892b35ea43cdd0082266eaba (diff)
downloadmxe-73898524eadf450b650fb06ee1d0690b4a2510db.zip
mxe-73898524eadf450b650fb06ee1d0690b4a2510db.tar.gz
mxe-73898524eadf450b650fb06ee1d0690b4a2510db.tar.bz2
Print config.log when build succeeded as well
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 7352df6..b2449b9 100644
--- a/Makefile
+++ b/Makefile
@@ -400,12 +400,6 @@ $(PREFIX)/$(3)/installed/$(1): $(TOP_DIR)/src/$(1).mk \
echo '------------------------------------------------------------'; \
echo '[log] $(LOG_DIR)/$(1)'; \
echo; \
- (echo; \
- find '$(2)' -name 'config.log' -print -exec cat {} \;; \
- echo; \
- echo 'settings.mk'; \
- cat '$(TOP_DIR)/settings.mk'; \
- ) >> '$(LOG_DIR)/$(TIMESTAMP)/$(1)_$(3)'; \
exit 1; \
fi
$(if $(value $(call LOOKUP_PKG_RULE,$(1),BUILD,$(3))),
@@ -430,6 +424,11 @@ build-only-$(1)_$(3):
$(foreach PKG_PATCH,$(sort $(wildcard $(TOP_DIR)/src/$(1)-*.patch)),
(cd '$(2)/$($(1)_SUBDIR)' && $(PATCH) -p1 -u) < $(PKG_PATCH))
$$(call $(call LOOKUP_PKG_RULE,$(1),BUILD,$(3)),$(2)/$($(1)_SUBDIR),$(TOP_DIR)/src/$(1)-test)
+ @echo
+ @find '$(2)' -name 'config.log' -print -exec cat {} \;
+ @echo
+ @echo 'settings.mk'
+ @cat '$(TOP_DIR)/settings.mk'
(du -k -d 0 '$(2)' 2>/dev/null || du -k --max-depth 0 '$(2)') | $(SED) -n 's/^\(\S*\).*/du: \1 KiB/p'
rm -rfv '$(2)'
,)