make/install-rules.gmk

Wed, 06 Aug 2008 14:57:13 -0700

author
ohair
date
Wed, 06 Aug 2008 14:57:13 -0700
changeset 29
55b2666e52e1
parent 2
cfeea66a3fa8
child 128
e76b72562a98
permissions
-rw-r--r--

6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
Reviewed-by: tbell

duke@2 1 #
duke@2 2 # Copyright 2002-2007 Sun Microsystems, Inc. All Rights Reserved.
duke@2 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@2 4 #
duke@2 5 # This code is free software; you can redistribute it and/or modify it
duke@2 6 # under the terms of the GNU General Public License version 2 only, as
duke@2 7 # published by the Free Software Foundation. Sun designates this
duke@2 8 # particular file as subject to the "Classpath" exception as provided
duke@2 9 # by Sun in the LICENSE file that accompanied this code.
duke@2 10 #
duke@2 11 # This code is distributed in the hope that it will be useful, but WITHOUT
duke@2 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@2 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@2 14 # version 2 for more details (a copy is included in the LICENSE file that
duke@2 15 # accompanied this code).
duke@2 16 #
duke@2 17 # You should have received a copy of the GNU General Public License version
duke@2 18 # 2 along with this work; if not, write to the Free Software Foundation,
duke@2 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@2 20 #
duke@2 21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
duke@2 22 # CA 95054 USA or visit www.sun.com if you need additional information or
duke@2 23 # have any questions.
duke@2 24 #
duke@2 25
duke@2 26 ################################################################
duke@2 27 # INSTALL TARGETS
duke@2 28 ################################################################
duke@2 29
duke@2 30 install: install-build
duke@2 31
duke@2 32 # The generated java files are generated as a set, so instead of
duke@2 33 # setting the INSTALL variable to that list of files, set it to
duke@2 34 # the .PHONY target that generates the set of files.
duke@2 35 INSTALL = install
duke@2 36
duke@2 37 # put the generated patch in their own place in OUTPUTDIR
duke@2 38 INSTALL_OUTPUTDIR = $(ABS_OUTPUTDIR)
duke@2 39
duke@2 40 INSTALL_DEBUG_NAME=fastdebug
duke@2 41
duke@2 42 INSTALL_BUILD_TARGETS = sanity all
duke@2 43 INSTALL_BUILD_ARGUMENTS = $(COMMON_BUILD_ARGUMENTS) \
duke@2 44 ALT_OUTPUTDIR=$(INSTALL_OUTPUTDIR) \
duke@2 45 ALT_RTPATCH_DIR=$(ALT_RTPATCH_DIR) \
duke@2 46 ALT_BASE_IMAGE_ZIP=$(ALT_BASE_IMAGE_ZIP) \
duke@2 47 ALT_BASE_IMAGE_DIR=$(ALT_BASE_IMAGE_DIR) \
duke@2 48 ALT_NEW_IMAGE_DIR=$(ALT_NEW_IMAGE_DIR) \
duke@2 49 ALT_BUNDLE_DATE=$(BUNDLE_DATE) \
duke@2 50 INSTALL_DEBUG_NAME=$(INSTALL_DEBUG_NAME)
duke@2 51
duke@2 52 ifeq ($(BUILD_LANGTOOLS), true)
duke@2 53 INSTALL_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST)
duke@2 54 endif
duke@2 55
duke@2 56 install: install-build
duke@2 57
duke@2 58 install-build:
duke@2 59 ifeq ($(BUILD_INSTALL), true)
duke@2 60 ($(CD) $(INSTALL_TOPDIR)/make && \
duke@2 61 $(MAKE) $(INSTALL_BUILD_TARGETS) $(INSTALL_BUILD_ARGUMENTS))
duke@2 62 endif
duke@2 63
duke@2 64 update-patcher:
duke@2 65 ifeq ($(BUILD_INSTALL), true)
duke@2 66 if [ -r $(INSTALL_TOPDIR)/make/update/Makefile ]; then \
duke@2 67 ( $(CD) $(INSTALL_TOPDIR)/make/update && \
duke@2 68 $(MAKE) all $(INSTALL_BUILD_ARGUMENTS) ); \
duke@2 69 fi
duke@2 70 endif
duke@2 71
duke@2 72 update-patchgen:
duke@2 73 ifeq ($(BUILD_INSTALL), true)
duke@2 74 if [ -r $(INSTALL_TOPDIR)/make/update/Makefile ]; then \
duke@2 75 ( $(CD) $(INSTALL_TOPDIR)/make/update && \
duke@2 76 $(MAKE) patchgen $(INSTALL_BUILD_ARGUMENTS) ); \
duke@2 77 fi
duke@2 78 endif
duke@2 79
duke@2 80 installer:
duke@2 81 ifeq ($(BUILD_INSTALL), true)
duke@2 82 if [ -r $(INSTALL_TOPDIR)/make/installer/Makefile ]; then \
duke@2 83 ( $(CD) $(INSTALL_TOPDIR)/make/installer && \
duke@2 84 $(MAKE) all $(INSTALL_BUILD_ARGUMENTS) ); \
duke@2 85 fi
duke@2 86 endif
duke@2 87
duke@2 88 install-clobber:
duke@2 89 ifeq ($(BUILD_INSTALL), true)
duke@2 90 ($(CD) $(INSTALL_TOPDIR)/make && \
duke@2 91 $(MAKE) clobber $(INSTALL_BUILD_ARGUMENTS))
duke@2 92 endif
duke@2 93
duke@2 94 install-sanity::
duke@2 95 ifeq ($(BUILD_INSTALL), true)
duke@2 96 ($(CD) $(INSTALL_TOPDIR)/make && \
duke@2 97 $(MAKE) sanity $(INSTALL_BUILD_ARGUMENTS))
duke@2 98 endif
duke@2 99
duke@2 100 ######################################
duke@2 101 # Rules for making the install
duke@2 102 ######################################
duke@2 103
duke@2 104 .PHONY: install install-build install-clobber install-sanity \
duke@2 105 update-installer update-patchgen installer

mercurial