make/deploy-rules.gmk

changeset 2
cfeea66a3fa8
child 94
c50469cf63cd
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/make/deploy-rules.gmk	Sat Dec 01 00:00:00 2007 +0000
     1.3 @@ -0,0 +1,107 @@
     1.4 +#
     1.5 +# Copyright 2002-2007 Sun Microsystems, Inc.  All Rights Reserved.
     1.6 +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.7 +#
     1.8 +# This code is free software; you can redistribute it and/or modify it
     1.9 +# under the terms of the GNU General Public License version 2 only, as
    1.10 +# published by the Free Software Foundation.  Sun designates this
    1.11 +# particular file as subject to the "Classpath" exception as provided
    1.12 +# by Sun in the LICENSE file that accompanied this code.
    1.13 +#
    1.14 +# This code is distributed in the hope that it will be useful, but WITHOUT
    1.15 +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    1.16 +# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    1.17 +# version 2 for more details (a copy is included in the LICENSE file that
    1.18 +# accompanied this code).
    1.19 +#
    1.20 +# You should have received a copy of the GNU General Public License version
    1.21 +# 2 along with this work; if not, write to the Free Software Foundation,
    1.22 +# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1.23 +#
    1.24 +# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    1.25 +# CA 95054 USA or visit www.sun.com if you need additional information or
    1.26 +# have any questions.
    1.27 +#
    1.28 +
    1.29 +################################################################
    1.30 +# DEPLOY TARGETS
    1.31 +################################################################
    1.32 +
    1.33 +ifeq ($(ARCH_DATA_MODEL), 32)
    1.34 +deploy:  deploy-build
    1.35 +else
    1.36 +deploy:
    1.37 +endif
    1.38 +
    1.39 +DEPLOY = deploy
    1.40 +
    1.41 +# put the generated bundles in their own place in OUTPUTDIR
    1.42 +DEPLOY_OUTPUTDIR = $(ABS_OUTPUTDIR)
    1.43 +
    1.44 +# NO_IMAGES may be set in conjunction with DEV_ONLY
    1.45 +ifdef NO_IMAGES
    1.46 +  IMAGES_TARGET =
    1.47 +else
    1.48 +  IMAGES_TARGET = images
    1.49 +endif
    1.50 +
    1.51 +DEPLOY_BUILD_TARGETS = sanity javaws-all plugin-all
    1.52 +ifndef DEV_ONLY
    1.53 +  DEPLOY_BUILD_TARGETS += images
    1.54 +else
    1.55 +  DEPLOY_BUILD_TARGETS += $(IMAGES_TARGET)
    1.56 +endif
    1.57 +
    1.58 +DEPLOY_BUILD_ARGUMENTS = $(COMMON_BUILD_ARGUMENTS) \
    1.59 +			ALT_OUTPUTDIR=$(DEPLOY_OUTPUTDIR) 
    1.60 +
    1.61 +ifeq ($(BUILD_LANGTOOLS), true)
    1.62 +   DEPLOY_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST)
    1.63 +endif
    1.64 +
    1.65 +ifdef ALT_IMAGE_DIR
    1.66 +  DEPLOY_BUILD_ARGUMENTS += ALT_IMAGE_DIR=$(ALT_IMAGE_DIR)
    1.67 +endif
    1.68 +
    1.69 +ifdef ALT_BUNDLE_DATE
    1.70 +  DEPLOY_BUILD_ARGUMENTS += ALT_BUNDLE_DATE=$(ALT_BUNDLE_DATE)
    1.71 +endif
    1.72 +
    1.73 +ifdef ALT_JAVAWS_BOOTDIR
    1.74 +  DEPLOY_BUILD_ARGUMENTS += ALT_JAVAWS_BOOTDIR=$(ALT_JAVAWS_BOOTDIR)
    1.75 +endif
    1.76 +
    1.77 +ifdef CERT
    1.78 +  DEPLOY_BUILD_ARGUMENTS += CERT=$(CERT)
    1.79 +endif
    1.80 +
    1.81 +ifdef PKEY
    1.82 +  DEPLOY_BUILD_ARGUMENTS += PKEY=$(PKEY)
    1.83 +endif
    1.84 +
    1.85 +deploy-build:
    1.86 +ifeq ($(ARCH_DATA_MODEL), 32)
    1.87 +  ifeq ($(BUILD_DEPLOY), true)
    1.88 +	($(CD) $(DEPLOY_TOPDIR)/make && \
    1.89 +	  $(MAKE) $(DEPLOY_BUILD_TARGETS) $(DEPLOY_BUILD_ARGUMENTS))
    1.90 +  endif
    1.91 +endif
    1.92 +
    1.93 +deploy-clobber::
    1.94 +ifeq ($(ARCH_DATA_MODEL), 32)
    1.95 +  ifeq ($(BUILD_DEPLOY), true)
    1.96 +	($(CD) $(DEPLOY_TOPDIR)/make && \
    1.97 +	  $(MAKE) clobber $(DEPLOY_BUILD_ARGUMENTS))
    1.98 +  endif 
    1.99 +endif 
   1.100 +
   1.101 +deploy-sanity::
   1.102 +ifeq ($(ARCH_DATA_MODEL), 32)
   1.103 +  ifeq ($(BUILD_DEPLOY), true)
   1.104 +	($(CD) $(DEPLOY_TOPDIR)/make && \
   1.105 +	  $(MAKE) sanity $(DEPLOY_BUILD_ARGUMENTS))
   1.106 +  endif
   1.107 +endif
   1.108 +
   1.109 +.PHONY: deploy deploy-build deploy-clobber deploy-sanity
   1.110 +

mercurial