author | yhuang |
Thu, 21 Jan 2010 22:05:31 -0800 | |
changeset 5303 | 0c91825f1cfa |
parent 3789 | 2040d99c6f14 |
child 5499 | eb0b3e373167 |
permissions | -rw-r--r-- |
0 | 1 |
# |
3259 | 2 |
# Copyright 2002-2009 Sun Microsystems, Inc. All Rights Reserved. |
0 | 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. Sun designates this |
|
8 |
# particular file as subject to the "Classpath" exception as provided |
|
9 |
# by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
|
22 |
# CA 95054 USA or visit www.sun.com if you need additional information or |
|
23 |
# have any questions. |
|
24 |
# |
|
25 |
||
26 |
################################################################ |
|
27 |
# DEPLOY TARGETS |
|
28 |
################################################################ |
|
29 |
||
30 |
deploy: deploy-build |
|
3032
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
31 |
|
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
32 |
DEPLOY = deploy |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
33 |
|
0 | 34 |
# put the generated bundles in their own place in OUTPUTDIR |
35 |
DEPLOY_OUTPUTDIR = $(ABS_OUTPUTDIR) |
|
36 |
||
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 |
|
43 |
||
3032
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
44 |
DEPLOY_BUILD_TARGETS = sanity javaws-all plugin-all |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
45 |
# Only build 7-Zip LZMA file compression if it is available |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
46 |
# Enable 7-Zip LZMA file (de)compression for Java Kernel if it is available |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
47 |
ifeq ($(ARCH_DATA_MODEL), 32) |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
48 |
ifeq ($(PLATFORM), windows) |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
49 |
ifneq ($(KERNEL), off) |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
50 |
EC_TMP = $(shell if [ -d $(DEPLOY_TOPDIR)/make/lzma ] ; then \ |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
51 |
$(ECHO) true ; \ |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
52 |
else \ |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
53 |
$(ECHO) false ; \ |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
54 |
fi ) |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
55 |
ifeq ($(EC_TMP), true) |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
56 |
DEPLOY_BUILD_TARGETS += extra-comp-all |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
57 |
endif |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
58 |
endif |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
59 |
endif |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
60 |
endif |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
61 |
|
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
62 |
ifneq ($(JQS), off) |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
63 |
ifeq ($(ARCH_DATA_MODEL), 32) |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
64 |
ifeq ($(PLATFORM), windows) |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
65 |
DEPLOY_BUILD_TARGETS += jqs-all |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
66 |
endif |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
67 |
endif |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
68 |
endif |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
69 |
|
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
70 |
ifneq ($(KERNEL), off) |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
71 |
ifeq ($(ARCH_DATA_MODEL), 32) |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
72 |
ifeq ($(PLATFORM), windows) |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
73 |
# Only set up to use UPX compression if it is available |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
74 |
UP_TMP = $(shell if [ -d $(DEPLOY_TOPDIR)/make/upx ] ; then \ |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
75 |
$(ECHO) true ; \ |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
76 |
else \ |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
77 |
$(ECHO) false ; \ |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
78 |
fi ) |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
79 |
ifeq ($(UP_TMP), true) |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
80 |
DEPLOY_BUILD_TARGETS += cmd-comp-all |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
81 |
endif |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
82 |
DEPLOY_BUILD_TARGETS += kernel-all |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
83 |
endif |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
84 |
endif |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
85 |
endif |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
86 |
|
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
87 |
|
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
88 |
|
0 | 89 |
ifndef DEV_ONLY |
90 |
DEPLOY_BUILD_TARGETS += images |
|
91 |
else |
|
92 |
DEPLOY_BUILD_TARGETS += $(IMAGES_TARGET) |
|
93 |
endif |
|
94 |
||
95 |
DEPLOY_BUILD_ARGUMENTS = $(COMMON_BUILD_ARGUMENTS) \ |
|
96 |
ALT_OUTPUTDIR=$(DEPLOY_OUTPUTDIR) |
|
97 |
||
98 |
ifeq ($(BUILD_LANGTOOLS), true) |
|
99 |
DEPLOY_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST) |
|
100 |
endif |
|
101 |
||
102 |
ifdef ALT_IMAGE_DIR |
|
103 |
DEPLOY_BUILD_ARGUMENTS += ALT_IMAGE_DIR=$(ALT_IMAGE_DIR) |
|
104 |
endif |
|
105 |
||
106 |
ifdef ALT_BUNDLE_DATE |
|
107 |
DEPLOY_BUILD_ARGUMENTS += ALT_BUNDLE_DATE=$(ALT_BUNDLE_DATE) |
|
108 |
endif |
|
109 |
||
110 |
ifdef ALT_JAVAWS_BOOTDIR |
|
111 |
DEPLOY_BUILD_ARGUMENTS += ALT_JAVAWS_BOOTDIR=$(ALT_JAVAWS_BOOTDIR) |
|
112 |
endif |
|
113 |
||
114 |
ifdef CERT |
|
115 |
DEPLOY_BUILD_ARGUMENTS += CERT=$(CERT) |
|
116 |
endif |
|
117 |
||
118 |
ifdef PKEY |
|
119 |
DEPLOY_BUILD_ARGUMENTS += PKEY=$(PKEY) |
|
120 |
endif |
|
121 |
||
122 |
deploy-build: |
|
3032
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
123 |
ifeq ($(BUILD_DEPLOY), true) |
3789
2040d99c6f14
6855174: Improve log output when builds transition from one workspace to another
ohair
parents:
3259
diff
changeset
|
124 |
@$(call MakeStart, deploy, $(DEPLOY_BUILD_TARGETS)) |
0 | 125 |
($(CD) $(DEPLOY_TOPDIR)/make && \ |
3789
2040d99c6f14
6855174: Improve log output when builds transition from one workspace to another
ohair
parents:
3259
diff
changeset
|
126 |
$(MAKE) $(DEPLOY_BUILD_TARGETS) $(DEPLOY_BUILD_ARGUMENTS)) |
2040d99c6f14
6855174: Improve log output when builds transition from one workspace to another
ohair
parents:
3259
diff
changeset
|
127 |
@$(call MakeFinish, deploy, $(DEPLOY_BUILD_TARGETS)) |
0 | 128 |
endif |
129 |
||
130 |
deploy-clobber:: |
|
3032
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
131 |
ifeq ($(BUILD_DEPLOY), true) |
3789
2040d99c6f14
6855174: Improve log output when builds transition from one workspace to another
ohair
parents:
3259
diff
changeset
|
132 |
@$(call MakeStart, deploy, clobber) |
0 | 133 |
($(CD) $(DEPLOY_TOPDIR)/make && \ |
3789
2040d99c6f14
6855174: Improve log output when builds transition from one workspace to another
ohair
parents:
3259
diff
changeset
|
134 |
$(MAKE) clobber $(DEPLOY_BUILD_ARGUMENTS)) |
2040d99c6f14
6855174: Improve log output when builds transition from one workspace to another
ohair
parents:
3259
diff
changeset
|
135 |
@$(call MakeFinish, deploy, clobber) |
0 | 136 |
endif |
137 |
||
138 |
deploy-sanity:: |
|
3032
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
139 |
ifeq ($(BUILD_DEPLOY), true) |
0 | 140 |
($(CD) $(DEPLOY_TOPDIR)/make && \ |
3032
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
141 |
$(MAKE) sanity $(DEPLOY_BUILD_ARGUMENTS)) |
0 | 142 |
endif |
143 |
||
144 |
.PHONY: deploy deploy-build deploy-clobber deploy-sanity |
|
145 |