summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2014-04-30 03:45:19 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2014-05-03 00:49:30 (GMT)
commit0f30d73e373d09ae6f2042dde94ffd9bc9378f84 (patch)
treeb89286edb28c42ca59793bc3d7e06e1d8e7da931
parent57d8984ac0aa682dead7a6acf4c8c8d884d61758 (diff)
downloadmxe-0f30d73e373d09ae6f2042dde94ffd9bc9378f84.zip
mxe-0f30d73e373d09ae6f2042dde94ffd9bc9378f84.tar.gz
mxe-0f30d73e373d09ae6f2042dde94ffd9bc9378f84.tar.bz2
Add package count per target
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b60fd0c..7c378b3 100644
--- a/Makefile
+++ b/Makefile
@@ -492,6 +492,8 @@ cleanup-style:
)
build-matrix.html: $(foreach PKG,$(PKGS), $(TOP_DIR)/src/$(PKG).mk)
+ $(foreach TARGET,$(MXE_TARGET_LIST),$(eval $(TARGET)_PKGCOUNT := 0))
+ $(eval BUILD_PKGCOUNT := 0)
@echo '<!DOCTYPE html>' > $@
@echo '<html>' >> $@
@echo '<head>' >> $@
@@ -534,11 +536,19 @@ build-matrix.html: $(foreach PKG,$(PKGS), $(TOP_DIR)/src/$(PKG).mk)
echo '<th class="row">$(PKG)</th>' >> $@; \
$(foreach TARGET,$(MXE_TARGET_LIST), \
$(if $(value $(call LOOKUP_PKG_RULE,$(PKG),BUILD,$(TARGET))), \
+ $(eval $(TARGET)_PKGCOUNT := $(call inc,$($(TARGET)_PKGCOUNT))) \
echo '<td class="supported">Y</td>' >> $@;, \
echo '<td class="unsupported">N</td>' >> $@;)) \
$(if $(call set_is_member,$(PKG),$(BUILD_PKGS)), \
+ $(eval BUILD_PKGCOUNT := $(call inc,$(BUILD_PKGCOUNT))) \
echo '<td class="supported">Y</td>' >> $@;, \
echo '<td class="unsupported">N</td>' >> $@;))
+ @echo '<tr>' >> $@
+ @echo '<th class="row">Total: $(words $(PKGS))' >> $@
+ @$(foreach TARGET,$(MXE_TARGET_LIST), \
+ echo '<th>$($(TARGET)_PKGCOUNT)</th>' >> $@;)
+ @echo '<th>$(BUILD_PKGCOUNT)</th>' >> $@
+ @echo '</tr>' >> $@
@echo '</tbody>' >> $@
@echo '</table>' >> $@
@echo '</body>' >> $@