make-rules/ips.mk
changeset 75 1f81099246e8
parent 70 c610cf9d3d5d
child 76 a084497ff237
equal deleted inserted replaced
74:7e35801ce8b8 75:1f81099246e8
    63 
    63 
    64 PKG_MACROS +=		MACH=$(MACH)
    64 PKG_MACROS +=		MACH=$(MACH)
    65 PKG_MACROS +=		ARCH=$(MACH)
    65 PKG_MACROS +=		ARCH=$(MACH)
    66 PKG_MACROS +=		MACH32=$(MACH32)
    66 PKG_MACROS +=		MACH32=$(MACH32)
    67 PKG_MACROS +=		MACH64=$(MACH64)
    67 PKG_MACROS +=		MACH64=$(MACH64)
    68 PKG_MACROS +=		IPS_PKG_NAME=$(IPS_PKG_NAME)
       
    69 PKG_MACROS +=		PUBLISHER=$(PUBLISHER)
    68 PKG_MACROS +=		PUBLISHER=$(PUBLISHER)
    70 PKG_MACROS +=		CONSOLIDATION=$(CONSOLIDATION)
    69 PKG_MACROS +=		CONSOLIDATION=$(CONSOLIDATION)
    71 PKG_MACROS +=		BUILD_VERSION=$(BUILD_VERSION)
    70 PKG_MACROS +=		BUILD_VERSION=$(BUILD_VERSION)
    72 PKG_MACROS +=		SOLARIS_VERSION=$(SOLARIS_VERSION)
    71 PKG_MACROS +=		SOLARIS_VERSION=$(SOLARIS_VERSION)
    73 PKG_MACROS +=		OS_VERSION=$(OS_VERSION)
    72 PKG_MACROS +=		OS_VERSION=$(OS_VERSION)
    74 PKG_MACROS +=		IPS_COMPONENT_VERSION=$(IPS_COMPONENT_VERSION)
    73 PKG_MACROS +=		IPS_COMPONENT_VERSION=$(IPS_COMPONENT_VERSION)
    75 PKG_MACROS +=		COMPONENT_PROJECT_URL=$(COMPONENT_PROJECT_URL)
       
    76 PKG_MACROS +=		COMPONENT_ARCHIVE_URL=$(COMPONENT_ARCHIVE_URL)
    74 PKG_MACROS +=		COMPONENT_ARCHIVE_URL=$(COMPONENT_ARCHIVE_URL)
    77 
    75 
    78 PKG_OPTIONS +=		$(PKG_MACROS:%=-D %)
    76 PKG_OPTIONS +=		$(PKG_MACROS:%=-D %)
    79 # multi-word macros get broken up, so we handle them "specially"
       
    80 PKG_OPTIONS +=		-D COMPONENT_SUMMARY=$(COMPONENT_SUMMARY)
       
    81 PKG_OPTIONS +=		-D COMPONENT_DESCRIPTION=$(COMPONENT_DESCRIPTION)
       
    82 PKG_OPTIONS +=		-D COMPONENT_CLASSIFICATION=$(COMPONENT_CLASSIFICATION)
       
    83 
    77 
    84 MANIFEST_BASE =		$(BUILD_DIR)/manifest-$(MACH)
    78 MANIFEST_BASE =		$(BUILD_DIR)/manifest-$(MACH)
    85 
    79 
    86 CANONICAL_MANIFESTS =	$(wildcard *.p5m)
    80 CANONICAL_MANIFESTS =	$(wildcard *.p5m)
    87 GENERATED =		$(MANIFEST_BASE)-generated
    81 GENERATED =		$(MANIFEST_BASE)-generated
    93 PUBLISHED=$(MOGRIFIED:%.resolved=%.published)
    87 PUBLISHED=$(MOGRIFIED:%.resolved=%.published)
    94 
    88 
    95 COPYRIGHT_FILE =	$(COMPONENT_NAME)-$(COMPONENT_VERSION).copyright
    89 COPYRIGHT_FILE =	$(COMPONENT_NAME)-$(COMPONENT_VERSION).copyright
    96 ifeq	($(IPS_PKG_NAME),)
    90 ifeq	($(IPS_PKG_NAME),)
    97 	IPS_PKG_NAME =	$(COMPONENT_NAME)
    91 	IPS_PKG_NAME =	$(COMPONENT_NAME)
    98 endif
       
    99 ifeq	($(COMPONENT_SUMMARY),)
       
   100 	COMPONENT_SUMMARY =	$(COMPONENT_DESCRIPTION)
       
   101 endif
    92 endif
   102 IPS_COMPONENT_VERSION =	$(COMPONENT_VERSION)
    93 IPS_COMPONENT_VERSION =	$(COMPONENT_VERSION)
   103 
    94 
   104 .DEFAULT:		publish
    95 .DEFAULT:		publish
   105 
    96