summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2010-11-18 02:58:30 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2010-11-18 02:58:30 (GMT)
commit05de57144c7510791db6fe961b619c68c62995c3 (patch)
treeb326ac06499c16c97c687ec9fb7e1953dba7cc63 /Makefile
parent0dfe34bd930d3273bcb91efc46ec570987a39c08 (diff)
downloadmxe-05de57144c7510791db6fe961b619c68c62995c3.zip
mxe-05de57144c7510791db6fe961b619c68c62995c3.tar.gz
mxe-05de57144c7510791db6fe961b619c68c62995c3.tar.bz2
portability fix for MSYS
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ce22e99..9dd1c9a 100644
--- a/Makefile
+++ b/Makefile
@@ -88,9 +88,9 @@ $(PREFIX)/installed/$(1): $(TOP_DIR)/src/$(1).mk \
@[ -d '$(LOG_DIR)/$(TIMESTAMP)' ] || mkdir -p '$(LOG_DIR)/$(TIMESTAMP)'
@if ! $(call CHECK_PKG_ARCHIVE,$(1)); then \
echo '[download] $(1)'; \
+ ($(call DOWNLOAD_PKG_ARCHIVE,$(1))) &> '$(LOG_DIR)/$(TIMESTAMP)/$(1)-download'; \
rm -f '$(LOG_DIR)/$(1)-download'; \
ln -s '$(TIMESTAMP)/$(1)-download' '$(LOG_DIR)/$(1)-download'; \
- ($(call DOWNLOAD_PKG_ARCHIVE,$(1))) &> '$(LOG_DIR)/$(1)-download'; \
if ! $(call CHECK_PKG_ARCHIVE,$(1)); then \
echo; \
echo 'Wrong checksum of package $(1)!'; \
@@ -106,8 +106,9 @@ $(PREFIX)/installed/$(1): $(TOP_DIR)/src/$(1).mk \
@echo '[build] $(1)'
,)
@rm -f '$(LOG_DIR)/$(1)'
+ @touch '$(LOG_DIR)/$(TIMESTAMP)/$(1)'
@ln -s '$(TIMESTAMP)/$(1)' '$(LOG_DIR)/$(1)'
- @if ! (time $(MAKE) -f '$(MAKEFILE)' 'build-only-$(1)') &> '$(LOG_DIR)/$(1)'; then \
+ @if ! (time $(MAKE) -f '$(MAKEFILE)' 'build-only-$(1)') &> '$(LOG_DIR)/$(TIMESTAMP)/$(1)'; then \
echo; \
echo 'Failed to build package $(1)!'; \
echo '------------------------------------------------------------'; \