make/deploy-rules.gmk

Fri, 03 Sep 2010 20:19:45 -0700

author
igor
date
Fri, 03 Sep 2010 20:19:45 -0700
changeset 230
1fa39984ba8c
parent 182
412712f77af6
child 233
810a461889ab
permissions
-rw-r--r--

6978977: Productivity: use ant for java part of build
Reviewed-by: mduigou, herrick, ohair, ngthomas

     1 #
     2 # Copyright (c) 2002, 2009, 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     ifneq ($(KERNEL), off)
    50       EC_TMP = $(shell if [ -d $(DEPLOY_TOPDIR)/make/lzma ] ; then \
    51         $(ECHO) true ; \
    52       else \
    53   $(ECHO) false ; \
    54       fi )
    55   ifeq ($(EC_TMP), true)
    56         DEPLOY_BUILD_TARGETS += extra-comp-all
    57       endif
    58     endif
    59   endif
    60 endif
    62 ifneq ($(JQS), off)
    63   ifeq ($(ARCH_DATA_MODEL), 32)
    64     ifeq ($(PLATFORM), windows)
    65       DEPLOY_BUILD_TARGETS += jqs-all
    66     endif
    67   endif
    68 endif
    70 ifneq ($(KERNEL), off)
    71   ifeq ($(ARCH_DATA_MODEL), 32)
    72     ifeq ($(PLATFORM), windows)
    73       # Only set up to use UPX compression if it is available
    74       UP_TMP = $(shell if [ -d $(DEPLOY_TOPDIR)/make/upx ] ; then \
    75         $(ECHO) true ; \
    76       else \
    77         $(ECHO) false ; \
    78       fi )
    79       ifeq ($(UP_TMP), true)
    80         DEPLOY_BUILD_TARGETS += cmd-comp-all
    81       endif
    82       DEPLOY_BUILD_TARGETS += kernel-all
    83     endif
    84   endif
    85 endif
    89 ifndef DEV_ONLY
    90   DEPLOY_BUILD_TARGETS += images
    91 else
    92   DEPLOY_BUILD_TARGETS += $(IMAGES_TARGET)
    93 endif
    95 DEPLOY_BUILD_ARGUMENTS = $(COMMON_BUILD_ARGUMENTS) \
    96 			ALT_OUTPUTDIR=$(DEPLOY_OUTPUTDIR) 
    98 ifeq ($(BUILD_LANGTOOLS), true)
    99    DEPLOY_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST)
   100 endif
   102 ifdef ALT_IMAGE_DIR
   103   DEPLOY_BUILD_ARGUMENTS += ALT_IMAGE_DIR=$(ALT_IMAGE_DIR)
   104 endif
   106 ifdef ALT_BUNDLE_DATE
   107   DEPLOY_BUILD_ARGUMENTS += ALT_BUNDLE_DATE=$(ALT_BUNDLE_DATE)
   108 endif
   110 ifdef ALT_JAVAWS_BOOTDIR
   111   DEPLOY_BUILD_ARGUMENTS += ALT_JAVAWS_BOOTDIR=$(ALT_JAVAWS_BOOTDIR)
   112 endif
   114 ifdef CERT
   115   DEPLOY_BUILD_ARGUMENTS += CERT=$(CERT)
   116 endif
   118 ifdef PKEY
   119   DEPLOY_BUILD_ARGUMENTS += PKEY=$(PKEY)
   120 endif
   122 deploy-build:
   123 ifeq ($(BUILD_DEPLOY), true)
   124 	@$(call MakeStart, deploy, $(DEPLOY_BUILD_TARGETS))
   125 	($(CD) $(DEPLOY_TOPDIR)/make && \
   126 	  $(MAKE) $(DEPLOY_BUILD_TARGETS) $(DEPLOY_BUILD_ARGUMENTS))
   127 	@$(call MakeFinish, deploy, $(DEPLOY_BUILD_TARGETS))
   128 endif
   130 deploy-clobber::
   131 ifeq ($(BUILD_DEPLOY), true)
   132 	@$(call MakeStart, deploy, clobber)
   133 	($(CD) $(DEPLOY_TOPDIR)/make && \
   134 	  $(MAKE) clobber $(DEPLOY_BUILD_ARGUMENTS))
   135 	@$(call MakeFinish, deploy, clobber)
   136 endif 
   138 deploy-sanity::
   139 ifeq ($(BUILD_DEPLOY), true)
   140 	($(CD) $(DEPLOY_TOPDIR)/make && \
   141 	$(MAKE) sanity $(DEPLOY_BUILD_ARGUMENTS))
   142 endif
   144 .PHONY: deploy deploy-build deploy-clobber deploy-sanity

mercurial