common/makefiles/Jprt.gmk

changeset 578
6e822b534678
parent 567
c874a8a27933
child 587
5a5e97f9ac0a
equal deleted inserted replaced
577:3540aa40c868 578:6e822b534678
24 # 24 #
25 25
26 # This file is included by the root NewerMakefile and contains targets 26 # This file is included by the root NewerMakefile and contains targets
27 # and utilities needed by JPRT. 27 # and utilities needed by JPRT.
28 28
29 # Utilities used in this Makefile 29 # Utilities used in this Makefile. Most of this makefile executes without
30 # the context of a spec file from configure.
30 CAT=cat 31 CAT=cat
31 CMP=cmp 32 CMP=cmp
32 CP=cp 33 CP=cp
33 ECHO=echo 34 ECHO=echo
34 MKDIR=mkdir 35 MKDIR=mkdir
175 176
176 # This target must be called in the context of a SPEC file 177 # This target must be called in the context of a SPEC file
177 bundles: all 178 bundles: all
178 @$(call TargetEnter) 179 @$(call TargetEnter)
179 $(MKDIR) -p $(BUILD_OUTPUT)/bundles 180 $(MKDIR) -p $(BUILD_OUTPUT)/bundles
180 $(CD) $(IMAGES_OUTPUTDIR)/j2sdk-image && $(ZIP) -q -r $(BUILD_OUTPUT)/bundles/j2sdk-image.zip . 181 ifeq ($(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU_BITS),solaris-64)
181 $(CD) $(IMAGES_OUTPUTDIR)/j2re-image && $(ZIP) -q -r $(BUILD_OUTPUT)/bundles/j2re-image.zip . 182 $(CD) $(JDK_OVERLAY_IMAGE_DIR) && $(ZIP) -q -r $(BUILD_OUTPUT)/bundles/j2sdk-image.zip .
183 $(CD) $(JRE_OVERLAY_IMAGE_DIR) && $(ZIP) -q -r $(BUILD_OUTPUT)/bundles/j2re-image.zip .
184 else
185 $(CD) $(JDK_IMAGE_DIR) && $(ZIP) -q -r $(BUILD_OUTPUT)/bundles/j2sdk-image.zip .
186 $(CD) $(JRE_IMAGE_DIR) && $(ZIP) -q -r $(BUILD_OUTPUT)/bundles/j2re-image.zip .
187 endif
182 @$(call TargetExit) 188 @$(call TargetExit)
183 189
184 # Keep track of phony targets 190 # Keep track of phony targets
185 PHONY_LIST += jprt_build_product jprt_build_fastdebug jprt_build_debug \ 191 PHONY_LIST += jprt_build_product jprt_build_fastdebug jprt_build_debug \
186 jprt_build_generic bundles jprt_bundle 192 jprt_build_generic bundles jprt_bundle

mercurial