Mercurial > mxe-octave
changeset 396:3bfb1390ce96
bugfix: decouple the download-* targets from the build targets
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Tue, 16 Jun 2009 22:17:10 +0200 |
parents | efb6136728a8 |
children | 69129f67d7a0 |
files | Makefile |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Tue Jun 16 22:01:18 2009 +0200 +++ b/Makefile Tue Jun 16 22:17:10 2009 +0200 @@ -84,10 +84,14 @@ .PHONY: $(1) $(1): $(PREFIX)/installed-$(1) $(PREFIX)/installed-$(1): $(TOP_DIR)/src/$(1).mk \ - download-$(1) \ $(wildcard $(TOP_DIR)/src/$(1)-*.patch) \ $(addprefix $(PREFIX)/installed-,$($(1)_DEPS)) [ -d '$(PREFIX)' ] || mkdir -p '$(PREFIX)' + [ -d '$(PKG_DIR)' ] || mkdir -p '$(PKG_DIR)' + 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)'