make/deploy-rules.gmk
author duke
Wed, 05 Jul 2017 17:28:18 +0200
changeset 7229 76ffa3eac0d7
parent 7220 327ac84f05b3
child 7654 a8d5f59bbae6
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
     1
#
5499
eb0b3e373167 6943119: Rebrand source copyright notices
ohair
parents: 3789
diff changeset
     2
# Copyright (c) 2002, 2009, Oracle and/or its affiliates. All rights reserved.
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
fd16c54261b3 Initial load
duke
parents:
diff changeset
     4
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
fd16c54261b3 Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
5499
eb0b3e373167 6943119: Rebrand source copyright notices
ohair
parents: 3789
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
5499
eb0b3e373167 6943119: Rebrand source copyright notices
ohair
parents: 3789
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
    10
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
fd16c54261b3 Initial load
duke
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
fd16c54261b3 Initial load
duke
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
fd16c54261b3 Initial load
duke
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
fd16c54261b3 Initial load
duke
parents:
diff changeset
    15
# accompanied this code).
fd16c54261b3 Initial load
duke
parents:
diff changeset
    16
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
fd16c54261b3 Initial load
duke
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
fd16c54261b3 Initial load
duke
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
fd16c54261b3 Initial load
duke
parents:
diff changeset
    20
#
5499
eb0b3e373167 6943119: Rebrand source copyright notices
ohair
parents: 3789
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
eb0b3e373167 6943119: Rebrand source copyright notices
ohair
parents: 3789
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
eb0b3e373167 6943119: Rebrand source copyright notices
ohair
parents: 3789
diff changeset
    23
# questions.
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
    24
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
    25
fd16c54261b3 Initial load
duke
parents:
diff changeset
    26
################################################################
fd16c54261b3 Initial load
duke
parents:
diff changeset
    27
# DEPLOY TARGETS
fd16c54261b3 Initial load
duke
parents:
diff changeset
    28
################################################################
fd16c54261b3 Initial load
duke
parents:
diff changeset
    29
fd16c54261b3 Initial load
duke
parents:
diff changeset
    30
deploy:  deploy-build
3032
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    31
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    32
DEPLOY = deploy
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    33
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
    34
# put the generated bundles in their own place in OUTPUTDIR
fd16c54261b3 Initial load
duke
parents:
diff changeset
    35
DEPLOY_OUTPUTDIR = $(ABS_OUTPUTDIR)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    36
fd16c54261b3 Initial load
duke
parents:
diff changeset
    37
# NO_IMAGES may be set in conjunction with DEV_ONLY
fd16c54261b3 Initial load
duke
parents:
diff changeset
    38
ifdef NO_IMAGES
fd16c54261b3 Initial load
duke
parents:
diff changeset
    39
  IMAGES_TARGET =
fd16c54261b3 Initial load
duke
parents:
diff changeset
    40
else
fd16c54261b3 Initial load
duke
parents:
diff changeset
    41
  IMAGES_TARGET = images
fd16c54261b3 Initial load
duke
parents:
diff changeset
    42
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    43
6729
6972f2f93eba 6978977: Productivity: use ant for java part of build
igor
parents: 5499
diff changeset
    44
DEPLOY_BUILD_TARGETS = sanity deploy 
3032
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    45
# Only build 7-Zip LZMA file compression if it is available
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    46
# Enable 7-Zip LZMA file (de)compression for Java Kernel if it is available
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    47
ifeq ($(ARCH_DATA_MODEL), 32)
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    48
  ifeq ($(PLATFORM), windows)
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    49
      EC_TMP = $(shell if [ -d $(DEPLOY_TOPDIR)/make/lzma ] ; then \
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    50
        $(ECHO) true ; \
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    51
      else \
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    52
  $(ECHO) false ; \
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    53
      fi )
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    54
  ifeq ($(EC_TMP), true)
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    55
        DEPLOY_BUILD_TARGETS += extra-comp-all
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    56
      endif
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    57
  endif
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    58
endif
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    59
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    60
ifneq ($(JQS), off)
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    61
  ifeq ($(ARCH_DATA_MODEL), 32)
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    62
    ifeq ($(PLATFORM), windows)
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    63
      DEPLOY_BUILD_TARGETS += jqs-all
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    64
    endif
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    65
  endif
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    66
endif
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    67
  
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    68
ifneq ($(KERNEL), off)
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    69
  ifeq ($(ARCH_DATA_MODEL), 32)
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    70
    ifeq ($(PLATFORM), windows)
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    71
      # Only set up to use UPX compression if it is available
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    72
      UP_TMP = $(shell if [ -d $(DEPLOY_TOPDIR)/make/upx ] ; then \
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    73
        $(ECHO) true ; \
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    74
      else \
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    75
        $(ECHO) false ; \
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    76
      fi )
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    77
      ifeq ($(UP_TMP), true)
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    78
        DEPLOY_BUILD_TARGETS += cmd-comp-all
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    79
      endif
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    80
    endif
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    81
  endif
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    82
endif
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    83
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    84
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
    85
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
    86
