summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2010-11-19 10:47:35 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2010-11-19 10:47:35 (GMT)
commit84c97e979c1a301ba863d11973227d5c5bb84de8 (patch)
tree9b2030f9aa838c50da1f6ce5d9d8afad49a907f4 /Makefile
parent862325bf7ce6b06e05b16f8080044fb7d5e3dc18 (diff)
downloadmxe-84c97e979c1a301ba863d11973227d5c5bb84de8.zip
mxe-84c97e979c1a301ba863d11973227d5c5bb84de8.tar.gz
mxe-84c97e979c1a301ba863d11973227d5c5bb84de8.tar.bz2
check requirements only at the first time and after each change to the main Makefile (which possibly changed the list of requirements)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1da3af1..14be081 100644
--- a/Makefile
+++ b/Makefile
@@ -86,9 +86,12 @@ define CHECK_REQUIREMENT
fi
endef
-check-requirements:
+check-requirements: $(PREFIX)/installed/check-requirements
+$(PREFIX)/installed/check-requirements: $(MAKEFILE)
@echo '[check requirements]'
$(foreach REQUIREMENT,$(REQUIREMENTS),$(call CHECK_REQUIREMENT,$(REQUIREMENT)))
+ @[ -d '$(PREFIX)/installed' ] || mkdir -p '$(PREFIX)/installed'
+ @touch '$@'
.PHONY: download
download: $(addprefix download-,$(PKGS))