Fri, 16 Aug 2013 14:33:34 -0400
Merge
duke@2 | 1 | # |
ohair@330 | 2 | # Copyright (c) 2002, 2011, 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) |
ohrstrom@313 | 60 | @$(call MakeStart,install,$(INSTALL_BUILD_TARGETS)) |
duke@2 | 61 | ($(CD) $(INSTALL_TOPDIR)/make && \ |
duke@2 | 62 | $(MAKE) $(INSTALL_BUILD_TARGETS) $(INSTALL_BUILD_ARGUMENTS)) |
ohrstrom@313 | 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 \ |
ohrstrom@313 | 69 | $(call MakeStart,install_update,all); \ |
duke@2 | 70 | ( $(CD) $(INSTALL_TOPDIR)/make/update && \ |
duke@2 | 71 | $(MAKE) all $(INSTALL_BUILD_ARGUMENTS) ); \ |
ohrstrom@313 | 72 | $(call MakeFinish,install_update,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 \ |
ohrstrom@313 | 79 | $(call MakeStart,install_update,patchgen); \ |
duke@2 | 80 | ( $(CD) $(INSTALL_TOPDIR)/make/update && \ |
duke@2 | 81 | $(MAKE) patchgen $(INSTALL_BUILD_ARGUMENTS) ); \ |
ohrstrom@313 | 82 | $(call MakeFinish,install_update,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 \ |
ohrstrom@313 | 89 | $(call MakeStart,install_installer,all); \ |
duke@2 | 90 | ( $(CD) $(INSTALL_TOPDIR)/make/installer && \ |
duke@2 | 91 | $(MAKE) all $(INSTALL_BUILD_ARGUMENTS) ); \ |
ohrstrom@313 | 92 | $(call MakeFinish,install_installer,all); \ |
duke@2 | 93 | fi |
duke@2 | 94 | endif |
duke@2 | 95 | |
jqzuo@235 | 96 | combo_build: |
jqzuo@235 | 97 | @$(ECHO) $@ installer combo build started: `$(DATE) '+%y-%m-%d %H:%M'` |
jqzuo@235 | 98 | $(CD) $(INSTALL_TOPDIR)/make/installer/bundles/windows/ishield/wrapper/wrapper.jreboth ; $(MAKE) all |
jqzuo@582 | 99 | $(CD) $(INSTALL_TOPDIR)/make/installer/bundles/windows/ishield/wrapper/wrapper.new64jre ; $(MAKE) all |
jqzuo@582 | 100 | $(CD) $(INSTALL_TOPDIR)/make/installer/bundles/windows/ishield/jre ; $(MAKE) au_combo |
jqzuo@582 | 101 | $(CD) $(INSTALL_TOPDIR)/make/installer/bundles/windows/xmlinffile ; $(MAKE) all |
jqzuo@235 | 102 | |
duke@2 | 103 | install-clobber: |
duke@2 | 104 | ifeq ($(BUILD_INSTALL), true) |
ohrstrom@313 | 105 | @$(call MakeStart,install,clobber) |
duke@2 | 106 | ($(CD) $(INSTALL_TOPDIR)/make && \ |
duke@2 | 107 | $(MAKE) clobber $(INSTALL_BUILD_ARGUMENTS)) |
ohrstrom@313 | 108 | @$(call MakeFinish,install,clobber) |
duke@2 | 109 | endif |
duke@2 | 110 | |
duke@2 | 111 | install-sanity:: |
duke@2 | 112 | ifeq ($(BUILD_INSTALL), true) |
duke@2 | 113 | ($(CD) $(INSTALL_TOPDIR)/make && \ |
duke@2 | 114 | $(MAKE) sanity $(INSTALL_BUILD_ARGUMENTS)) |
duke@2 | 115 | endif |
duke@2 | 116 | |
duke@2 | 117 | ###################################### |
duke@2 | 118 | # Rules for making the install |
duke@2 | 119 | ###################################### |
duke@2 | 120 | |
duke@2 | 121 | .PHONY: install install-build install-clobber install-sanity \ |
duke@2 | 122 | update-installer update-patchgen installer |