Thu, 10 Jun 2010 13:58:55 -0700
Added tag jdk7-b97 for changeset 5e197c942c6e
duke@2 | 1 | # |
ohair@182 | 2 | # Copyright (c) 2002, 2009, Oracle and/or its affiliates. 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 |
ohair@182 | 7 | # published by the Free Software Foundation. Oracle designates this |
duke@2 | 8 | # particular file as subject to the "Classpath" exception as provided |
ohair@182 | 9 | # by Oracle 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 | # |
ohair@182 | 21 | # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ohair@182 | 22 | # or visit www.oracle.com if you need additional information or have any |
ohair@182 | 23 | # 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) |
ohair@128 | 60 | @$(call MakeStart, install, $(INSTALL_BUILD_TARGETS)) |
duke@2 | 61 | ($(CD) $(INSTALL_TOPDIR)/make && \ |
duke@2 | 62 | $(MAKE) $(INSTALL_BUILD_TARGETS) $(INSTALL_BUILD_ARGUMENTS)) |
ohair@128 | 63 | @$(call MakeFinish, install, $(INSTALL_BUILD_TARGETS)) |
duke@2 | 64 | endif |
duke@2 | 65 | |
duke@2 | 66 | update-patcher: |
duke@2 | 67 | ifeq ($(BUILD_INSTALL), true) |
duke@2 | 68 | if [ -r $(INSTALL_TOPDIR)/make/update/Makefile ]; then \ |
ohair@128 | 69 | $(call MakeStart, install update, all); \ |
duke@2 | 70 | ( $(CD) $(INSTALL_TOPDIR)/make/update && \ |
duke@2 | 71 | $(MAKE) all $(INSTALL_BUILD_ARGUMENTS) ); \ |
ohair@128 | 72 | $(call MakeFinish, install, all); \ |
duke@2 | 73 | fi |
duke@2 | 74 | endif |
duke@2 | 75 | |
duke@2 | 76 | update-patchgen: |
duke@2 | 77 | ifeq ($(BUILD_INSTALL), true) |
duke@2 | 78 | if [ -r $(INSTALL_TOPDIR)/make/update/Makefile ]; then \ |
ohair@128 | 79 | $(call MakeStart, install update, patchgen); \ |
duke@2 | 80 | ( $(CD) $(INSTALL_TOPDIR)/make/update && \ |
duke@2 | 81 | $(MAKE) patchgen $(INSTALL_BUILD_ARGUMENTS) ); \ |
ohair@128 | 82 | $(call MakeFinish, install, patchgen); \ |
duke@2 | 83 | fi |
duke@2 | 84 | endif |
duke@2 | 85 | |
duke@2 | 86 | installer: |
duke@2 | 87 | ifeq ($(BUILD_INSTALL), true) |
duke@2 | 88 | if [ -r $(INSTALL_TOPDIR)/make/installer/Makefile ]; then \ |
ohair@128 | 89 | $(call MakeStart, install installer, all); \ |
duke@2 | 90 | ( $(CD) $(INSTALL_TOPDIR)/make/installer && \ |
duke@2 | 91 | $(MAKE) all $(INSTALL_BUILD_ARGUMENTS) ); \ |
ohair@128 | 92 | $(call MakeFinish, install, all); \ |
duke@2 | 93 | fi |
duke@2 | 94 | endif |
duke@2 | 95 | |
duke@2 | 96 | install-clobber: |
duke@2 | 97 | ifeq ($(BUILD_INSTALL), true) |
ohair@128 | 98 | @$(call MakeStart, install, clobber) |
duke@2 | 99 | ($(CD) $(INSTALL_TOPDIR)/make && \ |
duke@2 | 100 | $(MAKE) clobber $(INSTALL_BUILD_ARGUMENTS)) |
ohair@128 | 101 | @$(call MakeFinish, install, clobber) |
duke@2 | 102 | endif |
duke@2 | 103 | |
duke@2 | 104 | install-sanity:: |
duke@2 | 105 | ifeq ($(BUILD_INSTALL), true) |
duke@2 | 106 | ($(CD) $(INSTALL_TOPDIR)/make && \ |
duke@2 | 107 | $(MAKE) sanity $(INSTALL_BUILD_ARGUMENTS)) |
duke@2 | 108 | endif |
duke@2 | 109 | |
duke@2 | 110 | ###################################### |
duke@2 | 111 | # Rules for making the install |
duke@2 | 112 | ###################################### |
duke@2 | 113 | |
duke@2 | 114 | .PHONY: install install-build install-clobber install-sanity \ |
duke@2 | 115 | update-installer update-patchgen installer |