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

     1 #
     2 # Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4 #
     5 # This code is free software; you can redistribute it and/or modify it
     6 # under the terms of the GNU General Public License version 2 only, as
     7 # published by the Free Software Foundation.  Oracle designates this
     8 # particular file as subject to the "Classpath" exception as provided
     9 # by Oracle in the LICENSE file that accompanied this code.
    10 #
    11 # This code is distributed in the hope that it will be useful, but WITHOUT
    12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    14 # version 2 for more details (a copy is included in the LICENSE file that
    15 # accompanied this code).
    16 #
    17 # You should have received a copy of the GNU General Public License version
    18 # 2 along with this work; if not, write to the Free Software Foundation,
    19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    20 #
    21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    22 # or visit www.oracle.com if you need additional information or have any
    23 # questions.
    24 #
    26 ################################################################
    27 # DEPLOY TARGETS
    28 ################################################################
    30 deploy:  deploy-build
    32 DEPLOY = deploy
    34 # put the generated bundles in their own place in OUTPUTDIR
    35 DEPLOY_OUTPUTDIR = $(ABS_OUTPUTDIR)
    37 # NO_IMAGES may be set in conjunction with DEV_ONLY
    38 ifdef NO_IMAGES
    39   IMAGES_TARGET =
    40 else
    41   IMAGES_TARGET = images
    42 endif
    44 DEPLOY_BUILD_TARGETS = sanity deploy 
    45 # Only build 7-Zip LZMA file compression if it is available
    46 # Enable 7-Zip LZMA file (de)compression for Java Kernel if it is available
    47 ifeq ($(ARCH_DATA_MODEL), 32)
    48   ifeq ($(PLATFORM), windows)
    49       EC_TMP = $(shell if [ -d $(DEPLOY_TOPDIR)/make/lzma ] ; then \
    50         $(ECHO) true ; \
    51       else \
    52   $(ECHO) false ; \
    53       fi )
    54   ifeq ($(EC_TMP), true)
    55         DEPLOY_BUILD_TARGETS += extra-comp-all
    56       endif
    57   endif
    58 endif
    60 ifneq ($(JQS), off)
    61   ifeq ($(ARCH_DATA_MODEL), 32)
    62     ifeq ($(PLATFORM), windows)
    63       DEPLOY_BUILD_TARGETS += jqs-all
    64     endif
    65   endif
    66 endif
    68 ifeq ($(ARCH_DATA_MODEL), 32)
    69   ifeq ($(PLATFORM), windows)
    70     # Only set up to use UPX compression if it is available
    71     UP_TMP = $(shell if [ -d $(DEPLOY_TOPDIR)/make/upx ] ; then \
    72       $(ECHO) true ; \
    73     else \
    74       $(ECHO) false ; \
    75     fi )
    76     ifeq ($(UP_TMP), true)
    77       DEPLOY_BUILD_TARGETS += cmd-comp-all
    78     endif
    79   endif
    80 endif
    84 ifndef DEV_ONLY
    85   DEPLOY_BUILD_TARGETS += images
    86 else
    87   DEPLOY_BUILD_TARGETS += $(IMAGES_TARGET)
    88 endif
    90 DEPLOY_BUILD_ARGUMENTS = $(COMMON_BUILD_ARGUMENTS) \
    91 			ALT_OUTPUTDIR=$(DEPLOY_OUTPUTDIR) 
    93 ifeq ($(BUILD_LANGTOOLS), true)
    94    DEPLOY_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST)
    95 endif
    97 ifdef ALT_IMAGE_DIR
    98   DEPLOY_BUILD_ARGUMENTS += ALT_IMAGE_DIR=$(ALT_IMAGE_DIR)
    99 endif
   101 ifdef ALT_BUNDLE_DATE
   102   DEPLOY_BUILD_ARGUMENTS += ALT_BUNDLE_DATE=$(ALT_BUNDLE_DATE)
   103 endif
   105 ifdef ALT_JAVAWS_BOOTDIR
   106   DEPLOY_BUILD_ARGUMENTS += ALT_JAVAWS_BOOTDIR=$(ALT_JAVAWS_BOOTDIR)
   107 endif
   109 ifdef CERT
   110   DEPLOY_BUILD_ARGUMENTS += CERT=$(CERT)
   111 endif
   113 ifdef PKEY
   114   DEPLOY_BUILD_ARGUMENTS += PKEY=$(PKEY)
   115 endif
   117 deploy-build:
   118 ifeq ($(BUILD_DEPLOY), true)
   119 	@$(call MakeStart,deploy,$(DEPLOY_BUILD_TARGETS))
   120 	($(CD) $(DEPLOY_TOPDIR)/make && \
   121 	  $(MAKE) $(DEPLOY_BUILD_TARGETS) $(DEPLOY_BUILD_ARGUMENTS))
   122 	@$(call MakeFinish,deploy,$(DEPLOY_BUILD_TARGETS))
   123 endif
   125 deploy-clobber::
   126 ifeq ($(BUILD_DEPLOY), true)
   127 	@$(call MakeStart,deploy,clobber)
   128 	($(CD) $(DEPLOY_TOPDIR)/make && \
   129 	  $(MAKE) clobber $(DEPLOY_BUILD_ARGUMENTS))
   130 	@$(call MakeFinish,deploy,clobber)
   131 endif 
   133 deploy-sanity::
   134 ifeq ($(BUILD_DEPLOY), true)
   135 	($(CD) $(DEPLOY_TOPDIR)/make && \
   136 	$(MAKE) sanity $(DEPLOY_BUILD_ARGUMENTS))
   137 endif
   139 .PHONY: deploy deploy-build deploy-clobber deploy-sanity

mercurial