diff options
author | Tobias Gruetzmacher <tobias-git@23.gs> | 2014-10-12 20:57:37 (GMT) |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2014-10-13 04:07:18 (GMT) |
commit | c9bdb7adf6ee408ce39db68ab8578d4340763e3a (patch) | |
tree | 53586d2ec5c804be3907ee8f8f39f5d4cf47893b | |
parent | adbcd704c3deab6e897b6b7e3703f36b6736995d (diff) | |
download | mxe-c9bdb7adf6ee408ce39db68ab8578d4340763e3a.zip mxe-c9bdb7adf6ee408ce39db68ab8578d4340763e3a.tar.gz mxe-c9bdb7adf6ee408ce39db68ab8578d4340763e3a.tar.bz2 |
build-matrix: Split huge command into smaller ones
Just outputting each line on its own doesn't impact performance that
much (7s to 7.5s on my system).
On my system: 3.5s -> 4.5s, which is not to bad. --TG
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
-rw-r--r-- | Makefile | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -601,7 +601,7 @@ build-matrix.html: $(foreach PKG,$(PKGS), $(TOP_DIR)/src/$(PKG).mk) @echo '</tr>' >> $@ @echo '</thead>' >> $@ @echo '<tbody>' >> $@ - @{ $(foreach PKG,$(PKGS), \ + @$(foreach PKG,$(PKGS), \ $(eval $(PKG)_VIRTUAL := $(true)) \ $(eval $(PKG)_BUILD_ONLY := $(true)) \ echo '<tr> \ @@ -618,12 +618,11 @@ build-matrix.html: $(foreach PKG,$(PKGS), $(TOP_DIR)/src/$(PKG).mk) $(eval $(PKG)_VIRTUAL := $(false)) \ <td class="supported">✓</td>, \ <td class="unsupported">✗</td>) \ - </tr>'; \ + </tr>' >> $@ $(newline) \ $(if $($(PKG)_VIRTUAL), \ $(eval VIRTUAL_PKGCOUNT := $(call inc,$(VIRTUAL_PKGCOUNT)))) \ $(if $($(PKG)_BUILD_ONLY), \ - $(eval BUILD_ONLY_PKGCOUNT := $(call inc,$(BUILD_ONLY_PKGCOUNT))))) \ - } >> $@ + $(eval BUILD_ONLY_PKGCOUNT := $(call inc,$(BUILD_ONLY_PKGCOUNT))))) @echo '<tr>' >> $@ @# TOTAL_PKGCOUNT = ( PKGS - VIRTUAL ) - BUILD_ONLY $(eval TOTAL_PKGCOUNT := \ |