make/deploy-rules.gmk

Wed, 06 Aug 2008 14:57:13 -0700

author
ohair
date
Wed, 06 Aug 2008 14:57:13 -0700
changeset 29
55b2666e52e1
parent 2
cfeea66a3fa8
child 94
c50469cf63cd
permissions
-rw-r--r--

6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
Reviewed-by: tbell

     1 #
     2 # Copyright 2002-2007 Sun Microsystems, Inc.  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.  Sun designates this
     8 # particular file as subject to the "Classpath" exception as provided
     9 # by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    22 # CA 95054 USA or visit www.sun.com if you need additional information or
    23 # have any questions.
    24 #
    26 ################################################################
    27 # DEPLOY TARGETS
    28 ################################################################
    30 ifeq ($(ARCH_DATA_MODEL), 32)
    31 deploy:  deploy-build
    32 else
    33 deploy:
    34 endif
    36 DEPLOY = deploy
    38 # put the generated bundles in their own place in OUTPUTDIR
    39 DEPLOY_OUTPUTDIR = $(ABS_OUTPUTDIR)
    41 # NO_IMAGES may be set in conjunction with DEV_ONLY
    42 ifdef NO_IMAGES
    43   IMAGES_TARGET =
    44 else
    45   IMAGES_TARGET = images
    46 endif
    48 DEPLOY_BUILD_TARGETS = sanity javaws-all plugin-all
    49 ifndef DEV_ONLY
    50   DEPLOY_BUILD_TARGETS += images
    51 else
    52   DEPLOY_BUILD_TARGETS += $(IMAGES_TARGET)
    53 endif
    55 DEPLOY_BUILD_ARGUMENTS = $(COMMON_BUILD_ARGUMENTS) \
    56 			ALT_OUTPUTDIR=$(DEPLOY_OUTPUTDIR) 
    58 ifeq ($(BUILD_LANGTOOLS), true)
    59    DEPLOY_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST)
    60 endif
    62 ifdef ALT_IMAGE_DIR
    63   DEPLOY_BUILD_ARGUMENTS += ALT_IMAGE_DIR=$(ALT_IMAGE_DIR)
    64 endif
    66 ifdef ALT_BUNDLE_DATE
    67   DEPLOY_BUILD_ARGUMENTS += ALT_BUNDLE_DATE=$(ALT_BUNDLE_DATE)
    68 endif
    70 ifdef ALT_JAVAWS_BOOTDIR
    71   DEPLOY_BUILD_ARGUMENTS += ALT_JAVAWS_BOOTDIR=$(ALT_JAVAWS_BOOTDIR)
    72 endif
    74 ifdef CERT
    75   DEPLOY_BUILD_ARGUMENTS += CERT=$(CERT)
    76 endif
    78 ifdef PKEY
    79   DEPLOY_BUILD_ARGUMENTS += PKEY=$(PKEY)
    80 endif
    82 deploy-build:
    83 ifeq ($(ARCH_DATA_MODEL), 32)
    84   ifeq ($(BUILD_DEPLOY), true)
    85 	($(CD) $(DEPLOY_TOPDIR)/make && \
    86 	  $(MAKE) $(DEPLOY_BUILD_TARGETS) $(DEPLOY_BUILD_ARGUMENTS))
    87   endif
    88 endif
    90 deploy-clobber::
    91 ifeq ($(ARCH_DATA_MODEL), 32)
    92   ifeq ($(BUILD_DEPLOY), true)
    93 	($(CD) $(DEPLOY_TOPDIR)/make && \
    94 	  $(MAKE) clobber $(DEPLOY_BUILD_ARGUMENTS))
    95   endif 
    96 endif 
    98 deploy-sanity::
    99 ifeq ($(ARCH_DATA_MODEL), 32)
   100   ifeq ($(BUILD_DEPLOY), true)
   101 	($(CD) $(DEPLOY_TOPDIR)/make && \
   102 	  $(MAKE) sanity $(DEPLOY_BUILD_ARGUMENTS))
   103   endif
   104 endif
   106 .PHONY: deploy deploy-build deploy-clobber deploy-sanity

mercurial