duke@2: # ohair@280: # Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. duke@2: # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. duke@2: # duke@2: # This code is free software; you can redistribute it and/or modify it duke@2: # under the terms of the GNU General Public License version 2 only, as ohair@182: # published by the Free Software Foundation. Oracle designates this duke@2: # particular file as subject to the "Classpath" exception as provided ohair@182: # by Oracle in the LICENSE file that accompanied this code. duke@2: # duke@2: # This code is distributed in the hope that it will be useful, but WITHOUT duke@2: # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or duke@2: # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License duke@2: # version 2 for more details (a copy is included in the LICENSE file that duke@2: # accompanied this code). duke@2: # duke@2: # You should have received a copy of the GNU General Public License version duke@2: # 2 along with this work; if not, write to the Free Software Foundation, duke@2: # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. duke@2: # ohair@182: # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA ohair@182: # or visit www.oracle.com if you need additional information or have any ohair@182: # questions. duke@2: # duke@2: duke@2: ################################################################ duke@2: # DEPLOY TARGETS duke@2: ################################################################ duke@2: duke@2: deploy: deploy-build herrick@94: herrick@94: DEPLOY = deploy herrick@94: duke@2: # put the generated bundles in their own place in OUTPUTDIR duke@2: DEPLOY_OUTPUTDIR = $(ABS_OUTPUTDIR) duke@2: duke@2: # NO_IMAGES may be set in conjunction with DEV_ONLY duke@2: ifdef NO_IMAGES duke@2: IMAGES_TARGET = duke@2: else duke@2: IMAGES_TARGET = images duke@2: endif duke@2: igor@230: DEPLOY_BUILD_TARGETS = sanity deploy herrick@94: # Only build 7-Zip LZMA file compression if it is available herrick@94: # Enable 7-Zip LZMA file (de)compression for Java Kernel if it is available herrick@94: ifeq ($(ARCH_DATA_MODEL), 32) herrick@94: ifeq ($(PLATFORM), windows) herrick@94: EC_TMP = $(shell if [ -d $(DEPLOY_TOPDIR)/make/lzma ] ; then \ herrick@94: $(ECHO) true ; \ herrick@94: else \ herrick@94: $(ECHO) false ; \ herrick@94: fi ) herrick@94: ifeq ($(EC_TMP), true) herrick@94: DEPLOY_BUILD_TARGETS += extra-comp-all herrick@94: endif herrick@94: endif herrick@94: endif herrick@94: herrick@94: ifneq ($(JQS), off) herrick@94: ifeq ($(ARCH_DATA_MODEL), 32) herrick@94: ifeq ($(PLATFORM), windows) herrick@94: DEPLOY_BUILD_TARGETS += jqs-all herrick@94: endif herrick@94: endif herrick@94: endif paulk@307: paulk@307: ifeq ($(ARCH_DATA_MODEL), 32) paulk@307: ifeq ($(PLATFORM), windows) paulk@307: # Only set up to use UPX compression if it is available paulk@307: UP_TMP = $(shell if [ -d $(DEPLOY_TOPDIR)/make/upx ] ; then \ paulk@307: $(ECHO) true ; \ paulk@307: else \ paulk@307: $(ECHO) false ; \ paulk@307: fi ) paulk@307: ifeq ($(UP_TMP), true) paulk@307: DEPLOY_BUILD_TARGETS += cmd-comp-all herrick@94: endif herrick@94: endif herrick@94: endif herrick@94: herrick@94: herrick@94: duke@2: ifndef DEV_ONLY duke@2: DEPLOY_BUILD_TARGETS += images duke@2: else duke@2: DEPLOY_BUILD_TARGETS += $(IMAGES_TARGET) duke@2: endif duke@2: duke@2: DEPLOY_BUILD_ARGUMENTS = $(COMMON_BUILD_ARGUMENTS) \ duke@2: ALT_OUTPUTDIR=$(DEPLOY_OUTPUTDIR) duke@2: duke@2: ifeq ($(BUILD_LANGTOOLS), true) duke@2: DEPLOY_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST) duke@2: endif duke@2: duke@2: ifdef ALT_IMAGE_DIR duke@2: DEPLOY_BUILD_ARGUMENTS += ALT_IMAGE_DIR=$(ALT_IMAGE_DIR) duke@2: endif duke@2: duke@2: ifdef ALT_BUNDLE_DATE duke@2: DEPLOY_BUILD_ARGUMENTS += ALT_BUNDLE_DATE=$(ALT_BUNDLE_DATE) duke@2: endif duke@2: duke@2: ifdef ALT_JAVAWS_BOOTDIR duke@2: DEPLOY_BUILD_ARGUMENTS += ALT_JAVAWS_BOOTDIR=$(ALT_JAVAWS_BOOTDIR) duke@2: endif duke@2: duke@2: ifdef CERT duke@2: DEPLOY_BUILD_ARGUMENTS += CERT=$(CERT) duke@2: endif duke@2: duke@2: ifdef PKEY duke@2: DEPLOY_BUILD_ARGUMENTS += PKEY=$(PKEY) duke@2: endif duke@2: duke@2: deploy-build: herrick@94: ifeq ($(BUILD_DEPLOY), true) ohrstrom@313: @$(call MakeStart,deploy,$(DEPLOY_BUILD_TARGETS)) duke@2: ($(CD) $(DEPLOY_TOPDIR)/make && \ ohair@128: $(MAKE) $(DEPLOY_BUILD_TARGETS) $(DEPLOY_BUILD_ARGUMENTS)) ohrstrom@313: @$(call MakeFinish,deploy,$(DEPLOY_BUILD_TARGETS)) duke@2: endif duke@2: duke@2: deploy-clobber:: herrick@94: ifeq ($(BUILD_DEPLOY), true) ohrstrom@313: @$(call MakeStart,deploy,clobber) duke@2: ($(CD) $(DEPLOY_TOPDIR)/make && \ ohair@128: $(MAKE) clobber $(DEPLOY_BUILD_ARGUMENTS)) ohrstrom@313: @$(call MakeFinish,deploy,clobber) duke@2: endif duke@2: duke@2: deploy-sanity:: herrick@94: ifeq ($(BUILD_DEPLOY), true) duke@2: ($(CD) $(DEPLOY_TOPDIR)/make && \ herrick@94: $(MAKE) sanity $(DEPLOY_BUILD_ARGUMENTS)) duke@2: endif duke@2: duke@2: .PHONY: deploy deploy-build deploy-clobber deploy-sanity duke@2: