annotate make/install-rules.gmk @ 311:a1c8b847b753

7021753: Add a build times report Summary: Report the build times at end of a jdkroot build. Reviewed-by: ohair
author ohrstrom
date Mon, 28 Feb 2011 10:56:10 +0100
parents 024a6755895b
children 7e13dbf7e8af
rev   line source
duke@0 1 #
ohair@278 2 # Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
duke@0 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@0 4 #
duke@0 5 # This code is free software; you can redistribute it and/or modify it
duke@0 6 # under the terms of the GNU General Public License version 2 only, as
ohair@180 7 # published by the Free Software Foundation. Oracle designates this
duke@0 8 # particular file as subject to the "Classpath" exception as provided
ohair@180 9 # by Oracle in the LICENSE file that accompanied this code.
duke@0 10 #
duke@0 11 # This code is distributed in the hope that it will be useful, but WITHOUT
duke@0 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@0 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@0 14 # version 2 for more details (a copy is included in the LICENSE file that
duke@0 15 # accompanied this code).
duke@0 16 #
duke@0 17 # You should have received a copy of the GNU General Public License version
duke@0 18 # 2 along with this work; if not, write to the Free Software Foundation,
duke@0 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@0 20 #
ohair@180 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@180 22 # or visit www.oracle.com if you need additional information or have any
ohair@180 23 # questions.
duke@0 24 #
duke@0 25
duke@0 26 ################################################################
duke@0 27 # INSTALL TARGETS
duke@0 28 ################################################################
duke@0 29
duke@0 30 install: install-build
duke@0 31
duke@0 32 # The generated java files are generated as a set, so instead of
duke@0 33 # setting the INSTALL variable to that list of files, set it to
duke@0 34 # the .PHONY target that generates the set of files.
duke@0 35 INSTALL = install
duke@0 36
duke@0 37 # put the generated patch in their own place in OUTPUTDIR
duke@0 38 INSTALL_OUTPUTDIR = $(ABS_OUTPUTDIR)
duke@0 39
duke@0 40 INSTALL_DEBUG_NAME=fastdebug
duke@0 41
duke@0 42 INSTALL_BUILD_TARGETS = sanity all
duke@0 43 INSTALL_BUILD_ARGUMENTS = $(COMMON_BUILD_ARGUMENTS) \
duke@0 44 ALT_OUTPUTDIR=$(INSTALL_OUTPUTDIR) \
duke@0 45 ALT_RTPATCH_DIR=$(ALT_RTPATCH_DIR) \
duke@0 46 ALT_BASE_IMAGE_ZIP=$(ALT_BASE_IMAGE_ZIP) \
duke@0 47 ALT_BASE_IMAGE_DIR=$(ALT_BASE_IMAGE_DIR) \
duke@0 48 ALT_NEW_IMAGE_DIR=$(ALT_NEW_IMAGE_DIR) \
duke@0 49 ALT_BUNDLE_DATE=$(BUNDLE_DATE) \
duke@0 50 INSTALL_DEBUG_NAME=$(INSTALL_DEBUG_NAME)
duke@0 51
duke@0 52 ifeq ($(BUILD_LANGTOOLS), true)
duke@0 53 INSTALL_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST)
duke@0 54 endif
duke@0 55
duke@0 56 install: install-build
duke@0 57
duke@0 58 install-build:
duke@0 59 ifeq ($(BUILD_INSTALL), true)
ohrstrom@311 60 @$(call MakeStart,install,$(INSTALL_BUILD_TARGETS))
duke@0 61 ($(CD) $(INSTALL_TOPDIR)/make && \
duke@0 62 $(MAKE) $(INSTALL_BUILD_TARGETS) $(INSTALL_BUILD_ARGUMENTS))
ohrstrom@311 63 @$(call MakeFinish,install,$(INSTALL_BUILD_TARGETS))
duke@0 64 endif
duke@0 65
duke@0 66 update-patcher:
duke@0 67 ifeq ($(BUILD_INSTALL), true)
duke@0 68 if [ -r $(INSTALL_TOPDIR)/make/update/Makefile ]; then \
ohrstrom@311 69 $(call MakeStart,install_update,all); \
duke@0 70 ( $(CD) $(INSTALL_TOPDIR)/make/update && \
duke@0 71 $(MAKE) all $(INSTALL_BUILD_ARGUMENTS) ); \
ohrstrom@311 72 $(call MakeFinish,install_update,all); \
duke@0 73 fi
duke@0 74 endif
duke@0 75
duke@0 76 update-patchgen:
duke@0 77 ifeq ($(BUILD_INSTALL), true)
duke@0 78 if [ -r $(INSTALL_TOPDIR)/make/update/Makefile ]; then \
ohrstrom@311 79 $(call MakeStart,install_update,patchgen); \
duke@0 80 ( $(CD) $(INSTALL_TOPDIR)/make/update && \
duke@0 81 $(MAKE) patchgen $(INSTALL_BUILD_ARGUMENTS) ); \
ohrstrom@311 82 $(call MakeFinish,install_update,patchgen); \
duke@0 83 fi
duke@0 84 endif
duke@0 85
duke@0 86 installer:
duke@0 87 ifeq ($(BUILD_INSTALL), true)
duke@0 88 if [ -r $(INSTALL_TOPDIR)/make/installer/Makefile ]; then \
ohrstrom@311 89 $(call MakeStart,install_installer,all); \
duke@0 90 ( $(CD) $(INSTALL_TOPDIR)/make/installer && \
duke@0 91 $(MAKE) all $(INSTALL_BUILD_ARGUMENTS) ); \
ohrstrom@311 92 $(call MakeFinish,install_installer,all); \
duke@0 93 fi
duke@0 94 endif
duke@0 95
jqzuo@233 96 combo_build:
jqzuo@233 97 @$(ECHO) $@ installer combo build started: `$(DATE) '+%y-%m-%d %H:%M'`
jqzuo@233 98 $(CD) $(INSTALL_TOPDIR)/make/installer/bundles/windows/ishield/wrapper/wrapper.jreboth ; $(MAKE) all
jqzuo@233 99
duke@0 100 install-clobber:
duke@0 101 ifeq ($(BUILD_INSTALL), true)
ohrstrom@311 102 @$(call MakeStart,install,clobber)
duke@0 103 ($(CD) $(INSTALL_TOPDIR)/make && \
duke@0 104 $(MAKE) clobber $(INSTALL_BUILD_ARGUMENTS))
ohrstrom@311 105 @$(call MakeFinish,install,clobber)
duke@0 106 endif
duke@0 107
duke@0 108 install-sanity::
duke@0 109 ifeq ($(BUILD_INSTALL), true)
duke@0 110 ($(CD) $(INSTALL_TOPDIR)/make && \
duke@0 111 $(MAKE) sanity $(INSTALL_BUILD_ARGUMENTS))
duke@0 112 endif
duke@0 113
duke@0 114 ######################################
duke@0 115 # Rules for making the install
duke@0 116 ######################################
duke@0 117
duke@0 118 .PHONY: install install-build install-clobber install-sanity \
duke@0 119 update-installer update-patchgen installer