make/deploy-rules.gmk

Fri, 03 Sep 2010 20:19:45 -0700

author
igor
date
Fri, 03 Sep 2010 20:19:45 -0700
changeset 230
1fa39984ba8c
parent 182
412712f77af6
child 233
810a461889ab
permissions
-rw-r--r--

6978977: Productivity: use ant for java part of build
Reviewed-by: mduigou, herrick, ohair, ngthomas

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 ifneq ($(KERNEL), off)
herrick@94 50 EC_TMP = $(shell if [ -d $(DEPLOY_TOPDIR)/make/lzma ] ; then \
herrick@94 51 $(ECHO) true ; \
herrick@94 52 else \
herrick@94 53 $(ECHO) false ; \
herrick@94 54 fi )
herrick@94 55 ifeq ($(EC_TMP), true)
herrick@94 56 DEPLOY_BUILD_TARGETS += extra-comp-all
herrick@94 57 endif
herrick@94 58 endif
herrick@94 59 endif
herrick@94 60 endif
herrick@94 61
herrick@94 62 ifneq ($(JQS), off)
herrick@94 63 ifeq ($(ARCH_DATA_MODEL), 32)
herrick@94 64 ifeq ($(PLATFORM), windows)
herrick@94 65 DEPLOY_BUILD_TARGETS += jqs-all
herrick@94 66 endif
herrick@94 67 endif
herrick@94 68 endif
herrick@94 69
herrick@94 70 ifneq ($(KERNEL), off)
herrick@94 71 ifeq ($(ARCH_DATA_MODEL), 32)
herrick@94 72 ifeq ($(PLATFORM), windows)
herrick@94 73 # Only set up to use UPX compression if it is available
herrick@94 74 UP_TMP = $(shell if [ -d $(DEPLOY_TOPDIR)/make/upx ] ; then \
herrick@94 75 $(ECHO) true ; \
herrick@94 76 else \
herrick@94 77 $(ECHO) false ; \
herrick@94 78 fi )
herrick@94 79 ifeq ($(UP_TMP), true)
herrick@94 80 DEPLOY_BUILD_TARGETS += cmd-comp-all
herrick@94 81 endif
herrick@94 82 DEPLOY_BUILD_TARGETS += kernel-all
herrick@94 83 endif
herrick@94 84 endif
herrick@94 85 endif
herrick@94 86
herrick@94 87
herrick@94 88
duke@2 89 ifndef DEV_ONLY
duke@2 90 DEPLOY_BUILD_TARGETS += images
duke@2 91 else
duke@2 92 DEPLOY_BUILD_TARGETS += $(IMAGES_TARGET)
duke@2 93 endif
duke@2 94
duke@2 95 DEPLOY_BUILD_ARGUMENTS = $(COMMON_BUILD_ARGUMENTS) \
duke@2 96 ALT_OUTPUTDIR=$(DEPLOY_OUTPUTDIR)
duke@2 97
duke@2 98 ifeq ($(BUILD_LANGTOOLS), true)
duke@2 99 DEPLOY_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST)
duke@2 100 endif
duke@2 101
duke@2 102 ifdef ALT_IMAGE_DIR
duke@2 103 DEPLOY_BUILD_ARGUMENTS += ALT_IMAGE_DIR=$(ALT_IMAGE_DIR)
duke@2 104 endif
duke@2 105
duke@2 106 ifdef ALT_BUNDLE_DATE
duke@2 107 DEPLOY_BUILD_ARGUMENTS += ALT_BUNDLE_DATE=$(ALT_BUNDLE_DATE)
duke@2 108 endif
duke@2 109
duke@2 110 ifdef ALT_JAVAWS_BOOTDIR
duke@2 111 DEPLOY_BUILD_ARGUMENTS += ALT_JAVAWS_BOOTDIR=$(ALT_JAVAWS_BOOTDIR)
duke@2 112 endif
duke@2 113
duke@2 114 ifdef CERT
duke@2 115 DEPLOY_BUILD_ARGUMENTS += CERT=$(CERT)
duke@2 116 endif
duke@2 117
duke@2 118 ifdef PKEY
duke@2 119 DEPLOY_BUILD_ARGUMENTS += PKEY=$(PKEY)
duke@2 120 endif
duke@2 121
duke@2 122 deploy-build:
herrick@94 123 ifeq ($(BUILD_DEPLOY), true)
ohair@128 124 @$(call MakeStart, deploy, $(DEPLOY_BUILD_TARGETS))
duke@2 125 ($(CD) $(DEPLOY_TOPDIR)/make && \
ohair@128 126 $(MAKE) $(DEPLOY_BUILD_TARGETS) $(DEPLOY_BUILD_ARGUMENTS))
ohair@128 127 @$(call MakeFinish, deploy, $(DEPLOY_BUILD_TARGETS))
duke@2 128 endif
duke@2 129
duke@2 130 deploy-clobber::
herrick@94 131 ifeq ($(BUILD_DEPLOY), true)
ohair@128 132 @$(call MakeStart, deploy, clobber)
duke@2 133 ($(CD) $(DEPLOY_TOPDIR)/make && \
ohair@128 134 $(MAKE) clobber $(DEPLOY_BUILD_ARGUMENTS))
ohair@128 135 @$(call MakeFinish, deploy, clobber)
duke@2 136 endif
duke@2 137
duke@2 138 deploy-sanity::
herrick@94 139 ifeq ($(BUILD_DEPLOY), true)
duke@2 140 ($(CD) $(DEPLOY_TOPDIR)/make && \
herrick@94 141 $(MAKE) sanity $(DEPLOY_BUILD_ARGUMENTS))
duke@2 142 endif
duke@2 143
duke@2 144 .PHONY: deploy deploy-build deploy-clobber deploy-sanity
duke@2 145

mercurial