duke@2: # duke@2: # Copyright 2002-2007 Sun Microsystems, Inc. All Rights Reserved. duke@2: # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. duke@2: # duke@2: # This code is free software; you can redistribute it and/or modify it duke@2: # under the terms of the GNU General Public License version 2 only, as duke@2: # published by the Free Software Foundation. Sun designates this duke@2: # particular file as subject to the "Classpath" exception as provided duke@2: # by Sun in the LICENSE file that accompanied this code. duke@2: # duke@2: # This code is distributed in the hope that it will be useful, but WITHOUT duke@2: # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or duke@2: # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License duke@2: # version 2 for more details (a copy is included in the LICENSE file that duke@2: # accompanied this code). duke@2: # duke@2: # You should have received a copy of the GNU General Public License version duke@2: # 2 along with this work; if not, write to the Free Software Foundation, duke@2: # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. duke@2: # duke@2: # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, duke@2: # CA 95054 USA or visit www.sun.com if you need additional information or duke@2: # have any questions. duke@2: # duke@2: duke@2: ################################################################ duke@2: # INSTALL TARGETS duke@2: ################################################################ duke@2: duke@2: install: install-build duke@2: duke@2: # The generated java files are generated as a set, so instead of duke@2: # setting the INSTALL variable to that list of files, set it to duke@2: # the .PHONY target that generates the set of files. duke@2: INSTALL = install duke@2: duke@2: # put the generated patch in their own place in OUTPUTDIR duke@2: INSTALL_OUTPUTDIR = $(ABS_OUTPUTDIR) duke@2: duke@2: INSTALL_DEBUG_NAME=fastdebug duke@2: duke@2: INSTALL_BUILD_TARGETS = sanity all duke@2: INSTALL_BUILD_ARGUMENTS = $(COMMON_BUILD_ARGUMENTS) \ duke@2: ALT_OUTPUTDIR=$(INSTALL_OUTPUTDIR) \ duke@2: ALT_RTPATCH_DIR=$(ALT_RTPATCH_DIR) \ duke@2: ALT_BASE_IMAGE_ZIP=$(ALT_BASE_IMAGE_ZIP) \ duke@2: ALT_BASE_IMAGE_DIR=$(ALT_BASE_IMAGE_DIR) \ duke@2: ALT_NEW_IMAGE_DIR=$(ALT_NEW_IMAGE_DIR) \ duke@2: ALT_BUNDLE_DATE=$(BUNDLE_DATE) \ duke@2: INSTALL_DEBUG_NAME=$(INSTALL_DEBUG_NAME) duke@2: duke@2: ifeq ($(BUILD_LANGTOOLS), true) duke@2: INSTALL_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST) duke@2: endif duke@2: duke@2: install: install-build duke@2: duke@2: install-build: duke@2: ifeq ($(BUILD_INSTALL), true) ohair@128: @$(call MakeStart, install, $(INSTALL_BUILD_TARGETS)) duke@2: ($(CD) $(INSTALL_TOPDIR)/make && \ duke@2: $(MAKE) $(INSTALL_BUILD_TARGETS) $(INSTALL_BUILD_ARGUMENTS)) ohair@128: @$(call MakeFinish, install, $(INSTALL_BUILD_TARGETS)) duke@2: endif duke@2: duke@2: update-patcher: duke@2: ifeq ($(BUILD_INSTALL), true) duke@2: if [ -r $(INSTALL_TOPDIR)/make/update/Makefile ]; then \ ohair@128: $(call MakeStart, install update, all); \ duke@2: ( $(CD) $(INSTALL_TOPDIR)/make/update && \ duke@2: $(MAKE) all $(INSTALL_BUILD_ARGUMENTS) ); \ ohair@128: $(call MakeFinish, install, all); \ duke@2: fi duke@2: endif duke@2: duke@2: update-patchgen: duke@2: ifeq ($(BUILD_INSTALL), true) duke@2: if [ -r $(INSTALL_TOPDIR)/make/update/Makefile ]; then \ ohair@128: $(call MakeStart, install update, patchgen); \ duke@2: ( $(CD) $(INSTALL_TOPDIR)/make/update && \ duke@2: $(MAKE) patchgen $(INSTALL_BUILD_ARGUMENTS) ); \ ohair@128: $(call MakeFinish, install, patchgen); \ duke@2: fi duke@2: endif duke@2: duke@2: installer: duke@2: ifeq ($(BUILD_INSTALL), true) duke@2: if [ -r $(INSTALL_TOPDIR)/make/installer/Makefile ]; then \ ohair@128: $(call MakeStart, install installer, all); \ duke@2: ( $(CD) $(INSTALL_TOPDIR)/make/installer && \ duke@2: $(MAKE) all $(INSTALL_BUILD_ARGUMENTS) ); \ ohair@128: $(call MakeFinish, install, all); \ duke@2: fi duke@2: endif duke@2: duke@2: install-clobber: duke@2: ifeq ($(BUILD_INSTALL), true) ohair@128: @$(call MakeStart, install, clobber) duke@2: ($(CD) $(INSTALL_TOPDIR)/make && \ duke@2: $(MAKE) clobber $(INSTALL_BUILD_ARGUMENTS)) ohair@128: @$(call MakeFinish, install, clobber) duke@2: endif duke@2: duke@2: install-sanity:: duke@2: ifeq ($(BUILD_INSTALL), true) duke@2: ($(CD) $(INSTALL_TOPDIR)/make && \ duke@2: $(MAKE) sanity $(INSTALL_BUILD_ARGUMENTS)) duke@2: endif duke@2: duke@2: ###################################### duke@2: # Rules for making the install duke@2: ###################################### duke@2: duke@2: .PHONY: install install-build install-clobber install-sanity \ duke@2: update-installer update-patchgen installer