make/deploy-rules.gmk

Mon, 28 Feb 2011 10:56:10 +0100

author
ohrstrom
date
Mon, 28 Feb 2011 10:56:10 +0100
changeset 313
a1c8b847b753
parent 307
e2370dfcc721
child 330
7e13dbf7e8af
permissions
-rw-r--r--

7021753: Add a build times report
Summary: Report the build times at end of a jdkroot build.
Reviewed-by: ohair

duke@2 1 #
ohair@280 2 # Copyright (c) 2002, 2010, 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 # DEPLOY TARGETS
duke@2 28 ################################################################
duke@2 29
duke@2 30 deploy: deploy-build
herrick@94 31
herrick@94 32 DEPLOY = deploy
herrick@94 33
duke@2 34 # put the generated bundles in their own place in OUTPUTDIR
duke@2 35 DEPLOY_OUTPUTDIR = $(ABS_OUTPUTDIR)
duke@2 36
duke@2 37 # NO_IMAGES may be set in conjunction with DEV_ONLY
duke@2 38 ifdef NO_IMAGES
duke@2 39 IMAGES_TARGET =
duke@2 40 else
duke@2 41 IMAGES_TARGET = images
duke@2 42 endif
duke@2 43
igor@230 44 DEPLOY_BUILD_TARGETS = sanity deploy
herrick@94 45 # Only build 7-Zip LZMA file compression if it is available
herrick@94 46 # Enable 7-Zip LZMA file (de)compression for Java Kernel if it is available
herrick@94 47 ifeq ($(ARCH_DATA_MODEL), 32)
herrick@94 48 ifeq ($(PLATFORM), windows)
herrick@94 49 EC_TMP = $(shell if [ -d $(DEPLOY_TOPDIR)/make/lzma ] ; then \
herrick@94 50 $(ECHO) true ; \
herrick@94 51 else \
herrick@94 52 $(ECHO) false ; \
herrick@94 53 fi )
herrick@94 54 ifeq ($(EC_TMP), true)
herrick@94 55 DEPLOY_BUILD_TARGETS += extra-comp-all
herrick@94 56 endif
herrick@94 57 endif
herrick@94 58 endif
herrick@94 59
herrick@94 60 ifneq ($(JQS), off)
herrick@94 61 ifeq ($(ARCH_DATA_MODEL), 32)
herrick@94 62 ifeq ($(PLATFORM), windows)
herrick@94 63 DEPLOY_BUILD_TARGETS += jqs-all
herrick@94 64 endif
herrick@94 65 endif
herrick@94 66 endif
paulk@307 67
paulk@307 68 ifeq ($(ARCH_DATA_MODEL), 32)
paulk@307 69 ifeq ($(PLATFORM), windows)
paulk@307 70 # Only set up to use UPX compression if it is available
paulk@307 71 UP_TMP = $(shell if [ -d $(DEPLOY_TOPDIR)/make/upx ] ; then \
paulk@307 72 $(ECHO) true ; \
paulk@307 73 else \
paulk@307 74 $(ECHO) false ; \
paulk@307 75 fi )
paulk@307 76 ifeq ($(UP_TMP), true)
paulk@307 77 DEPLOY_BUILD_TARGETS += cmd-comp-all
herrick@94 78 endif
herrick@94 79 endif
herrick@94 80 endif
herrick@94 81
herrick@94 82
herrick@94 83
duke@2 84 ifndef DEV_ONLY
duke@2 85 DEPLOY_BUILD_TARGETS += images
duke@2 86 else
duke@2 87 DEPLOY_BUILD_TARGETS += $(IMAGES_TARGET)
duke@2 88 endif
duke@2 89
duke@2 90 DEPLOY_BUILD_ARGUMENTS = $(COMMON_BUILD_ARGUMENTS) \
duke@2 91 ALT_OUTPUTDIR=$(DEPLOY_OUTPUTDIR)
duke@2 92
duke@2 93 ifeq ($(BUILD_LANGTOOLS), true)
duke@2 94 DEPLOY_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST)
duke@2 95 endif
duke@2 96
duke@2 97 ifdef ALT_IMAGE_DIR
duke@2 98 DEPLOY_BUILD_ARGUMENTS += ALT_IMAGE_DIR=$(ALT_IMAGE_DIR)
duke@2 99 endif
duke@2 100
duke@2 101 ifdef ALT_BUNDLE_DATE
duke@2 102 DEPLOY_BUILD_ARGUMENTS += ALT_BUNDLE_DATE=$(ALT_BUNDLE_DATE)
duke@2 103 endif
duke@2 104
duke@2 105 ifdef ALT_JAVAWS_BOOTDIR
duke@2 106 DEPLOY_BUILD_ARGUMENTS += ALT_JAVAWS_BOOTDIR=$(ALT_JAVAWS_BOOTDIR)
duke@2 107 endif
duke@2 108
duke@2 109 ifdef CERT
duke@2 110 DEPLOY_BUILD_ARGUMENTS += CERT=$(CERT)
duke@2 111 endif
duke@2 112
duke@2 113 ifdef PKEY
duke@2 114 DEPLOY_BUILD_ARGUMENTS += PKEY=$(PKEY)
duke@2 115 endif
duke@2 116
duke@2 117 deploy-build:
herrick@94 118 ifeq ($(BUILD_DEPLOY), true)
ohrstrom@313 119 @$(call MakeStart,deploy,$(DEPLOY_BUILD_TARGETS))
duke@2 120 ($(CD) $(DEPLOY_TOPDIR)/make && \
ohair@128 121 $(MAKE) $(DEPLOY_BUILD_TARGETS) $(DEPLOY_BUILD_ARGUMENTS))
ohrstrom@313 122 @$(call MakeFinish,deploy,$(DEPLOY_BUILD_TARGETS))
duke@2 123 endif
duke@2 124
duke@2 125 deploy-clobber::
herrick@94 126 ifeq ($(BUILD_DEPLOY), true)
ohrstrom@313 127 @$(call MakeStart,deploy,clobber)
duke@2 128 ($(CD) $(DEPLOY_TOPDIR)/make && \
ohair@128 129 $(MAKE) clobber $(DEPLOY_BUILD_ARGUMENTS))
ohrstrom@313 130 @$(call MakeFinish,deploy,clobber)
duke@2 131 endif
duke@2 132
duke@2 133 deploy-sanity::
herrick@94 134 ifeq ($(BUILD_DEPLOY), true)
duke@2 135 ($(CD) $(DEPLOY_TOPDIR)/make && \
herrick@94 136 $(MAKE) sanity $(DEPLOY_BUILD_ARGUMENTS))
duke@2 137 endif
duke@2 138
duke@2 139 .PHONY: deploy deploy-build deploy-clobber deploy-sanity
duke@2 140

mercurial