source: trunk/openjdk/make/install-rules.gmk@ 146

Last change on this file since 146 was 2, checked in by dmik, 15 years ago

Imported OpenJDK 6 b19 sources from Oracle.

File size: 3.4 KB
Line 
1#
2# Copyright 2002-2007 Sun Microsystems, Inc. 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. 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# INSTALL TARGETS
28################################################################
29
30install: 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.
35INSTALL = install
36
37# put the generated patch in their own place in OUTPUTDIR
38INSTALL_OUTPUTDIR = $(ABS_OUTPUTDIR)
39
40INSTALL_DEBUG_NAME=fastdebug
41
42INSTALL_BUILD_TARGETS = sanity all
43INSTALL_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
52ifeq ($(BUILD_LANGTOOLS), true)
53 INSTALL_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST)
54endif
55
56install: install-build
57
58install-build:
59ifeq ($(BUILD_INSTALL), true)
60 ($(CD) $(INSTALL_TOPDIR)/make && \
61 $(MAKE) $(INSTALL_BUILD_TARGETS) $(INSTALL_BUILD_ARGUMENTS))
62endif
63
64update-patcher:
65ifeq ($(BUILD_INSTALL), true)
66 if [ -r $(INSTALL_TOPDIR)/make/update/Makefile ]; then \
67 ( $(CD) $(INSTALL_TOPDIR)/make/update && \
68 $(MAKE) all $(INSTALL_BUILD_ARGUMENTS) ); \
69 fi
70endif
71
72update-patchgen:
73ifeq ($(BUILD_INSTALL), true)
74 if [ -r $(INSTALL_TOPDIR)/make/update/Makefile ]; then \
75 ( $(CD) $(INSTALL_TOPDIR)/make/update && \
76 $(MAKE) patchgen $(INSTALL_BUILD_ARGUMENTS) ); \
77 fi
78endif
79
80installer:
81ifeq ($(BUILD_INSTALL), true)
82 if [ -r $(INSTALL_TOPDIR)/make/installer/Makefile ]; then \
83 ( $(CD) $(INSTALL_TOPDIR)/make/installer && \
84 $(MAKE) all $(INSTALL_BUILD_ARGUMENTS) ); \
85 fi
86endif
87
88install-clobber:
89ifeq ($(BUILD_INSTALL), true)
90 ($(CD) $(INSTALL_TOPDIR)/make && \
91 $(MAKE) clobber $(INSTALL_BUILD_ARGUMENTS))
92endif
93
94install-sanity::
95ifeq ($(BUILD_INSTALL), true)
96 ($(CD) $(INSTALL_TOPDIR)/make && \
97 $(MAKE) sanity $(INSTALL_BUILD_ARGUMENTS))
98endif
99
100######################################
101# Rules for making the install
102######################################
103
104.PHONY: install install-build install-clobber install-sanity \
105 update-installer update-patchgen installer
Note: See TracBrowser for help on using the repository browser.