summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2011-09-03 19:17:41 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2011-09-03 19:17:41 (GMT)
commitd3bff5a8cb4a84c6ec714cef25dfc33776dd9349 (patch)
tree0bbe2707c081beadd6be8a2359a83c1505ddef1c
parentfe7b3d223159f9dda17f028319b6834bf0cbe63c (diff)
downloadmxe-d3bff5a8cb4a84c6ec714cef25dfc33776dd9349.zip
mxe-d3bff5a8cb4a84c6ec714cef25dfc33776dd9349.tar.gz
mxe-d3bff5a8cb4a84c6ec714cef25dfc33776dd9349.tar.bz2
log the total disk usage of the temporary build directory after each successful build
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b6e3eb3..cc2b019 100644
--- a/Makefile
+++ b/Makefile
@@ -153,6 +153,7 @@ build-only-$(1):
$(foreach PKG_PATCH,$(sort $(wildcard $(TOP_DIR)/src/$(1)-*.patch)),
(cd '$(2)/$($(1)_SUBDIR)' && $(PATCH) -p1 -u) < $(PKG_PATCH))
$$(call $(1)_BUILD,$(2)/$($(1)_SUBDIR),$(TOP_DIR)/src/$(1)-test)
+ (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)'
,)
[ -d '$(PREFIX)/installed' ] || mkdir -p '$(PREFIX)/installed'