author | weijun |
Thu, 07 Jun 2012 22:33:34 +0800 | |
changeset 12881 | f91298d1637d |
parent 8917 | a3bac6e9ee79 |
child 15076 | ad77fc94a370 |
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 |
# INSTALL TARGETS |
|
28 |
################################################################ |
|
29 |
||
30 |
install: install-build |
|
31 |
||
32 |
# The generated java files are generated as a set, so instead of |
|
33 |
# setting the INSTALL variable to that list of files, set it to |
|
34 |
# the .PHONY target that generates the set of files. |
|
35 |
INSTALL = install |
|
36 |
||
37 |
# put the generated patch in their own place in OUTPUTDIR |
|
38 |
INSTALL_OUTPUTDIR = $(ABS_OUTPUTDIR) |
|
39 |
||
40 |
INSTALL_DEBUG_NAME=fastdebug |
|
41 |
||
42 |
INSTALL_BUILD_TARGETS = sanity all |
|
43 |
INSTALL_BUILD_ARGUMENTS = $(COMMON_BUILD_ARGUMENTS) \ |
|
44 |
ALT_OUTPUTDIR=$(INSTALL_OUTPUTDIR) \ |
|
45 |
ALT_RTPATCH_DIR=$(ALT_RTPATCH_DIR) \ |
|
46 |
ALT_BASE_IMAGE_ZIP=$(ALT_BASE_IMAGE_ZIP) \ |
|
47 |
ALT_BASE_IMAGE_DIR=$(ALT_BASE_IMAGE_DIR) \ |
|
48 |
ALT_NEW_IMAGE_DIR=$(ALT_NEW_IMAGE_DIR) \ |
|
49 |
ALT_BUNDLE_DATE=$(BUNDLE_DATE) \ |
|
50 |
INSTALL_DEBUG_NAME=$(INSTALL_DEBUG_NAME) |
|
51 |
||
52 |
ifeq ($(BUILD_LANGTOOLS), true) |
|
53 |
INSTALL_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST) |
|
54 |
endif |
|
55 |
||
56 |
install: install-build |
|
57 |
||
58 |
install-build: |
|
59 |
ifeq ($(BUILD_INSTALL), true) |
|
8441 | 60 |
@$(call MakeStart,install,$(INSTALL_BUILD_TARGETS)) |
0 | 61 |
($(CD) $(INSTALL_TOPDIR)/make && \ |
62 |
$(MAKE) $(INSTALL_BUILD_TARGETS) $(INSTALL_BUILD_ARGUMENTS)) |
|
8441 | 63 |
@$(call MakeFinish,install,$(INSTALL_BUILD_TARGETS)) |
0 | 64 |
endif |
65 |
||
66 |
update-patcher: |
|
67 |
ifeq ($(BUILD_INSTALL), true) |
|
68 |
if [ -r $(INSTALL_TOPDIR)/make/update/Makefile ]; then \ |
|
8441 | 69 |
$(call MakeStart,install_update,all); \ |
0 | 70 |
( $(CD) $(INSTALL_TOPDIR)/make/update && \ |
71 |
$(MAKE) all $(INSTALL_BUILD_ARGUMENTS) ); \ |
|
8441 | 72 |
$(call MakeFinish,install_update,all); \ |
0 | 73 |
fi |
74 |
endif |
|
75 |
||
76 |
update-patchgen: |
|
77 |
ifeq ($(BUILD_INSTALL), true) |
|
78 |
if [ -r $(INSTALL_TOPDIR)/make/update/Makefile ]; then \ |
|
8441 | 79 |
$(call MakeStart,install_update,patchgen); \ |
0 | 80 |
( $(CD) $(INSTALL_TOPDIR)/make/update && \ |
81 |
$(MAKE) patchgen $(INSTALL_BUILD_ARGUMENTS) ); \ |
|
8441 | 82 |
$(call MakeFinish,install_update,patchgen); \ |
0 | 83 |
fi |
84 |
endif |
|
85 |
||
86 |
installer: |
|
87 |
ifeq ($(BUILD_INSTALL), true) |
|
88 |
if [ -r $(INSTALL_TOPDIR)/make/installer/Makefile ]; then \ |
|
8441 | 89 |
$(call MakeStart,install_installer,all); \ |
0 | 90 |
( $(CD) $(INSTALL_TOPDIR)/make/installer && \ |
91 |
$(MAKE) all $(INSTALL_BUILD_ARGUMENTS) ); \ |
|
8441 | 92 |
$(call MakeFinish,install_installer,all); \ |
0 | 93 |
fi |
94 |
endif |
|
95 |
||
6734
bc342cc53099
6983855: The jre combo bundle target needs to be added in the makefile
jqzuo
parents:
5499
diff
changeset
|
96 |
combo_build: |
bc342cc53099
6983855: The jre combo bundle target needs to be added in the makefile
jqzuo
parents:
5499
diff
changeset
|
97 |
@$(ECHO) $@ installer combo build started: `$(DATE) '+%y-%m-%d %H:%M'` |
bc342cc53099
6983855: The jre combo bundle target needs to be added in the makefile
jqzuo
parents:
5499
diff
changeset
|
98 |
$(CD) $(INSTALL_TOPDIR)/make/installer/bundles/windows/ishield/wrapper/wrapper.jreboth ; $(MAKE) all |
bc342cc53099
6983855: The jre combo bundle target needs to be added in the makefile
jqzuo
parents:
5499
diff
changeset
|
99 |
|
0 | 100 |
install-clobber: |
101 |
ifeq ($(BUILD_INSTALL), true) |
|
8441 | 102 |
@$(call MakeStart,install,clobber) |
0 | 103 |
($(CD) $(INSTALL_TOPDIR)/make && \ |
104 |
$(MAKE) clobber $(INSTALL_BUILD_ARGUMENTS)) |
|
8441 | 105 |
@$(call MakeFinish,install,clobber) |
0 | 106 |
endif |
107 |
||
108 |
install-sanity:: |
|
109 |
ifeq ($(BUILD_INSTALL), true) |
|
110 |
($(CD) $(INSTALL_TOPDIR)/make && \ |
|
111 |
$(MAKE) sanity $(INSTALL_BUILD_ARGUMENTS)) |
|
112 |
endif |
|
113 |
||
114 |
###################################### |
|
115 |
# Rules for making the install |
|
116 |
###################################### |
|
117 |
||
118 |
.PHONY: install install-build install-clobber install-sanity \ |
|
119 |
update-installer update-patchgen installer |