Mercurial > mxe-octave
diff Makefile @ 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 | 6b28a4f27b8c |
children | 59ca7a1f2313 |
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))