Print this page


@@ -31,13 +31,11 @@
 # Only macosx has bundles defined.
 ifeq ($(OPENJDK_TARGET_OS), macosx)
 bundles: jre-bundle jdk-bundle
-JDK_BUNDLE_DIR := $(IMAGES_OUTPUTDIR)/j2sdk-bundle/jdk$(JDK_VERSION).jdk/Contents
-JRE_BUNDLE_DIR := $(IMAGES_OUTPUTDIR)/j2re-bundle/jre$(JDK_VERSION).jre/Contents
+# JDK_BUNDLE_DIR and JRE_BUNDLE_DIR are defined in SPEC.
 MACOSX_SRC := $(JDK_TOPDIR)/src/macosx
 # All these OPENJDK checks are needed since there is no coherency between
 # these values in open and closed. Should probably be fixed.

@@ -68,25 +66,25 @@
-JDK_FILE_LIST := $(shell $(FIND) $(IMAGES_OUTPUTDIR)/j2sdk-image ! -type d)
-JRE_FILE_LIST := $(shell $(FIND) $(IMAGES_OUTPUTDIR)/j2re-image ! -type d)
+JDK_FILE_LIST := $(shell $(FIND) $(JDK_IMAGE_DIR) ! -type d)
+JRE_FILE_LIST := $(shell $(FIND) $(JRE_IMAGE_DIR) ! -type d)
 # The old builds implementation of this did not preserve symlinks so
 # make sure they are followed and the contents copied instead.
 # To fix this, just replace copy with install-file macro.
-$(JDK_BUNDLE_DIR)/Home/%: $(IMAGES_OUTPUTDIR)/j2sdk-image/%
         $(ECHO) Copying $(patsubst $(OUTPUT_ROOT)/%,%,$@)
         $(MKDIR) -p $(@D)
         $(CP) -f -R -L '$<' '$@'
-$(JRE_BUNDLE_DIR)/Home/%: $(IMAGES_OUTPUTDIR)/j2re-image/%
         $(ECHO) Copying $(patsubst $(OUTPUT_ROOT)/%,%,$@)
         $(MKDIR) -p $(@D)
         $(CP) -f -R -L '$<' '$@'