source: trunk/openjdk/make/deploy-rules.gmk@ 323

Last change on this file since 323 was 278, checked in by dmik, 14 years ago

trunk: Merged in openjdk6 b22 from branches/vendor/oracle.

File size: 2.9 KB
Line 
1#
2# Copyright (c) 2002, 2007, 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#
25
26################################################################
27# DEPLOY TARGETS
28################################################################
29
30ifeq ($(ARCH_DATA_MODEL), 32)
31deploy: deploy-build
32else
33deploy:
34endif
35
36DEPLOY = deploy
37
38# put the generated bundles in their own place in OUTPUTDIR
39DEPLOY_OUTPUTDIR = $(ABS_OUTPUTDIR)
40
41# NO_IMAGES may be set in conjunction with DEV_ONLY
42ifdef NO_IMAGES
43 IMAGES_TARGET =
44else
45 IMAGES_TARGET = images
46endif
47
48DEPLOY_BUILD_TARGETS = sanity javaws-all plugin-all
49ifndef DEV_ONLY
50 DEPLOY_BUILD_TARGETS += images
51else
52 DEPLOY_BUILD_TARGETS += $(IMAGES_TARGET)
53endif
54
55DEPLOY_BUILD_ARGUMENTS = $(COMMON_BUILD_ARGUMENTS) \
56 ALT_OUTPUTDIR=$(DEPLOY_OUTPUTDIR)
57
58ifeq ($(BUILD_LANGTOOLS), true)
59 DEPLOY_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST)
60endif
61
62ifdef ALT_IMAGE_DIR
63 DEPLOY_BUILD_ARGUMENTS += ALT_IMAGE_DIR=$(ALT_IMAGE_DIR)
64endif
65
66ifdef ALT_BUNDLE_DATE
67 DEPLOY_BUILD_ARGUMENTS += ALT_BUNDLE_DATE=$(ALT_BUNDLE_DATE)
68endif
69
70ifdef ALT_JAVAWS_BOOTDIR
71 DEPLOY_BUILD_ARGUMENTS += ALT_JAVAWS_BOOTDIR=$(ALT_JAVAWS_BOOTDIR)
72endif
73
74ifdef CERT
75 DEPLOY_BUILD_ARGUMENTS += CERT=$(CERT)
76endif
77
78ifdef PKEY
79 DEPLOY_BUILD_ARGUMENTS += PKEY=$(PKEY)
80endif
81
82deploy-build:
83ifeq ($(ARCH_DATA_MODEL), 32)
84 ifeq ($(BUILD_DEPLOY), true)
85 ($(CD) $(DEPLOY_TOPDIR)/make && \
86 $(MAKE) $(DEPLOY_BUILD_TARGETS) $(DEPLOY_BUILD_ARGUMENTS))
87 endif
88endif
89
90deploy-clobber::
91ifeq ($(ARCH_DATA_MODEL), 32)
92 ifeq ($(BUILD_DEPLOY), true)
93 ($(CD) $(DEPLOY_TOPDIR)/make && \
94 $(MAKE) clobber $(DEPLOY_BUILD_ARGUMENTS))
95 endif
96endif
97
98deploy-sanity::
99ifeq ($(ARCH_DATA_MODEL), 32)
100 ifeq ($(BUILD_DEPLOY), true)
101 ($(CD) $(DEPLOY_TOPDIR)/make && \
102 $(MAKE) sanity $(DEPLOY_BUILD_ARGUMENTS))
103 endif
104endif
105
106.PHONY: deploy deploy-build deploy-clobber deploy-sanity
107
Note: See TracBrowser for help on using the repository browser.