summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2013-08-27 09:04:33 (GMT)
committerTony Theodore <tonyt@logyst.com>2013-08-27 09:04:33 (GMT)
commitcd9425517b11c7667b3e710df56ade30e65adb4e (patch)
tree661a3485e5e0c847d79467b213dc922b04757990 /Makefile
parent368150f334f3618b64bd1221eaf777dd1e1068c5 (diff)
downloadmxe-cd9425517b11c7667b3e710df56ade30e65adb4e.zip
mxe-cd9425517b11c7667b3e710df56ade30e65adb4e.tar.gz
mxe-cd9425517b11c7667b3e710df56ade30e65adb4e.tar.bz2
Makefile: add explicit failed download message
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3670143..085d9e8 100644
--- a/Makefile
+++ b/Makefile
@@ -82,7 +82,8 @@ DOWNLOAD_PKG_ARCHIVE = \
$(if $($(1)_FIX_GZIP), \
| gzip -d | gzip -9n, \
) \
- > '$(PKG_DIR)/$($(1)_FILE)' || rm -f '$(PKG_DIR)/$($(1)_FILE)'
+ > '$(PKG_DIR)/$($(1)_FILE)' || \
+ ( echo 'Download failed!'; rm -f '$(PKG_DIR)/$($(1)_FILE)'; exit 1; )
ifeq ($(IGNORE_SETTINGS),yes)
$(info [ignore settings.mk])
@@ -202,7 +203,7 @@ $(PREFIX)/$(3)/installed/$(1): $(TOP_DIR)/src/$(1).mk \
ln -sf '$(TIMESTAMP)/$(1)-download' '$(LOG_DIR)/$(1)-download'; \
if ! $(call CHECK_PKG_ARCHIVE,$(1)); then \
echo; \
- echo 'Wrong checksum of package $(1)!'; \
+ echo 'Download failed or wrong checksum of package $(1)!'; \
echo '------------------------------------------------------------'; \
tail -n 10 '$(LOG_DIR)/$(1)-download' | $(SED) -n '/./p'; \
echo '------------------------------------------------------------'; \