check requirements only at the first time and after each change to the main Makefile (which possibly changed the list of requirements)

This commit is contained in:
Volker Grabsch 2010-11-19 11:47:35 +01:00
parent 862325bf7c
commit 84c97e979c
1 changed files with 4 additions and 1 deletions

View File

@ -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))