make/Jprt.gmk

Tue, 06 May 2014 13:57:30 -0700

author
mduigou
date
Tue, 06 May 2014 13:57:30 -0700
changeset 1141
183f87e4b8a7
parent 1140
6d0ebf545f49
child 1155
c7b4d867b82d
permissions
-rw-r--r--

8030681: add "serve" command and --quiet and --verbose options to hgforest
Reviewed-by: ihse

erikj@559 1 #
ksrini@806 2 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
erikj@559 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
erikj@559 4 #
erikj@559 5 # This code is free software; you can redistribute it and/or modify it
erikj@559 6 # under the terms of the GNU General Public License version 2 only, as
erikj@559 7 # published by the Free Software Foundation. Oracle designates this
erikj@559 8 # particular file as subject to the "Classpath" exception as provided
erikj@559 9 # by Oracle in the LICENSE file that accompanied this code.
erikj@559 10 #
erikj@559 11 # This code is distributed in the hope that it will be useful, but WITHOUT
erikj@559 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
erikj@559 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
erikj@559 14 # version 2 for more details (a copy is included in the LICENSE file that
erikj@559 15 # accompanied this code).
erikj@559 16 #
erikj@559 17 # You should have received a copy of the GNU General Public License version
erikj@559 18 # 2 along with this work; if not, write to the Free Software Foundation,
erikj@559 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
erikj@559 20 #
erikj@559 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
erikj@559 22 # or visit www.oracle.com if you need additional information or have any
erikj@559 23 # questions.
erikj@559 24 #
erikj@559 25
mikael@1140 26 # This file is contains targets utilities needed by JPRT.
erikj@559 27
erikj@559 28 ifndef JPRT_ARCHIVE_BUNDLE
erikj@559 29 JPRT_ARCHIVE_BUNDLE=/tmp/jprt_bundles/j2sdk-image.zip
erikj@559 30 endif
tbell@589 31 ifndef JPRT_ARCHIVE_INSTALL_BUNDLE
ihse@839 32 JPRT_ARCHIVE_INSTALL_BUNDLE=/tmp/jprt_bundles/product-install.zip
tbell@589 33 endif
erikj@559 34
erikj@559 35 # This target must be called in the context of a SPEC file
erikj@559 36 jprt_bundle: $(JPRT_ARCHIVE_BUNDLE)
erikj@559 37 @$(call CheckIfMakeAtEnd)
erikj@559 38
erikj@559 39 # This target must be called in the context of a SPEC file
erikj@559 40 $(JPRT_ARCHIVE_BUNDLE): bundles
erikj@559 41 $(MKDIR) -p $(@D)
erikj@559 42 $(RM) $@
erikj@610 43 $(CP) $(BUILD_OUTPUT)/bundles/$(JDK_IMAGE_SUBDIR).zip $@
erikj@559 44
ksrini@806 45 SRC_JDK_IMAGE_DIR := $(JDK_IMAGE_DIR)
ksrini@806 46 SRC_JRE_IMAGE_DIR := $(JRE_IMAGE_DIR)
erikj@610 47 SRC_JDK_BUNDLE_DIR := $(JDK_BUNDLE_DIR)
erikj@610 48 SRC_JRE_BUNDLE_DIR := $(JRE_BUNDLE_DIR)
erikj@610 49
erikj@610 50 # Bundle up the images
erikj@610 51 bundles: all bundles-only
erikj@610 52 bundles-only: start-make
erikj@559 53 @$(call TargetEnter)
erikj@559 54 $(MKDIR) -p $(BUILD_OUTPUT)/bundles
ksrini@806 55 $(CD) $(SRC_JDK_IMAGE_DIR) && $(ZIP) -y -q -r $(BUILD_OUTPUT)/bundles/$(JDK_IMAGE_SUBDIR).zip .
ksrini@806 56 $(CD) $(SRC_JRE_IMAGE_DIR) && $(ZIP) -y -q -r $(BUILD_OUTPUT)/bundles/$(JRE_IMAGE_SUBDIR).zip .
ihse@839 57 if [ -d $(BUILD_OUTPUT)/install/bundles ] ; then \
ihse@839 58 $(CD) $(BUILD_OUTPUT)/install/bundles && $(ZIP) -y -q -r $(JPRT_ARCHIVE_INSTALL_BUNDLE) . ; \
ihse@839 59 fi
erikj@610 60 @$(call TargetExit)
erikj@610 61
erikj@610 62 # Copy images to one unified location regardless of platform etc.
erikj@610 63 final-images: all final-images-only
erikj@610 64 final-images-only: start-make
erikj@610 65 @$(call TargetEnter)
erikj@610 66 $(RM) -r $(BUILD_OUTPUT)/final-images
erikj@610 67 $(MKDIR) -p $(BUILD_OUTPUT)/final-images/$(JDK_IMAGE_SUBDIR)
erikj@610 68 $(MKDIR) -p $(BUILD_OUTPUT)/final-images/$(JRE_IMAGE_SUBDIR)
erikj@610 69 $(CP) -R -P $(SRC_JDK_IMAGE_DIR)/* $(BUILD_OUTPUT)/final-images/$(JDK_IMAGE_SUBDIR)/
erikj@610 70 $(CP) -R -P $(SRC_JRE_IMAGE_DIR)/* $(BUILD_OUTPUT)/final-images/$(JRE_IMAGE_SUBDIR)/
ihse@839 71 ifeq ($(OPENJDK_TARGET_OS),macosx)
ihse@839 72 $(MKDIR) -p $(BUILD_OUTPUT)/final-images/$(JDK_BUNDLE_SUBDIR)
ihse@839 73 $(MKDIR) -p $(BUILD_OUTPUT)/final-images/$(JRE_BUNDLE_SUBDIR)
ihse@839 74 $(CP) -R -P $(SRC_JDK_BUNDLE_DIR)/* $(BUILD_OUTPUT)/final-images/$(JDK_BUNDLE_SUBDIR)/
ihse@839 75 $(CP) -R -P $(SRC_JRE_BUNDLE_DIR)/* $(BUILD_OUTPUT)/final-images/$(JRE_BUNDLE_SUBDIR)/
ihse@839 76 endif
erikj@559 77 @$(call TargetExit)
erikj@559 78
erikj@610 79
erikj@559 80 ###########################################################################
erikj@559 81 # Phony targets
mikael@1140 82 .PHONY: jprt_bundle bundles bundles-only final-images final-images-only

mercurial