summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2009-04-05 14:11:11 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2009-04-05 14:11:11 (GMT)
commitb2757619ca9d15b0a785159965d818b7b37fc4cb (patch)
tree9f4d0287af58ae4ff41d8089fa1091a53d84ed29 /Makefile
parent32665f362da3494328c50e0a0a44f0cecc3d7822 (diff)
downloadmxe-b2757619ca9d15b0a785159965d818b7b37fc4cb.zip
mxe-b2757619ca9d15b0a785159965d818b7b37fc4cb.tar.gz
mxe-b2757619ca9d15b0a785159965d818b7b37fc4cb.tar.bz2
bugfix in handling checksums
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 88e673b..a3ee6ee 100644
--- a/Makefile
+++ b/Makefile
@@ -72,10 +72,10 @@ $(1): $(PREFIX)/installed-$(1)
$(PREFIX)/installed-$(1): $(TOP_DIR)/src/$(1).mk $(addprefix $(PREFIX)/installed-,$($(1)_DEPS))
[ -d '$(PREFIX)' ] || mkdir -p '$(PREFIX)'
[ -d '$(PKG_DIR)' ] || mkdir -p '$(PKG_DIR)'
- $(if $$(shell $(call CHECK_PKG_ARCHIVE,$(1)) || echo 'error'),
- $(call DOWNLOAD_PKG_ARCHIVE,$(1))
- $(call CHECK_PKG_ARCHIVE,$(1))
- ,)
+ if ! $(call CHECK_PKG_ARCHIVE,$(1)); then \
+ $(call DOWNLOAD_PKG_ARCHIVE,$(1)); \
+ $(call CHECK_PKG_ARCHIVE,$(1)) || { echo 'Wrong checksum!'; exit 1; }; \
+ fi
$(if $(value $(1)_BUILD),
rm -rf '$(2)'
mkdir -p '$(2)'