Mercurial > mxe-octave
changeset 2350:2691d175df4e
Improve performance of loading main Makefile
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Thu, 29 Mar 2012 11:07:56 +0200 |
parents | f48c5b085a38 |
children | 8a6c466753e2 |
files | Makefile |
diffstat | 1 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Thu Mar 29 11:07:07 2012 +0200 +++ b/Makefile Thu Mar 29 11:07:56 2012 +0200 @@ -104,10 +104,15 @@ @[ -d '$(PREFIX)/installed' ] || mkdir -p '$(PREFIX)/installed' @touch '$@' -define PKG_DEFINITION -$(1)_VERSION := $(shell grep ' id="$(1)-version"' '$(TOP_DIR)/doc/index.html' | $(SED) -n 's/^.* id="$(1)-version">\([^<]*\)<.*$$/\1/p') +define newline + + endef -$(foreach PKG,$(PKGS),$(eval $(call PKG_DEFINITION,$(PKG)))) +$(eval $(subst #,$(newline),$(shell \ + $(SED) -n \ + 's/^.* id="\([A-Za-z0-9_+-]*\)-version">\([^<]*\)<.*$$/\1_VERSION := \2 #/p' \ + '$(TOP_DIR)/doc/index.html' \ +))) include $(TOP_DIR)/src/*.mk