make-rules/ips.mk
changeset 7 d42300cb8715
parent 4 3d5acfe9dab4
child 12 41aeb1fd8c2d
equal deleted inserted replaced
6:20f80c019d73 7:d42300cb8715
    47 
    47 
    48 .DEFAULT:	publish
    48 .DEFAULT:	publish
    49 
    49 
    50 publish:	$(COMPONENT_SRC)/.published
    50 publish:	$(COMPONENT_SRC)/.published
    51 
    51 
       
    52 COPYRIGHT_FILE =	$(COMPONENT_NAME)-$(COMPONENT_VERSION).copyright
       
    53 
       
    54 $(PROTO_DIR)/$(COPYRIGHT_FILE):	$(COMPONENT_COPYRIGHT)
       
    55 	$(CP) $< [email protected]
       
    56 
    52 $(COMPONENT_SRC)/manifest:	install
    57 $(COMPONENT_SRC)/manifest:	install
    53 	pkgsend generate $(PROTO_DIR) >[email protected]
    58 	pkgsend generate $(PROTO_DIR) >[email protected]
    54 
    59 
    55 $(COMPONENT_SRC)/manifest.mog:	$(COMPONENT_SRC)/manifest
    60 $(COMPONENT_SRC)/manifest.mog:	$(COMPONENT_SRC)/manifest $(PROTO_DIR)/$(COPYRIGHT_FILE)
    56 	echo "set name=pkg.fmri value=pkg:/$(PUBLISHER)/$(COMPONENT_NAME)@$(COMPONENT_VERSION),$(BUILD_VERSION)" >[email protected]
    61 	echo "set name=pkg.fmri value=pkg:/$(PUBLISHER)/$(COMPONENT_NAME)@$(COMPONENT_VERSION),$(BUILD_VERSION)" >[email protected]
    57 	echo "set name=pkg.description value=\"$(COMPONENT_DESCRIPTION)\"" >>[email protected]
    62 	echo "set name=pkg.description value=\"$(COMPONENT_DESCRIPTION)\"" >>[email protected]
    58 	echo "set name=pkg.name value=\"$(COMPONENT_DESCRIPTION)\"" >>[email protected]
    63 	echo "set name=pkg.name value=\"$(COMPONENT_DESCRIPTION)\"" >>[email protected]
    59 	echo "set name=org.opensolaris.consolidation value=$(CONSOLIDATION)" >>[email protected]
    64 	echo "set name=org.opensolaris.consolidation value=$(CONSOLIDATION)" >>[email protected]
       
    65 	echo "license $(COPYRIGHT_FILE) license=$(COPYRIGHT_FILE)" >>[email protected]
    60 	pkgmogrify $(PKGMOGRIFY_MACROS:%=-D %) $(PKGMOGRIFY_TRANSFORMS) $< >>[email protected]
    66 	pkgmogrify $(PKGMOGRIFY_MACROS:%=-D %) $(PKGMOGRIFY_TRANSFORMS) $< >>[email protected]
    61 
    67 
    62 $(COMPONENT_SRC)/manifest.fdeps:	$(COMPONENT_SRC)/manifest.mog
    68 $(COMPONENT_SRC)/manifest.fdeps:	$(COMPONENT_SRC)/manifest.mog
    63 	pkgdepend generate -m $< $(PROTO_DIR) >[email protected]
    69 	pkgdepend generate -m $< $(PROTO_DIR) >[email protected]
    64 
    70