duke@2: # ohair@280: # Copyright (c) 2002, 2010, Oracle and/or its affiliates. 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 ohair@182: # published by the Free Software Foundation. Oracle designates this duke@2: # particular file as subject to the "Classpath" exception as provided ohair@182: # by Oracle 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: # ohair@182: # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA ohair@182: # or visit www.oracle.com if you need additional information or have any ohair@182: # 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) ohrstrom@313: @$(call MakeStart,install,$(INSTALL_BUILD_TARGETS)) duke@2: ($(CD) $(INSTALL_TOPDIR)/make && \ duke@2: $(MAKE) $(INSTALL_BUILD_TARGETS) $(INSTALL_BUILD_ARGUMENTS)) ohrstrom@313: @$(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 \ ohrstrom@313: $(call MakeStart,install_update,all); \ duke@2: ( $(CD) $(INSTALL_TOPDIR)/make/update && \ duke@2: $(MAKE) all $(INSTALL_BUILD_ARGUMENTS) ); \ ohrstrom@313: $(call MakeFinish,install_update,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 \ ohrstrom@313: $(call MakeStart,install_update,patchgen); \ duke@2: ( $(CD) $(INSTALL_TOPDIR)/make/update && \ duke@2: $(MAKE) patchgen $(INSTALL_BUILD_ARGUMENTS) ); \ ohrstrom@313: $(call MakeFinish,install_update,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 \ ohrstrom@313: $(call MakeStart,install_installer,all); \ duke@2: ( $(CD) $(INSTALL_TOPDIR)/make/installer && \ duke@2: $(MAKE) all $(INSTALL_BUILD_ARGUMENTS) ); \ ohrstrom@313: $(call MakeFinish,install_installer,all); \ duke@2: fi duke@2: endif duke@2: jqzuo@235: combo_build: jqzuo@235: @$(ECHO) $@ installer combo build started: `$(DATE) '+%y-%m-%d %H:%M'` jqzuo@235: $(CD) $(INSTALL_TOPDIR)/make/installer/bundles/windows/ishield/wrapper/wrapper.jreboth ; $(MAKE) all jqzuo@235: duke@2: install-clobber: duke@2: ifeq ($(BUILD_INSTALL), true) ohrstrom@313: @$(call MakeStart,install,clobber) duke@2: ($(CD) $(INSTALL_TOPDIR)/make && \ duke@2: $(MAKE) clobber $(INSTALL_BUILD_ARGUMENTS)) ohrstrom@313: @$(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