log the total disk usage of the temporary build directory after each successful build

This commit is contained in:
Volker Grabsch 2011-09-03 21:17:41 +02:00
parent fe7b3d2231
commit d3bff5a8cb
1 changed files with 1 additions and 0 deletions

View File

@ -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'