Wed, 02 Oct 2013 13:26:25 -0700
Added tag jdk8-b110 for changeset 4faa09c7fe55
1 #
2 # Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation. Oracle designates this
8 # particular file as subject to the "Classpath" exception as provided
9 # by Oracle in the LICENSE file that accompanied this code.
10 #
11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 # or visit www.oracle.com if you need additional information or have any
23 # questions.
24 #
26 ################################################################
27 # DEPLOY TARGETS
28 ################################################################
30 deploy: deploy-build
32 DEPLOY = deploy
34 # put the generated bundles in their own place in OUTPUTDIR
35 DEPLOY_OUTPUTDIR = $(ABS_OUTPUTDIR)
37 # NO_IMAGES may be set in conjunction with DEV_ONLY
38 ifdef NO_IMAGES
39 IMAGES_TARGET =
40 else
41 IMAGES_TARGET = images
42 endif
44 DEPLOY_BUILD_TARGETS = sanity deploy
46 ifneq ($(JQS), off)
47 ifeq ($(ARCH_DATA_MODEL), 32)
48 ifeq ($(PLATFORM), windows)
49 DEPLOY_BUILD_TARGETS += jqs-all
50 endif
51 endif
52 endif
54 ifndef DEV_ONLY
55 DEPLOY_BUILD_TARGETS += images
56 else
57 DEPLOY_BUILD_TARGETS += $(IMAGES_TARGET)
58 endif
60 DEPLOY_BUILD_ARGUMENTS = $(COMMON_BUILD_ARGUMENTS) \
61 ALT_OUTPUTDIR=$(DEPLOY_OUTPUTDIR)
63 ifeq ($(BUILD_LANGTOOLS), true)
64 DEPLOY_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST)
65 endif
67 ifdef ALT_IMAGE_DIR
68 DEPLOY_BUILD_ARGUMENTS += ALT_IMAGE_DIR=$(ALT_IMAGE_DIR)
69 endif
71 ifdef ALT_BUNDLE_DATE
72 DEPLOY_BUILD_ARGUMENTS += ALT_BUNDLE_DATE=$(ALT_BUNDLE_DATE)
73 endif
75 ifdef ALT_JAVAWS_BOOTDIR
76 DEPLOY_BUILD_ARGUMENTS += ALT_JAVAWS_BOOTDIR=$(ALT_JAVAWS_BOOTDIR)
77 endif
79 ifdef CERT
80 DEPLOY_BUILD_ARGUMENTS += CERT=$(CERT)
81 endif
83 ifdef PKEY
84 DEPLOY_BUILD_ARGUMENTS += PKEY=$(PKEY)
85 endif
87 deploy-build:
88 ifeq ($(BUILD_DEPLOY), true)
89 @$(call MakeStart,deploy,$(DEPLOY_BUILD_TARGETS))
90 ($(CD) $(DEPLOY_TOPDIR)/make && \
91 $(MAKE) $(DEPLOY_BUILD_TARGETS) $(DEPLOY_BUILD_ARGUMENTS))
92 @$(call MakeFinish,deploy,$(DEPLOY_BUILD_TARGETS))
93 endif
95 deploy-clobber::
96 ifeq ($(BUILD_DEPLOY), true)
97 @$(call MakeStart,deploy,clobber)
98 ($(CD) $(DEPLOY_TOPDIR)/make && \
99 $(MAKE) clobber $(DEPLOY_BUILD_ARGUMENTS))
100 @$(call MakeFinish,deploy,clobber)
101 endif
103 deploy-sanity::
104 ifeq ($(BUILD_DEPLOY), true)
105 ($(CD) $(DEPLOY_TOPDIR)/make && \
106 $(MAKE) sanity $(DEPLOY_BUILD_ARGUMENTS))
107 endif
109 .PHONY: deploy deploy-build deploy-clobber deploy-sanity