184 jprt_build_fastdebug: jprt_build_generic 185 186 jprt_build_debug: DEBUG_LEVEL=slowdebug 187 jprt_build_debug: BUILD_DIRNAME=*-debug 188 jprt_build_debug: jprt_build_generic 189 190 jprt_build_generic: BRIDGE_TARGETS+=jprt_bundle 191 jprt_build_generic: bridgeBuild 192 193 # This target must be called in the context of a SPEC file 194 jprt_bundle: $(JPRT_ARCHIVE_BUNDLE) 195 @$(call CheckIfMakeAtEnd) 196 197 # This target must be called in the context of a SPEC file 198 $(JPRT_ARCHIVE_BUNDLE): bundles 199 $(MKDIR) -p $(@D) 200 $(RM) $@ 201 $(CP) $(BUILD_OUTPUT)/bundles/$(JDK_IMAGE_SUBDIR).zip $@ 202 203 ifeq ($(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU_BITS),solaris-64) 204 SRC_JDK_IMAGE_DIR := $(JDK_OVERLAY_IMAGE_DIR) 205 SRC_JRE_IMAGE_DIR := $(JRE_OVERLAY_IMAGE_DIR) 206 else 207 SRC_JDK_IMAGE_DIR := $(JDK_IMAGE_DIR) 208 SRC_JRE_IMAGE_DIR := $(JRE_IMAGE_DIR) 209 endif 210 SRC_JDK_BUNDLE_DIR := $(JDK_BUNDLE_DIR) 211 SRC_JRE_BUNDLE_DIR := $(JRE_BUNDLE_DIR) 212 213 # Bundle up the images 214 bundles: all bundles-only 215 bundles-only: start-make 216 @$(call TargetEnter) 217 $(MKDIR) -p $(BUILD_OUTPUT)/bundles 218 $(CD) $(SRC_JDK_IMAGE_DIR) && $(ZIP) -q -r $(BUILD_OUTPUT)/bundles/$(JDK_IMAGE_SUBDIR).zip . 219 $(CD) $(SRC_JRE_IMAGE_DIR) && $(ZIP) -q -r $(BUILD_OUTPUT)/bundles/$(JRE_IMAGE_SUBDIR).zip . 220 if [ -d $(BUILD_OUTPUT)/install/bundles ] ; then \ 221 $(CD) $(BUILD_OUTPUT)/install/bundles && $(ZIP) -q -r $(JPRT_ARCHIVE_INSTALL_BUNDLE) . ; \ 222 fi 223 @$(call TargetExit) 224 225 # Copy images to one unified location regardless of platform etc. 226 final-images: all final-images-only 227 final-images-only: start-make 228 @$(call TargetEnter) 229 $(RM) -r $(BUILD_OUTPUT)/final-images 230 $(MKDIR) -p $(BUILD_OUTPUT)/final-images/$(JDK_IMAGE_SUBDIR) 231 $(MKDIR) -p $(BUILD_OUTPUT)/final-images/$(JRE_IMAGE_SUBDIR) 232 $(CP) -R -P $(SRC_JDK_IMAGE_DIR)/* $(BUILD_OUTPUT)/final-images/$(JDK_IMAGE_SUBDIR)/ 233 $(CP) -R -P $(SRC_JRE_IMAGE_DIR)/* $(BUILD_OUTPUT)/final-images/$(JRE_IMAGE_SUBDIR)/ 234 ifeq ($(OPENJDK_TARGET_OS),macosx) 235 $(MKDIR) -p $(BUILD_OUTPUT)/final-images/$(JDK_BUNDLE_SUBDIR) 236 $(MKDIR) -p $(BUILD_OUTPUT)/final-images/$(JRE_BUNDLE_SUBDIR) 237 $(CP) -R -P $(SRC_JDK_BUNDLE_DIR)/* $(BUILD_OUTPUT)/final-images/$(JDK_BUNDLE_SUBDIR)/ 238 $(CP) -R -P $(SRC_JRE_BUNDLE_DIR)/* $(BUILD_OUTPUT)/final-images/$(JRE_BUNDLE_SUBDIR)/ 239 endif 240 @$(call TargetExit) 241 | 184 jprt_build_fastdebug: jprt_build_generic 185 186 jprt_build_debug: DEBUG_LEVEL=slowdebug 187 jprt_build_debug: BUILD_DIRNAME=*-debug 188 jprt_build_debug: jprt_build_generic 189 190 jprt_build_generic: BRIDGE_TARGETS+=jprt_bundle 191 jprt_build_generic: bridgeBuild 192 193 # This target must be called in the context of a SPEC file 194 jprt_bundle: $(JPRT_ARCHIVE_BUNDLE) 195 @$(call CheckIfMakeAtEnd) 196 197 # This target must be called in the context of a SPEC file 198 $(JPRT_ARCHIVE_BUNDLE): bundles 199 $(MKDIR) -p $(@D) 200 $(RM) $@ 201 $(CP) $(BUILD_OUTPUT)/bundles/$(JDK_IMAGE_SUBDIR).zip $@ 202 203 ifeq ($(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU_BITS),solaris-64) 204 SRC_JDK_IMAGE_DIR := $(JDK_IMAGE_DIR) 205 SRC_JRE_IMAGE_DIR := $(JRE_IMAGE_DIR) 206 else 207 SRC_JDK_IMAGE_DIR := $(JDK_IMAGE_DIR) 208 SRC_JRE_IMAGE_DIR := $(JRE_IMAGE_DIR) 209 endif 210 SRC_JDK_BUNDLE_DIR := $(JDK_BUNDLE_DIR) 211 SRC_JRE_BUNDLE_DIR := $(JRE_BUNDLE_DIR) 212 213 # Bundle up the images 214 bundles: all bundles-only 215 bundles-only: start-make 216 @$(call TargetEnter) 217 $(MKDIR) -p $(BUILD_OUTPUT)/bundles 218 $(CD) $(SRC_JDK_IMAGE_DIR) && $(ZIP) -y -q -r $(BUILD_OUTPUT)/bundles/$(JDK_IMAGE_SUBDIR).zip . 219 $(CD) $(SRC_JRE_IMAGE_DIR) && $(ZIP) -y -q -r $(BUILD_OUTPUT)/bundles/$(JRE_IMAGE_SUBDIR).zip . 220 if [ -d $(BUILD_OUTPUT)/install/bundles ] ; then \ 221 $(CD) $(BUILD_OUTPUT)/install/bundles && $(ZIP) -y -q -r $(JPRT_ARCHIVE_INSTALL_BUNDLE) . ; \ 222 fi 223 @$(call TargetExit) 224 225 # Copy images to one unified location regardless of platform etc. 226 final-images: all final-images-only 227 final-images-only: start-make 228 @$(call TargetEnter) 229 $(RM) -r $(BUILD_OUTPUT)/final-images 230 $(MKDIR) -p $(BUILD_OUTPUT)/final-images/$(JDK_IMAGE_SUBDIR) 231 $(MKDIR) -p $(BUILD_OUTPUT)/final-images/$(JRE_IMAGE_SUBDIR) 232 $(CP) -R -P $(SRC_JDK_IMAGE_DIR)/* $(BUILD_OUTPUT)/final-images/$(JDK_IMAGE_SUBDIR)/ 233 $(CP) -R -P $(SRC_JRE_IMAGE_DIR)/* $(BUILD_OUTPUT)/final-images/$(JRE_IMAGE_SUBDIR)/ 234 ifeq ($(OPENJDK_TARGET_OS),macosx) 235 $(MKDIR) -p $(BUILD_OUTPUT)/final-images/$(JDK_BUNDLE_SUBDIR) 236 $(MKDIR) -p $(BUILD_OUTPUT)/final-images/$(JRE_BUNDLE_SUBDIR) 237 $(CP) -R -P $(SRC_JDK_BUNDLE_DIR)/* $(BUILD_OUTPUT)/final-images/$(JDK_BUNDLE_SUBDIR)/ 238 $(CP) -R -P $(SRC_JRE_BUNDLE_DIR)/* $(BUILD_OUTPUT)/final-images/$(JRE_BUNDLE_SUBDIR)/ 239 endif 240 @$(call TargetExit) 241 |