ifndef DEV_ONLY
fd16c54261b3 Initial load
duke
parents:
diff changeset
    87
  DEPLOY_BUILD_TARGETS += images
fd16c54261b3 Initial load
duke
parents:
diff changeset
    88
else
fd16c54261b3 Initial load
duke
parents:
diff changeset
    89
  DEPLOY_BUILD_TARGETS += $(IMAGES_TARGET)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    90
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    91
fd16c54261b3 Initial load
duke
parents:
diff changeset
    92
DEPLOY_BUILD_ARGUMENTS = $(COMMON_BUILD_ARGUMENTS) \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    93
			ALT_OUTPUTDIR=$(DEPLOY_OUTPUTDIR) 
fd16c54261b3 Initial load
duke
parents:
diff changeset
    94
fd16c54261b3 Initial load
duke
parents:
diff changeset
    95
ifeq ($(BUILD_LANGTOOLS), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    96
   DEPLOY_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    97
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    98
fd16c54261b3 Initial load
duke
parents:
diff changeset
    99
ifdef ALT_IMAGE_DIR
fd16c54261b3 Initial load
duke
parents:
diff changeset
   100
  DEPLOY_BUILD_ARGUMENTS += ALT_IMAGE_DIR=$(ALT_IMAGE_DIR)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   101
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   102
fd16c54261b3 Initial load
duke
parents:
diff changeset
   103
ifdef ALT_BUNDLE_DATE
fd16c54261b3 Initial load
duke
parents:
diff changeset
   104
  DEPLOY_BUILD_ARGUMENTS += ALT_BUNDLE_DATE=$(ALT_BUNDLE_DATE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   105
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   106
fd16c54261b3 Initial load
duke
parents:
diff changeset
   107
ifdef ALT_JAVAWS_BOOTDIR
fd16c54261b3 Initial load
duke
parents:
diff changeset
   108
  DEPLOY_BUILD_ARGUMENTS += ALT_JAVAWS_BOOTDIR=$(ALT_JAVAWS_BOOTDIR)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   109
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   110
fd16c54261b3 Initial load
duke
parents:
diff changeset
   111
ifdef CERT
fd16c54261b3 Initial load
duke
parents:
diff changeset
   112
  DEPLOY_BUILD_ARGUMENTS += CERT=$(CERT)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   113
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   114
fd16c54261b3 Initial load
duke
parents:
diff changeset
   115
ifdef PKEY
fd16c54261b3 Initial load
duke
parents:
diff changeset
   116
  DEPLOY_BUILD_ARGUMENTS += PKEY=$(PKEY)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   117
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   118
fd16c54261b3 Initial load
duke
parents:
diff changeset
   119
deploy-build:
3032
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
   120
ifeq ($(BUILD_DEPLOY), true)
3789
2040d99c6f14 6855174: Improve log output when builds transition from one workspace to another
ohair
parents: 3259
diff changeset
   121
	@$(call MakeStart, deploy, $(DEPLOY_BUILD_TARGETS))
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   122
	($(CD) $(DEPLOY_TOPDIR)/make && \
3789
2040d99c6f14 6855174: Improve log output when builds transition from one workspace to another
ohair
parents: 3259
diff changeset
   123
	  $(MAKE) $(DEPLOY_BUILD_TARGETS) $(DEPLOY_BUILD_ARGUMENTS))
2040d99c6f14 6855174: Improve log output when builds transition from one workspace to another
ohair
parents: 3259
diff changeset
   124
	@$(call MakeFinish, deploy, $(DEPLOY_BUILD_TARGETS))
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   125
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   126
fd16c54261b3 Initial load
duke
parents:
diff changeset
   127
deploy-clobber::
3032
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
   128
ifeq ($(BUILD_DEPLOY), true)
3789
2040d99c6f14 6855174: Improve log output when builds transition from one workspace to another
ohair
parents: 3259
diff changeset
   129
	@$(call MakeStart, deploy, clobber)
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   130
	($(CD) $(DEPLOY_TOPDIR)/make && \
3789
2040d99c6f14 6855174: Improve log output when builds transition from one workspace to another
ohair
parents: 3259
diff changeset
   131
	  $(MAKE) clobber $(DEPLOY_BUILD_ARGUMENTS))
2040d99c6f14 6855174: Improve log output when builds transition from one workspace to another
ohair
parents: 3259
diff changeset
   132
	@$(call MakeFinish, deploy, clobber)
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   133
endif 
fd16c54261b3 Initial load
duke
parents:
diff changeset
   134
fd16c54261b3 Initial load
duke
parents:
diff changeset
   135
deploy-sanity::
3032
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
   136
ifeq ($(BUILD_DEPLOY), true)
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   137
	($(CD) $(DEPLOY_TOPDIR)/make && \
3032
ffadbf4b17f6 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 0
diff changeset
   138
	$(MAKE) sanity $(DEPLOY_BUILD_ARGUMENTS))
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   139
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   140
fd16c54261b3 Initial load
duke
parents:
diff changeset
   141
.PHONY: deploy deploy-build deploy-clobber deploy-sanity
fd16c54261b3 Initial load
duke
parents:
diff changeset
   142