summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2009-12-13 14:17:24 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2009-12-13 14:17:24 (GMT)
commit76888debe410a67131e7e544f297ed541e59fd4a (patch)
tree07901155ae35d1dfdafd827ab60d7aadaae56651 /Makefile
parent71c6de1e566157d1f7591ead2ec03d62980055d8 (diff)
downloadmxe-76888debe410a67131e7e544f297ed541e59fd4a.zip
mxe-76888debe410a67131e7e544f297ed541e59fd4a.tar.gz
mxe-76888debe410a67131e7e544f297ed541e59fd4a.tar.bz2
keep old log files with timestamp using symlinks to refer to the latest ones
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 789885e..5f99b7b 100644
--- a/Makefile
+++ b/Makefile
@@ -120,6 +120,8 @@ $(PREFIX)/installed/$(1): $(TOP_DIR)/src/$(1).mk \
@[ -d '$(PKG_DIR)' ] || mkdir -p '$(PKG_DIR)'
@if ! $(call CHECK_PKG_ARCHIVE,$(1)); then \
echo '[download] $(1)'; \
+ rm -f '$(LOG_DIR)/$(1)-download'; \
+ ln -s `date +%Y%m%d%H%M%S`'-$(1)-download' '$(LOG_DIR)/$(1)-download'; \
($(call DOWNLOAD_PKG_ARCHIVE,$(1))) &> '$(LOG_DIR)/$(1)-download'; \
if ! $(call CHECK_PKG_ARCHIVE,$(1)); then \
echo; \
@@ -135,6 +137,8 @@ $(PREFIX)/installed/$(1): $(TOP_DIR)/src/$(1).mk \
$(if $(value $(1)_BUILD),
@echo '[build] $(1)'
,)
+ @rm -f '$(LOG_DIR)/$(1)'
+ @ln -s `date +%Y%m%d%H%M%S`'-$(1)' '$(LOG_DIR)/$(1)'
@if ! (time $(MAKE) -f '$(MAKEFILE)' 'build-only-$(1)') &> '$(LOG_DIR)/$(1)'; then \
echo; \
echo 'Failed to build package $(1)!'; \