diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2009-12-13 14:17:24 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2009-12-13 14:17:24 (GMT) |
commit | 76888debe410a67131e7e544f297ed541e59fd4a (patch) | |
tree | 07901155ae35d1dfdafd827ab60d7aadaae56651 /Makefile | |
parent | 71c6de1e566157d1f7591ead2ec03d62980055d8 (diff) | |
download | mxe-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-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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)!'; \ |