make/deploy-rules.gmk

Wed, 17 Nov 2010 11:55:01 -0500

author
paulk
date
Wed, 17 Nov 2010 11:55:01 -0500
changeset 251
b011f9ab61f8
parent 233
810a461889ab
child 280
024a6755895b
permissions
-rw-r--r--

6997515: KERNEL=0 in JDK7 build causes loss of lzma compression.
Reviewed-by: billyh, jqzuo

duke@2 1 #
ohair@182 2 # Copyright (c) 2002, 2009, Oracle and/or its affiliates. All rights reserved.
duke@2 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@2 4 #
duke@2 5 # This code is free software; you can redistribute it and/or modify it
duke@2 6 # under the terms of the GNU General Public License version 2 only, as
ohair@182 7 # published by the Free Software Foundation. Oracle designates this
duke@2 8 # particular file as subject to the "Classpath" exception as provided
ohair@182 9 # by Oracle in the LICENSE file that accompanied this code.
duke@2 10 #
duke@2 11 # This code is distributed in the hope that it will be useful, but WITHOUT
duke@2 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@2 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@2 14 # version 2 for more details (a copy is included in the LICENSE file that
duke@2 15 # accompanied this code).
duke@2 16 #
duke@2 17 # You should have received a copy of the GNU General Public License version
duke@2 18 # 2 along with this work; if not, write to the Free Software Foundation,
duke@2 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@2 20 #
ohair@182 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@182 22 # or visit www.oracle.com if you need additional information or have any
ohair@182 23 # questions.
duke@2 24 #
duke@2 25
duke@2 26 ################################################################
duke@2 27 # DEPLOY TARGETS
duke@2 28 ################################################################
duke@2 29
duke@2 30 deploy: deploy-build
herrick@94 31
herrick@94 32 DEPLOY = deploy
herrick@94 33
duke@2 34 # put the generated bundles in their own place in OUTPUTDIR
duke@2 35 DEPLOY_OUTPUTDIR = $(ABS_OUTPUTDIR)
duke@2 36
duke@2 37 # NO_IMAGES may be set in conjunction with DEV_ONLY
duke@2 38 ifdef NO_IMAGES
duke@2 39 IMAGES_TARGET =
duke@2 40 else
duke@2 41 IMAGES_TARGET = images
duke@2 42 endif
duke@2 43
igor@230 44 DEPLOY_BUILD_TARGETS = sanity deploy
herrick@94 45 # Only build 7-Zip LZMA file compression if it is available
herrick@94 46 # Enable 7-Zip LZMA file (de)compression for Java Kernel if it is available
herrick@94 47 ifeq ($(ARCH_DATA_MODEL), 32)
herrick@94 48 ifeq ($(PLATFORM), windows)
herrick@94 49 EC_TMP = $(shell if [ -d $(DEPLOY_TOPDIR)/make/lzma ] ; then \
herrick@94 50 $(ECHO) true ; \
herrick@94 51 else \
herrick@94 52 $(ECHO) false ; \
herrick@94 53 fi )
herrick@94 54 ifeq ($(EC_TMP), true)
herrick@94 55 DEPLOY_BUILD_TARGETS += extra-comp-all
herrick@94 56 endif
herrick@94 57 endif
herrick@94 58 endif
herrick@94 59
herrick@94 60 ifneq ($(JQS), off)
herrick@94 61 ifeq ($(ARCH_DATA_MODEL), 32)
herrick@94 62 ifeq ($(PLATFORM), windows)
herrick@94 63 DEPLOY_BUILD_TARGETS += jqs-all
herrick@94 64 endif
herrick@94 65 endif
herrick@94 66 endif
herrick@94 67
herrick@94 68 ifneq ($(KERNEL), off)
herrick@94 69 ifeq ($(ARCH_DATA_MODEL), 32)
herrick@94 70 ifeq ($(PLATFORM), windows)
herrick@94 71 # Only set up to use UPX compression if it is available
herrick@94 72 UP_TMP = $(shell if [ -d $(DEPLOY_TOPDIR)/make/upx ] ; then \
herrick@94 73 $(ECHO) true ; \
herrick@94 74 else \
herrick@94 75 $(ECHO) false ; \
herrick@94 76 fi )
herrick@94 77 ifeq ($(UP_TMP), true)
herrick@94 78 DEPLOY_BUILD_TARGETS += cmd-comp-all
herrick@94 79 endif
herrick@94 80 endif
herrick@94 81 endif
herrick@94 82 endif
herrick@94 83
herrick@94 84
herrick@94 85
duke@2 86 ifndef DEV_ONLY
duke@2 87 DEPLOY_BUILD_TARGETS += images
duke@2 88 else
duke@2 89 DEPLOY_BUILD_TARGETS += $(IMAGES_TARGET)
duke@2 90 endif
duke@2 91
duke@2 92 DEPLOY_BUILD_ARGUMENTS = $(COMMON_BUILD_ARGUMENTS) \
duke@2 93 ALT_OUTPUTDIR=$(DEPLOY_OUTPUTDIR)
duke@2 94
duke@2 95 ifeq ($(BUILD_LANGTOOLS), true)
duke@2 96 DEPLOY_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST)
duke@2 97 endif
duke@2 98
duke@2 99 ifdef ALT_IMAGE_DIR
duke@2 100 DEPLOY_BUILD_ARGUMENTS += ALT_IMAGE_DIR=$(ALT_IMAGE_DIR)
duke@2 101 endif
duke@2 102
duke@2 103 ifdef ALT_BUNDLE_DATE
duke@2 104 DEPLOY_BUILD_ARGUMENTS += ALT_BUNDLE_DATE=$(ALT_BUNDLE_DATE)
duke@2 105 endif
duke@2 106
duke@2 107 ifdef ALT_JAVAWS_BOOTDIR
duke@2 108 DEPLOY_BUILD_ARGUMENTS += ALT_JAVAWS_BOOTDIR=$(ALT_JAVAWS_BOOTDIR)
duke@2 109 endif
duke@2 110
duke@2 111 ifdef CERT
duke@2 112 DEPLOY_BUILD_ARGUMENTS += CERT=$(CERT)
duke@2 113 endif
duke@2 114
duke@2 115 ifdef PKEY
duke@2 116 DEPLOY_BUILD_ARGUMENTS += PKEY=$(PKEY)
duke@2 117 endif
duke@2 118
duke@2 119 deploy-build:
herrick@94 120 ifeq ($(BUILD_DEPLOY), true)
ohair@128 121 @$(call MakeStart, deploy, $(DEPLOY_BUILD_TARGETS))
duke@2 122 ($(CD) $(DEPLOY_TOPDIR)/make && \
ohair@128 123 $(MAKE) $(DEPLOY_BUILD_TARGETS) $(DEPLOY_BUILD_ARGUMENTS))
ohair@128 124 @$(call MakeFinish, deploy, $(DEPLOY_BUILD_TARGETS))
duke@2 125 endif
duke@2 126
duke@2 127 deploy-clobber::
herrick@94 128 ifeq ($(BUILD_DEPLOY), true)
ohair@128 129 @$(call MakeStart, deploy, clobber)
duke@2 130 ($(CD) $(DEPLOY_TOPDIR)/make && \
ohair@128 131 $(MAKE) clobber $(DEPLOY_BUILD_ARGUMENTS))
ohair@128 132 @$(call MakeFinish, deploy, clobber)
duke@2 133 endif
duke@2 134
duke@2 135 deploy-sanity::
herrick@94 136 ifeq ($(BUILD_DEPLOY), true)
duke@2 137 ($(CD) $(DEPLOY_TOPDIR)/make && \
herrick@94 138 $(MAKE) sanity $(DEPLOY_BUILD_ARGUMENTS))
duke@2 139 endif
duke@2 140
duke@2 141 .PHONY: deploy deploy-build deploy-clobber deploy-sanity
duke@2 142

mercurial