make/deploy-rules.gmk

Tue, 11 Jun 2013 13:08:02 +0200

author
erikj
date
Tue, 11 Jun 2013 13:08:02 +0200
changeset 733
198d25db45da
parent 731
27c51c6e31c1
permissions
-rw-r--r--

8008707: build-infra: Closed (deploy) can't be built using environment from SDK SetEnv.cmd
Reviewed-by: tbell

duke@2 1 #
katleman@731 2 # Copyright (c) 2002, 2013, 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
herrick@94 46 ifneq ($(JQS), off)
herrick@94 47 ifeq ($(ARCH_DATA_MODEL), 32)
herrick@94 48 ifeq ($(PLATFORM), windows)
herrick@94 49 DEPLOY_BUILD_TARGETS += jqs-all
herrick@94 50 endif
herrick@94 51 endif
herrick@94 52 endif
paulk@307 53
duke@2 54 ifndef DEV_ONLY
duke@2 55 DEPLOY_BUILD_TARGETS += images
duke@2 56 else
duke@2 57 DEPLOY_BUILD_TARGETS += $(IMAGES_TARGET)
duke@2 58 endif
duke@2 59
duke@2 60 DEPLOY_BUILD_ARGUMENTS = $(COMMON_BUILD_ARGUMENTS) \
duke@2 61 ALT_OUTPUTDIR=$(DEPLOY_OUTPUTDIR)
duke@2 62
duke@2 63 ifeq ($(BUILD_LANGTOOLS), true)
duke@2 64 DEPLOY_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST)
duke@2 65 endif
duke@2 66
duke@2 67 ifdef ALT_IMAGE_DIR
duke@2 68 DEPLOY_BUILD_ARGUMENTS += ALT_IMAGE_DIR=$(ALT_IMAGE_DIR)
duke@2 69 endif
duke@2 70
duke@2 71 ifdef ALT_BUNDLE_DATE
duke@2 72 DEPLOY_BUILD_ARGUMENTS += ALT_BUNDLE_DATE=$(ALT_BUNDLE_DATE)
duke@2 73 endif
duke@2 74
duke@2 75 ifdef ALT_JAVAWS_BOOTDIR
duke@2 76 DEPLOY_BUILD_ARGUMENTS += ALT_JAVAWS_BOOTDIR=$(ALT_JAVAWS_BOOTDIR)
duke@2 77 endif
duke@2 78
duke@2 79 ifdef CERT
duke@2 80 DEPLOY_BUILD_ARGUMENTS += CERT=$(CERT)
duke@2 81 endif
duke@2 82
duke@2 83 ifdef PKEY
duke@2 84 DEPLOY_BUILD_ARGUMENTS += PKEY=$(PKEY)
duke@2 85 endif
duke@2 86
duke@2 87 deploy-build:
herrick@94 88 ifeq ($(BUILD_DEPLOY), true)
ohrstrom@313 89 @$(call MakeStart,deploy,$(DEPLOY_BUILD_TARGETS))
duke@2 90 ($(CD) $(DEPLOY_TOPDIR)/make && \
ohair@128 91 $(MAKE) $(DEPLOY_BUILD_TARGETS) $(DEPLOY_BUILD_ARGUMENTS))
ohrstrom@313 92 @$(call MakeFinish,deploy,$(DEPLOY_BUILD_TARGETS))
duke@2 93 endif
duke@2 94
duke@2 95 deploy-clobber::
herrick@94 96 ifeq ($(BUILD_DEPLOY), true)
ohrstrom@313 97 @$(call MakeStart,deploy,clobber)
duke@2 98 ($(CD) $(DEPLOY_TOPDIR)/make && \
ohair@128 99 $(MAKE) clobber $(DEPLOY_BUILD_ARGUMENTS))
ohrstrom@313 100 @$(call MakeFinish,deploy,clobber)
duke@2 101 endif
duke@2 102
duke@2 103 deploy-sanity::
herrick@94 104 ifeq ($(BUILD_DEPLOY), true)
duke@2 105 ($(CD) $(DEPLOY_TOPDIR)/make && \
herrick@94 106 $(MAKE) sanity $(DEPLOY_BUILD_ARGUMENTS))
duke@2 107 endif
duke@2 108
duke@2 109 .PHONY: deploy deploy-build deploy-clobber deploy-sanity
duke@2 110

mercurial