author | weijun |
Fri, 09 Sep 2011 11:18:18 +0800 | |
changeset 10436 | 4288852bdda6 |
parent 8917 | a3bac6e9ee79 |
child 17667 | 2567cad1138a |
permissions | -rw-r--r-- |
0 | 1 |
# |
8917
a3bac6e9ee79
7033660: Update copyright year to 2011 on any files changed in 2011
ohair
parents:
8441
diff
changeset
|
2 |
# Copyright (c) 2002, 2011, Oracle and/or its affiliates. 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 |
|
5499 | 7 |
# published by the Free Software Foundation. Oracle designates this |
0 | 8 |
# particular file as subject to the "Classpath" exception as provided |
5499 | 9 |
# by Oracle in the LICENSE file that accompanied this code. |
0 | 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 |
# |
|
5499 | 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. |
|
0 | 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 |
||
6729
6972f2f93eba
6978977: Productivity: use ant for java part of build
igor
parents:
5499
diff
changeset
|
44 |
DEPLOY_BUILD_TARGETS = sanity deploy |
3032
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 |
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
|
50 |
$(ECHO) true ; \ |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
51 |
else \ |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
52 |
$(ECHO) false ; \ |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
53 |
fi ) |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
54 |
ifeq ($(EC_TMP), true) |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
55 |
DEPLOY_BUILD_TARGETS += extra-comp-all |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
56 |
endif |
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 |
|
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
60 |
ifneq ($(JQS), off) |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
61 |
ifeq ($(ARCH_DATA_MODEL), 32) |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
62 |
ifeq ($(PLATFORM), windows) |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
63 |
DEPLOY_BUILD_TARGETS += jqs-all |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
64 |
endif |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
65 |
endif |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
66 |
endif |
8259
21737f54a410
7019371: JDK7 is not building UPX. IFTW wrappers are not compressed.
paulk
parents:
7654
diff
changeset
|
67 |
|
21737f54a410
7019371: JDK7 is not building UPX. IFTW wrappers are not compressed.
paulk
parents:
7654
diff
changeset
|
68 |
ifeq ($(ARCH_DATA_MODEL), 32) |
21737f54a410
7019371: JDK7 is not building UPX. IFTW wrappers are not compressed.
paulk
parents:
7654
diff
changeset
|
69 |
ifeq ($(PLATFORM), windows) |
21737f54a410
7019371: JDK7 is not building UPX. IFTW wrappers are not compressed.
paulk
parents:
7654
diff
changeset
|
70 |
# Only set up to use UPX compression if it is available |
21737f54a410
7019371: JDK7 is not building UPX. IFTW wrappers are not compressed.
paulk
parents:
7654
diff
changeset
|
71 |
UP_TMP = $(shell if [ -d $(DEPLOY_TOPDIR)/make/upx ] ; then \ |
21737f54a410
7019371: JDK7 is not building UPX. IFTW wrappers are not compressed.
paulk
parents:
7654
diff
changeset
|
72 |
$(ECHO) true ; \ |
21737f54a410
7019371: JDK7 is not building UPX. IFTW wrappers are not compressed.
paulk
parents:
7654
diff
changeset
|
73 |
else \ |
21737f54a410
7019371: JDK7 is not building UPX. IFTW wrappers are not compressed.
paulk
parents:
7654
diff
changeset
|
74 |
$(ECHO) false ; \ |
21737f54a410
7019371: JDK7 is not building UPX. IFTW wrappers are not compressed.
paulk
parents:
7654
diff
changeset
|
75 |
fi ) |
21737f54a410
7019371: JDK7 is not building UPX. IFTW wrappers are not compressed.
paulk
parents:
7654
diff
changeset
|
76 |
ifeq ($(UP_TMP), true) |
21737f54a410
7019371: JDK7 is not building UPX. IFTW wrappers are not compressed.
paulk
parents:
7654
diff
changeset
|
77 |
DEPLOY_BUILD_TARGETS += cmd-comp-all |
3032
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
78 |
endif |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
79 |
endif |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
80 |
endif |
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
81 |
|
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
82 |
|
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
83 |
|
0 | 84 |
ifndef DEV_ONLY |
85 |
DEPLOY_BUILD_TARGETS += images |
|
86 |
else |
|
87 |
DEPLOY_BUILD_TARGETS += $(IMAGES_TARGET) |
|
88 |
endif |
|
89 |
||
90 |
DEPLOY_BUILD_ARGUMENTS = $(COMMON_BUILD_ARGUMENTS) \ |
|
91 |
ALT_OUTPUTDIR=$(DEPLOY_OUTPUTDIR) |
|
92 |
||
93 |
ifeq ($(BUILD_LANGTOOLS), true) |
|
94 |
DEPLOY_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST) |
|
95 |
endif |
|
96 |
||
97 |
ifdef ALT_IMAGE_DIR |
|
98 |
DEPLOY_BUILD_ARGUMENTS += ALT_IMAGE_DIR=$(ALT_IMAGE_DIR) |
|
99 |
endif |
|
100 |
||
101 |
ifdef ALT_BUNDLE_DATE |
|
102 |
DEPLOY_BUILD_ARGUMENTS += ALT_BUNDLE_DATE=$(ALT_BUNDLE_DATE) |
|
103 |
endif |
|
104 |
||
105 |
ifdef ALT_JAVAWS_BOOTDIR |
|
106 |
DEPLOY_BUILD_ARGUMENTS += ALT_JAVAWS_BOOTDIR=$(ALT_JAVAWS_BOOTDIR) |
|
107 |
endif |
|
108 |
||
109 |
ifdef CERT |
|
110 |
DEPLOY_BUILD_ARGUMENTS += CERT=$(CERT) |
|
111 |
endif |
|
112 |
||
113 |
ifdef PKEY |
|
114 |
DEPLOY_BUILD_ARGUMENTS += PKEY=$(PKEY) |
|
115 |
endif |
|
116 |
||
117 |
deploy-build: |
|
3032
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
118 |
ifeq ($(BUILD_DEPLOY), true) |
8441 | 119 |
@$(call MakeStart,deploy,$(DEPLOY_BUILD_TARGETS)) |
0 | 120 |
($(CD) $(DEPLOY_TOPDIR)/make && \ |
3789
2040d99c6f14
6855174: Improve log output when builds transition from one workspace to another
ohair
parents:
3259
diff
changeset
|
121 |
$(MAKE) $(DEPLOY_BUILD_TARGETS) $(DEPLOY_BUILD_ARGUMENTS)) |
8441 | 122 |
@$(call MakeFinish,deploy,$(DEPLOY_BUILD_TARGETS)) |
0 | 123 |
endif |
124 |
||
125 |
deploy-clobber:: |
|
3032
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
126 |
ifeq ($(BUILD_DEPLOY), true) |
8441 | 127 |
@$(call MakeStart,deploy,clobber) |
0 | 128 |
($(CD) $(DEPLOY_TOPDIR)/make && \ |
3789
2040d99c6f14
6855174: Improve log output when builds transition from one workspace to another
ohair
parents:
3259
diff
changeset
|
129 |
$(MAKE) clobber $(DEPLOY_BUILD_ARGUMENTS)) |
8441 | 130 |
@$(call MakeFinish,deploy,clobber) |
0 | 131 |
endif |
132 |
||
133 |
deploy-sanity:: |
|
3032
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
134 |
ifeq ($(BUILD_DEPLOY), true) |
0 | 135 |
($(CD) $(DEPLOY_TOPDIR)/make && \ |
3032
ffadbf4b17f6
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
0
diff
changeset
|
136 |
$(MAKE) sanity $(DEPLOY_BUILD_ARGUMENTS)) |
0 | 137 |
endif |
138 |
||
139 |
.PHONY: deploy deploy-build deploy-clobber deploy-sanity |
|
140 |