mirror of https://git.wownero.com/dsc/mxe.git
build-matrix: use $(words $(BUILD_PKGS)) instead of counting
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
This commit is contained in:
parent
7f24485686
commit
2bf824b5a7
3
Makefile
3
Makefile
|
@ -616,7 +616,6 @@ build-matrix.html: $(foreach PKG,$(PKGS), $(TOP_DIR)/src/$(PKG).mk)
|
||||||
<td class="supported">✓</td>, \
|
<td class="supported">✓</td>, \
|
||||||
<td class="unsupported">✗</td>)\n) \
|
<td class="unsupported">✗</td>)\n) \
|
||||||
$(if $(call set_is_member,$(PKG),$(BUILD_PKGS)), \
|
$(if $(call set_is_member,$(PKG),$(BUILD_PKGS)), \
|
||||||
$(eval BUILD_PKGCOUNT := $(call inc,$(BUILD_PKGCOUNT))) \
|
|
||||||
$(eval $(PKG)_VIRTUAL := $(false)) \
|
$(eval $(PKG)_VIRTUAL := $(false)) \
|
||||||
<td class="supported">✓</td>, \
|
<td class="supported">✓</td>, \
|
||||||
<td class="unsupported">✗</td>)\n \
|
<td class="unsupported">✗</td>)\n \
|
||||||
|
@ -636,7 +635,7 @@ build-matrix.html: $(foreach PKG,$(PKGS), $(TOP_DIR)/src/$(PKG).mk)
|
||||||
@echo '</th>' >> $@
|
@echo '</th>' >> $@
|
||||||
@$(foreach TARGET,$(MXE_TARGET_LIST), \
|
@$(foreach TARGET,$(MXE_TARGET_LIST), \
|
||||||
echo '<th>$($(TARGET)_PKGCOUNT)</th>' >> $@;)
|
echo '<th>$($(TARGET)_PKGCOUNT)</th>' >> $@;)
|
||||||
@echo '<th>$(BUILD_PKGCOUNT)</th>' >> $@
|
@echo '<th>$(words $(BUILD_PKGS))</th>' >> $@
|
||||||
@echo '</tr>' >> $@
|
@echo '</tr>' >> $@
|
||||||
@echo '</tbody>' >> $@
|
@echo '</tbody>' >> $@
|
||||||
@echo '</table>' >> $@
|
@echo '</table>' >> $@
|
||||||
|
|
Loading…
Reference in New Issue