make-rules/component-report
changeset 2140 ba3091d7e9b6
parent 1139 2fe2a52488cb
child 4336 e0e4b5ad6cb9
equal deleted inserted replaced
2139:127c47823841 2140:ba3091d7e9b6
     6 ARC_BASE_URL = http://psarc.us.oracle.com/
     6 ARC_BASE_URL = http://psarc.us.oracle.com/
     7 BUGDB_URL = http://userland.us.oracle.com/bugdb?cat-subcat=
     7 BUGDB_URL = http://userland.us.oracle.com/bugdb?cat-subcat=
     8 
     8 
     9 REPORT_TRANSFORMS = $(WS_TOP)/transforms/report
     9 REPORT_TRANSFORMS = $(WS_TOP)/transforms/report
    10 CDIR=$(COMPONENT_DIR:$(WS_TOP)/%=%)
    10 CDIR=$(COMPONENT_DIR:$(WS_TOP)/%=%)
       
    11 
       
    12 # Add all the TPNO* Makefile macros together for further processing below.
       
    13 $(foreach macro, $(filter TPNO%, $(.VARIABLES)), \
       
    14     $(eval ALL_TPNOS += $$($(macro))) \
       
    15 )
    11 
    16 
    12 component-report:	$(BUILD_DIR)/component-report
    17 component-report:	$(BUILD_DIR)/component-report
    13 
    18 
    14 $(BUILD_DIR)/component-report:	$(BUILD_DIR)/package-info
    19 $(BUILD_DIR)/component-report:	$(BUILD_DIR)/package-info
    15 	@echo "<tr>" >$@
    20 	@echo "<tr>" >$@
    23              echo "<a href='$(ARC_BASE_URL)$$arc'>$$arc</a><br>" >>$@ ; \
    28              echo "<a href='$(ARC_BASE_URL)$$arc'>$$arc</a><br>" >>$@ ; \
    24 	 done ; echo "</td>" >>$@
    29 	 done ; echo "</td>" >>$@
    25 	@echo "<td>" >>$@ ; for license in $(LICENSE) ; do \
    30 	@echo "<td>" >>$@ ; for license in $(LICENSE) ; do \
    26 	     echo "$$license<br>" >>$@ ; \
    31 	     echo "$$license<br>" >>$@ ; \
    27 	 done ; echo "</td>" >>$@
    32 	 done ; echo "</td>" >>$@
    28 	@echo "<td>$(TPNO)</td>" >>$@
    33 	@echo "<td>" >>$@ ; for tpno in $(ALL_TPNOS) ; do \
       
    34 	     echo "$${tpno}<br>" >>$@ ; \
       
    35 	 done ; echo "</td>" >>$@
    29 	@echo "<td>" >>$@ ; for bugdb in $(COMPONENT_BUGDB) ; do \
    36 	@echo "<td>" >>$@ ; for bugdb in $(COMPONENT_BUGDB) ; do \
    30 	     echo "<a href='$(BUGDB_URL)$$bugdb'>$$bugdb</a><br>" >>$@ ; \
    37 	     echo "<a href='$(BUGDB_URL)$$bugdb'>$$bugdb</a><br>" >>$@ ; \
    31 	 done ; echo "</td>" >>$@
    38 	 done ; echo "</td>" >>$@
    32 	@echo "<td><a href='$(ARIA_BASE_URL)$(RESPONSIBLE_ENGINEER)'>$(RESPONSIBLE_ENGINEER)</a></td>" >>$@
    39 	@echo "<td><a href='$(ARIA_BASE_URL)$(RESPONSIBLE_ENGINEER)'>$(RESPONSIBLE_ENGINEER)</a></td>" >>$@
    33 	@echo "<td><a href='$(ARIA_BASE_URL)$(RESPONSIBLE_MANAGER)'>$(RESPONSIBLE_MANAGER)</a></td>" >>$@
    40 	@echo "<td><a href='$(ARIA_BASE_URL)$(RESPONSIBLE_MANAGER)'>$(RESPONSIBLE_MANAGER)</a></td>" >>$@
    41 	@echo "COMPONENT_NAME=\"$(COMPONENT_NAME)\"" >$@
    48 	@echo "COMPONENT_NAME=\"$(COMPONENT_NAME)\"" >$@
    42 	@echo "COMPONENT_VERSION=\"$(COMPONENT_VERSION)\"" >>$@
    49 	@echo "COMPONENT_VERSION=\"$(COMPONENT_VERSION)\"" >>$@
    43 	@echo "COMPONENT_PROJECT_URL=\"$(COMPONENT_PROJECT_URL)\"" >>$@
    50 	@echo "COMPONENT_PROJECT_URL=\"$(COMPONENT_PROJECT_URL)\"" >>$@
    44 	@echo "COMPONENT_ARCHIVE_URL=\"$(COMPONENT_ARCHIVE_URL)\"" >>$@
    51 	@echo "COMPONENT_ARCHIVE_URL=\"$(COMPONENT_ARCHIVE_URL)\"" >>$@
    45 	@echo "COMPONENT_DIR=\"$(CDIR)\"" >>$@
    52 	@echo "COMPONENT_DIR=\"$(CDIR)\"" >>$@
    46 	@echo "TPNO=\"$(TPNO)\"" >>$@
    53 	@echo "TPNO=\"$(ALL_TPNOS)\"" >>$@
    47 	@echo "COMPONENT_BUGDB=\"$(COMPONENT_BUGDB)\"" >>$@
    54 	@echo "COMPONENT_BUGDB=\"$(COMPONENT_BUGDB)\"" >>$@
    48 	@echo "RESPONSIBLE_ENGINEER=\"$(RESPONSIBLE_ENGINEER)\"" >>$@
    55 	@echo "RESPONSIBLE_ENGINEER=\"$(RESPONSIBLE_ENGINEER)\"" >>$@
    49 	@echo "RESPONSIBLE_MANAGER=\"$(RESPONSIBLE_MANAGER)\"" >>$@
    56 	@echo "RESPONSIBLE_MANAGER=\"$(RESPONSIBLE_MANAGER)\"" >>$@
    50 	@echo "TEAM=\"$(TEAM)\"" >>$@
    57 	@echo "TEAM=\"$(TEAM)\"" >>$@
    51 
    58