diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2012-03-29 09:07:56 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2012-03-29 09:07:56 (GMT) |
commit | 8a254e5b71d1fec8c35613f2c5c29b4838280a5d (patch) | |
tree | 3f89d92ff041289f67964ea467160438451f41c5 | |
parent | 7e6723adb595dd573666c04739d70e528e653a68 (diff) | |
download | mxe-8a254e5b71d1fec8c35613f2c5c29b4838280a5d.zip mxe-8a254e5b71d1fec8c35613f2c5c29b4838280a5d.tar.gz mxe-8a254e5b71d1fec8c35613f2c5c29b4838280a5d.tar.bz2 |
Improve performance of loading main Makefile
-rw-r--r-- | Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -104,10 +104,15 @@ $(PREFIX)/installed/check-requirements: $(MAKEFILE) @[ -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 |