changeset 1403:90d846d2b3c9

check requirements only at the first time and after each change to the main Makefile (which possibly changed the list of requirements)
author Volker Grabsch <vog@notjusthosting.com>
date Fri, 19 Nov 2010 11:47:35 +0100
parents 3e4c11f8cfd4
children f3b547724f48 e8c19ce7f7b1
files Makefile
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Fri Nov 19 11:37:55 2010 +0100
+++ b/Makefile	Fri Nov 19 11:47:35 2010 +0100
@@ -86,9 +86,12 @@
     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))