make-rules/component-report
branchs11-update
changeset 3662 d2e09f75ea27
parent 2481 638b7db19366
child 5300 7c8e8ab492d5
--- a/make-rules/component-report	Sat Jan 17 09:17:37 2015 -0800
+++ b/make-rules/component-report	Sun Jan 18 17:09:55 2015 -0800
@@ -9,6 +9,11 @@
 REPORT_TRANSFORMS = $(WS_TOP)/transforms/report
 CDIR=$(COMPONENT_DIR:$(WS_TOP)/%=%)
 
+# Add all the TPNO* Makefile macros together for further processing below.
+$(foreach macro, $(filter TPNO%, $(.VARIABLES)), \
+    $(eval ALL_TPNOS += $$($(macro))) \
+)
+
 component-report:	$(BUILD_DIR)/component-report
 
 $(BUILD_DIR)/component-report:	$(BUILD_DIR)/package-info
@@ -25,7 +30,9 @@
 	@echo "<td>" >>[email protected] ; for license in $(LICENSE) ; do \
 	     echo "$$license<br>" >>[email protected] ; \
 	 done ; echo "</td>" >>[email protected]
-	@echo "<td>$(TPNO)</td>" >>[email protected]
+	@echo "<td>" >>[email protected] ; for tpno in $(ALL_TPNOS) ; do \
+	     echo "$${tpno}<br>" >>[email protected] ; \
+	 done ; echo "</td>" >>[email protected]
 	@echo "<td>" >>[email protected] ; for bugdb in $(COMPONENT_BUGDB) ; do \
 	     echo "<a href='$(BUGDB_URL)$$bugdb'>$$bugdb</a><br>" >>[email protected] ; \
 	 done ; echo "</td>" >>[email protected]
@@ -43,7 +50,7 @@
 	@echo "COMPONENT_PROJECT_URL=\"$(COMPONENT_PROJECT_URL)\"" >>[email protected]
 	@echo "COMPONENT_ARCHIVE_URL=\"$(COMPONENT_ARCHIVE_URL)\"" >>[email protected]
 	@echo "COMPONENT_DIR=\"$(CDIR)\"" >>[email protected]
-	@echo "TPNO=\"$(TPNO)\"" >>[email protected]
+	@echo "TPNO=\"$(ALL_TPNOS)\"" >>[email protected]
 	@echo "COMPONENT_BUGDB=\"$(COMPONENT_BUGDB)\"" >>[email protected]
 	@echo "RESPONSIBLE_ENGINEER=\"$(RESPONSIBLE_ENGINEER)\"" >>[email protected]
 	@echo "RESPONSIBLE_MANAGER=\"$(RESPONSIBLE_MANAGER)\"" >>[email protected]