160 jprt_build_debug: BUILD_DIRNAME=*-debug 161 jprt_build_debug: jprt_build_generic 162 163 jprt_build_generic: BRIDGE_TARGETS+=jprt_bundle 164 jprt_build_generic: bridgeBuild 165 166 # This target must be called in the context of a SPEC file 167 jprt_bundle: $(JPRT_ARCHIVE_BUNDLE) 168 @$(call CheckIfMakeAtEnd) 169 170 # This target must be called in the context of a SPEC file 171 $(JPRT_ARCHIVE_BUNDLE): bundles 172 $(MKDIR) -p $(@D) 173 $(RM) $@ 174 $(CP) $(BUILD_OUTPUT)/bundles/j2sdk-image.zip $@ 175 176 # This target must be called in the context of a SPEC file 177 bundles: all 178 @$(call TargetEnter) 179 $(MKDIR) -p $(BUILD_OUTPUT)/bundles 180 $(CD) $(IMAGES_OUTPUTDIR)/j2sdk-image && $(ZIP) -q -r $(BUILD_OUTPUT)/bundles/j2sdk-image.zip . 181 $(CD) $(IMAGES_OUTPUTDIR)/j2re-image && $(ZIP) -q -r $(BUILD_OUTPUT)/bundles/j2re-image.zip . 182 @$(call TargetExit) 183 184 # Keep track of phony targets 185 PHONY_LIST += jprt_build_product jprt_build_fastdebug jprt_build_debug \ 186 jprt_build_generic bundles jprt_bundle 187 188 ########################################################################### 189 # Phony targets 190 .PHONY: $(PHONY_LIST) 191 192 # Force target 193 FRC: | 160 jprt_build_debug: BUILD_DIRNAME=*-debug 161 jprt_build_debug: jprt_build_generic 162 163 jprt_build_generic: BRIDGE_TARGETS+=jprt_bundle 164 jprt_build_generic: bridgeBuild 165 166 # This target must be called in the context of a SPEC file 167 jprt_bundle: $(JPRT_ARCHIVE_BUNDLE) 168 @$(call CheckIfMakeAtEnd) 169 170 # This target must be called in the context of a SPEC file 171 $(JPRT_ARCHIVE_BUNDLE): bundles 172 $(MKDIR) -p $(@D) 173 $(RM) $@ 174 $(CP) $(BUILD_OUTPUT)/bundles/j2sdk-image.zip $@ 175 176 # This target must be called in the context of a SPEC file 177 bundles: all 178 @$(call TargetEnter) 179 $(MKDIR) -p $(BUILD_OUTPUT)/bundles 180 ifeq ($(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU_BITS),solaris-64) 181 $(CD) $(JDK_OVERLAY_IMAGE_DIR) && $(ZIP) -q -r $(BUILD_OUTPUT)/bundles/j2sdk-image.zip . 182 $(CD) $(JRE_OVERLAY_IMAGE_DIR) && $(ZIP) -q -r $(BUILD_OUTPUT)/bundles/j2re-image.zip . 183 else 184 $(CD) $(JDK_IMAGE_DIR) && $(ZIP) -q -r $(BUILD_OUTPUT)/bundles/j2sdk-image.zip . 185 $(CD) $(JRE_IMAGE_DIR) && $(ZIP) -q -r $(BUILD_OUTPUT)/bundles/j2re-image.zip . 186 endif 187 @$(call TargetExit) 188 189 # Keep track of phony targets 190 PHONY_LIST += jprt_build_product jprt_build_fastdebug jprt_build_debug \ 191 jprt_build_generic bundles jprt_bundle 192 193 ########################################################################### 194 # Phony targets 195 .PHONY: $(PHONY_LIST) 196 197 # Force target 198 FRC: |