build-matrix: use $(words $(BUILD_PKGS)) instead of counting

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
This commit is contained in:
Timothy Gu 2014-10-14 01:25:53 +00:00
parent 7f24485686
commit 2bf824b5a7
1 changed files with 1 additions and 2 deletions

View File

@ -616,7 +616,6 @@ build-matrix.html: $(foreach PKG,$(PKGS), $(TOP_DIR)/src/$(PKG).mk)
<td class="supported">&#x2713;</td>, \
<td class="unsupported">&#x2717;</td>)\n) \
$(if $(call set_is_member,$(PKG),$(BUILD_PKGS)), \
$(eval BUILD_PKGCOUNT := $(call inc,$(BUILD_PKGCOUNT))) \
$(eval $(PKG)_VIRTUAL := $(false)) \
<td class="supported">&#x2713;</td>, \
<td class="unsupported">&#x2717;</td>)\n \
@ -636,7 +635,7 @@ build-matrix.html: $(foreach PKG,$(PKGS), $(TOP_DIR)/src/$(PKG).mk)
@echo '</th>' >> $@
@$(foreach TARGET,$(MXE_TARGET_LIST), \
echo '<th>$($(TARGET)_PKGCOUNT)</th>' >> $@;)
@echo '<th>$(BUILD_PKGCOUNT)</th>' >> $@
@echo '<th>$(words $(BUILD_PKGS))</th>' >> $@
@echo '</tr>' >> $@
@echo '</tbody>' >> $@
@echo '</table>' >> $@