From 84c97e979c1a301ba863d11973227d5c5bb84de8 Mon Sep 17 00:00:00 2001 From: Volker Grabsch Date: Fri, 19 Nov 2010 11:47:35 +0100 Subject: [PATCH] check requirements only at the first time and after each change to the main Makefile (which possibly changed the list of requirements) --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1da3af1f..14be0818 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))