deploy-rules.gmk revision 126
0N/A#
0N/A# Copyright 2002-2009 Sun Microsystems, Inc. All Rights Reserved.
0N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A#
0N/A# This code is free software; you can redistribute it and/or modify it
0N/A# under the terms of the GNU General Public License version 2 only, as
0N/A# published by the Free Software Foundation. Sun designates this
0N/A# particular file as subject to the "Classpath" exception as provided
0N/A# by Sun in the LICENSE file that accompanied this code.
0N/A#
0N/A# This code is distributed in the hope that it will be useful, but WITHOUT
0N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A# version 2 for more details (a copy is included in the LICENSE file that
0N/A# accompanied this code).
0N/A#
0N/A# You should have received a copy of the GNU General Public License version
0N/A# 2 along with this work; if not, write to the Free Software Foundation,
0N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A#
0N/A# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
0N/A# CA 95054 USA or visit www.sun.com if you need additional information or
0N/A# have any questions.
0N/A#
0N/A
0N/A################################################################
0N/A# DEPLOY TARGETS
0N/A################################################################
0N/A
0N/Adeploy: deploy-build
0N/A
0N/ADEPLOY = deploy
0N/A
0N/A# put the generated bundles in their own place in OUTPUTDIR
0N/ADEPLOY_OUTPUTDIR = $(ABS_OUTPUTDIR)
0N/A
0N/A# NO_IMAGES may be set in conjunction with DEV_ONLY
0N/Aifdef NO_IMAGES
0N/A IMAGES_TARGET =
0N/Aelse
0N/A IMAGES_TARGET = images
0N/Aendif
0N/A
0N/ADEPLOY_BUILD_TARGETS = sanity javaws-all plugin-all
0N/A# Only build 7-Zip LZMA file compression if it is available
0N/A# Enable 7-Zip LZMA file (de)compression for Java Kernel if it is available
0N/Aifeq ($(ARCH_DATA_MODEL), 32)
0N/A ifeq ($(PLATFORM), windows)
0N/A ifneq ($(KERNEL), off)
0N/A EC_TMP = $(shell if [ -d $(DEPLOY_TOPDIR)/make/lzma ] ; then \
0N/A $(ECHO) true ; \
0N/A else \
0N/A $(ECHO) false ; \
0N/A fi )
0N/A ifeq ($(EC_TMP), true)
0N/A DEPLOY_BUILD_TARGETS += extra-comp-all
0N/A endif
0N/A endif
0N/A endif
0N/Aendif
0N/A
0N/Aifneq ($(JQS), off)
0N/A ifeq ($(ARCH_DATA_MODEL), 32)
0N/A ifeq ($(PLATFORM), windows)
0N/A DEPLOY_BUILD_TARGETS += jqs-all
0N/A endif
0N/A endif
0N/Aendif
0N/A
0N/Aifneq ($(KERNEL), off)
0N/A ifeq ($(ARCH_DATA_MODEL), 32)
0N/A ifeq ($(PLATFORM), windows)
0N/A # Only set up to use UPX compression if it is available
0N/A UP_TMP = $(shell if [ -d $(DEPLOY_TOPDIR)/make/upx ] ; then \
0N/A $(ECHO) true ; \
0N/A else \
0N/A $(ECHO) false ; \
0N/A fi )
0N/A ifeq ($(UP_TMP), true)
0N/A DEPLOY_BUILD_TARGETS += cmd-comp-all
0N/A endif
0N/A DEPLOY_BUILD_TARGETS += kernel-all
0N/A endif
0N/A endif
0N/Aendif
0N/A
0N/A
0N/A
0N/Aifndef DEV_ONLY
0N/A DEPLOY_BUILD_TARGETS += images
0N/Aelse
0N/A DEPLOY_BUILD_TARGETS += $(IMAGES_TARGET)
0N/Aendif
0N/A
0N/ADEPLOY_BUILD_ARGUMENTS = $(COMMON_BUILD_ARGUMENTS) \
0N/A ALT_OUTPUTDIR=$(DEPLOY_OUTPUTDIR)
0N/A
0N/Aifeq ($(BUILD_LANGTOOLS), true)
0N/A DEPLOY_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST)
0N/Aendif
0N/A
0N/Aifdef ALT_IMAGE_DIR
0N/A DEPLOY_BUILD_ARGUMENTS += ALT_IMAGE_DIR=$(ALT_IMAGE_DIR)
0N/Aendif
0N/A
0N/Aifdef ALT_BUNDLE_DATE
0N/A DEPLOY_BUILD_ARGUMENTS += ALT_BUNDLE_DATE=$(ALT_BUNDLE_DATE)
endif
ifdef ALT_JAVAWS_BOOTDIR
DEPLOY_BUILD_ARGUMENTS += ALT_JAVAWS_BOOTDIR=$(ALT_JAVAWS_BOOTDIR)
endif
ifdef CERT
DEPLOY_BUILD_ARGUMENTS += CERT=$(CERT)
endif
ifdef PKEY
DEPLOY_BUILD_ARGUMENTS += PKEY=$(PKEY)
endif
deploy-build:
ifeq ($(BUILD_DEPLOY), true)
@$(call MakeStart, deploy, $(DEPLOY_BUILD_TARGETS))
($(CD) $(DEPLOY_TOPDIR)/make && \
$(MAKE) $(DEPLOY_BUILD_TARGETS) $(DEPLOY_BUILD_ARGUMENTS))
@$(call MakeFinish, deploy, $(DEPLOY_BUILD_TARGETS))
endif
deploy-clobber::
ifeq ($(BUILD_DEPLOY), true)
@$(call MakeStart, deploy, clobber)
($(CD) $(DEPLOY_TOPDIR)/make && \
$(MAKE) clobber $(DEPLOY_BUILD_ARGUMENTS))
@$(call MakeFinish, deploy, clobber)
endif
deploy-sanity::
ifeq ($(BUILD_DEPLOY), true)
($(CD) $(DEPLOY_TOPDIR)/make && \
$(MAKE) sanity $(DEPLOY_BUILD_ARGUMENTS))
endif
.PHONY: deploy deploy-build deploy-clobber deploy-sanity