jaxws/make/Makefile
author lana
Sat, 05 Nov 2011 14:27:47 -0700
changeset 10866 0c897d7dde86
parent 9063 937a014028a6
child 11073 928d27710dcb
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8
474761f14bca Initial load
duke
parents:
diff changeset
     1
#
9063
937a014028a6 7033660: Update copyright year to 2011 on any files changed in 2011
ohair
parents: 8606
diff changeset
     2
# Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
8
474761f14bca Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
474761f14bca Initial load
duke
parents:
diff changeset
     4
#
474761f14bca Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
474761f14bca Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
5516
d5307370d017 6943119: Rebrand source copyright notices
ohair
parents: 4298
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
8
474761f14bca Initial load
duke
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
5516
d5307370d017 6943119: Rebrand source copyright notices
ohair
parents: 4298
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
8
474761f14bca Initial load
duke
parents:
diff changeset
    10
#
474761f14bca Initial load
duke
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
474761f14bca Initial load
duke
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
474761f14bca Initial load
duke
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
474761f14bca Initial load
duke
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
474761f14bca Initial load
duke
parents:
diff changeset
    15
# accompanied this code).
474761f14bca Initial load
duke
parents:
diff changeset
    16
#
474761f14bca Initial load
duke
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
474761f14bca Initial load
duke
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
474761f14bca Initial load
duke
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
474761f14bca Initial load
duke
parents:
diff changeset
    20
#
5516
d5307370d017 6943119: Rebrand source copyright notices
ohair
parents: 4298
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
d5307370d017 6943119: Rebrand source copyright notices
ohair
parents: 4298
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
d5307370d017 6943119: Rebrand source copyright notices
ohair
parents: 4298
diff changeset
    23
# questions.
8
474761f14bca Initial load
duke
parents:
diff changeset
    24
#
474761f14bca Initial load
duke
parents:
diff changeset
    25
3885
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
    26
# Makefile wrapper around Ant build.xml file
8
474761f14bca Initial load
duke
parents:
diff changeset
    27
474761f14bca Initial load
duke
parents:
diff changeset
    28
#
474761f14bca Initial load
duke
parents:
diff changeset
    29
# On Solaris, the 'make' utility from Sun will not work with these makefiles.
474761f14bca Initial load
duke
parents:
diff changeset
    30
#    This little rule is only understood by Sun's make, and is harmless
474761f14bca Initial load
duke
parents:
diff changeset
    31
#    when seen by the GNU make tool. If using Sun's make, this causes the
474761f14bca Initial load
duke
parents:
diff changeset
    32
#    make command to fail.
474761f14bca Initial load
duke
parents:
diff changeset
    33
#
474761f14bca Initial load
duke
parents:
diff changeset
    34
SUN_MAKE_TEST:sh = @echo "ERROR: PLEASE USE GNU VERSION OF MAKE"; exit 33
474761f14bca Initial load
duke
parents:
diff changeset
    35
474761f14bca Initial load
duke
parents:
diff changeset
    36
ifdef QUIET
474761f14bca Initial load
duke
parents:
diff changeset
    37
  ANT_OPTIONS += -quiet
474761f14bca Initial load
duke
parents:
diff changeset
    38
endif
474761f14bca Initial load
duke
parents:
diff changeset
    39
474761f14bca Initial load
duke
parents:
diff changeset
    40
ifdef VERBOSE
474761f14bca Initial load
duke
parents:
diff changeset
    41
  ANT_OPTIONS += -verbose
474761f14bca Initial load
duke
parents:
diff changeset
    42
endif
474761f14bca Initial load
duke
parents:
diff changeset
    43
3885
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
    44
ifeq ($(VARIANT), OPT)
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
    45
  ifneq ($(DEBUG_CLASSFILES), true)
8
474761f14bca Initial load
duke
parents:
diff changeset
    46
    ANT_OPTIONS += -Djavac.debug=false
474761f14bca Initial load
duke
parents:
diff changeset
    47
  endif
474761f14bca Initial load
duke
parents:
diff changeset
    48
endif
474761f14bca Initial load
duke
parents:
diff changeset
    49
157
3b2c9223cdf5 6652588: Fix broken JPRT makefile target, no bundle saved
ohair
parents: 8
diff changeset
    50
# Note: jdk/make/common/Defs.gmk uses LANGUAGE_VERSION (-source NN)
8
474761f14bca Initial load
duke
parents:
diff changeset
    51
# and the somewhat misnamed CLASS_VERSION (-target NN)
474761f14bca Initial load
duke
parents:
diff changeset
    52
ifdef TARGET_CLASS_VERSION
474761f14bca Initial load
duke
parents:
diff changeset
    53
  ANT_OPTIONS += -Djavac.target=$(TARGET_CLASS_VERSION)
474761f14bca Initial load
duke
parents:
diff changeset
    54
else
474761f14bca Initial load
duke
parents:
diff changeset
    55
  ifdef JAVAC_TARGET_ARG
474761f14bca Initial load
duke
parents:
diff changeset
    56
    ANT_OPTIONS += -Djavac.target=$(JAVAC_TARGET_ARG)
474761f14bca Initial load
duke
parents:
diff changeset
    57
  endif
474761f14bca Initial load
duke
parents:
diff changeset
    58
endif
474761f14bca Initial load
duke
parents:
diff changeset
    59
2971
170fb87a3dd1 6827026: Change javac source and target default to 7
jjg
parents: 2678
diff changeset
    60
ifdef SOURCE_LANGUAGE_VERSION
170fb87a3dd1 6827026: Change javac source and target default to 7
jjg
parents: 2678
diff changeset
    61
  ANT_OPTIONS += -Djavac.source=$(SOURCE_LANGUAGE_VERSION)
170fb87a3dd1 6827026: Change javac source and target default to 7
jjg
parents: 2678
diff changeset
    62
else
170fb87a3dd1 6827026: Change javac source and target default to 7
jjg
parents: 2678
diff changeset
    63
  ifdef JAVAC_SOURCE_ARG 
170fb87a3dd1 6827026: Change javac source and target default to 7
jjg
parents: 2678
diff changeset
    64
    ANT_OPTIONS += -Djavac.source=$(JAVAC_SOURCE_ARG)
170fb87a3dd1 6827026: Change javac source and target default to 7
jjg
parents: 2678
diff changeset
    65
  endif
170fb87a3dd1 6827026: Change javac source and target default to 7
jjg
parents: 2678
diff changeset
    66
endif 
170fb87a3dd1 6827026: Change javac source and target default to 7
jjg
parents: 2678
diff changeset
    67
5836
0ca88d5cdd40 6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents: 5516
diff changeset
    68
# If downloads are allowed
0ca88d5cdd40 6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents: 5516
diff changeset
    69
ifeq ($(ALLOW_DOWNLOADS),true)
0ca88d5cdd40 6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents: 5516
diff changeset
    70
  ANT_OPTIONS += -Dallow.downloads=true
0ca88d5cdd40 6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents: 5516
diff changeset
    71
endif
0ca88d5cdd40 6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents: 5516
diff changeset
    72
3885
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
    73
# Figure out the platform we are using
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
    74
_SYSTEM_UNAME := $(shell uname)
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
    75
_PLATFORM_KIND = unix
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
    76
ifeq ($(_SYSTEM_UNAME), Windows_NT)
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
    77
  _PLATFORM_KIND = windows
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
    78
endif
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
    79
ifneq (,$(findstring CYGWIN,$(_SYSTEM_UNAME)))
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
    80
  _PLATFORM_KIND = windows
8
474761f14bca Initial load
duke
parents:
diff changeset
    81
endif
474761f14bca Initial load
duke
parents:
diff changeset
    82
3885
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
    83
# Where is /java in case we need it
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
    84
ifdef ALT_SLASH_JAVA
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
    85
  _SLASHJAVA = $(ALT_SLASH_JAVA)
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
    86
else
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
    87
  ifeq ($(_PLATFORM_KIND), windows)
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
    88
    _SLASHJAVA=J:/
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
    89
  else
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
    90
    _SLASHJAVA=/java
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
    91
  endif
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
    92
endif
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
    93
4138
6f57118cd450 6898251: Add ALT_DROPS_DIR feature to jaxp/jaxws
andrew
parents: 4137
diff changeset
    94
# Do we have the drops already downloaded?
6f57118cd450 6898251: Add ALT_DROPS_DIR feature to jaxp/jaxws
andrew
parents: 4137
diff changeset
    95
# Check ALT_DROPS_DIR for a full path first,
6f57118cd450 6898251: Add ALT_DROPS_DIR feature to jaxp/jaxws
andrew
parents: 4137
diff changeset
    96
# before trying to use the devtools path,
6f57118cd450 6898251: Add ALT_DROPS_DIR feature to jaxp/jaxws
andrew
parents: 4137
diff changeset
    97
# either via ALT_JDK_DEVTOOLS_DIR or /java/devtools.
6f57118cd450 6898251: Add ALT_DROPS_DIR feature to jaxp/jaxws
andrew
parents: 4137
diff changeset
    98
ifdef ALT_DROPS_DIR
6f57118cd450 6898251: Add ALT_DROPS_DIR feature to jaxp/jaxws
andrew
parents: 4137
diff changeset
    99
  DROPS_DIR = $(ALT_DROPS_DIR)
3885
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   100
else
4138
6f57118cd450 6898251: Add ALT_DROPS_DIR feature to jaxp/jaxws
andrew
parents: 4137
diff changeset
   101
  ifdef ALT_JDK_DEVTOOLS_DIR
6f57118cd450 6898251: Add ALT_DROPS_DIR feature to jaxp/jaxws
andrew
parents: 4137
diff changeset
   102
    DROPS_DIR = $(ALT_JDK_DEVTOOLS_DIR)/share/jdk7-drops
6f57118cd450 6898251: Add ALT_DROPS_DIR feature to jaxp/jaxws
andrew
parents: 4137
diff changeset
   103
  else
6f57118cd450 6898251: Add ALT_DROPS_DIR feature to jaxp/jaxws
andrew
parents: 4137
diff changeset
   104
    DROPS_DIR = $(_SLASHJAVA)/devtools/share/jdk7-drops
6f57118cd450 6898251: Add ALT_DROPS_DIR feature to jaxp/jaxws
andrew
parents: 4137
diff changeset
   105
  endif
3885
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   106
endif
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   107
4138
6f57118cd450 6898251: Add ALT_DROPS_DIR feature to jaxp/jaxws
andrew
parents: 4137
diff changeset
   108
# Add in path to drops already downloaded
6f57118cd450 6898251: Add ALT_DROPS_DIR feature to jaxp/jaxws
andrew
parents: 4137
diff changeset
   109
ANT_OPTIONS += -Ddrops.dir=$(DROPS_DIR)
3885
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   110
8
474761f14bca Initial load
duke
parents:
diff changeset
   111
ifdef ALT_OUTPUTDIR
474761f14bca Initial load
duke
parents:
diff changeset
   112
  OUTPUTDIR = $(ALT_OUTPUTDIR)
3885
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   113
  ANT_OPTIONS += -Doutput.dir=$(ALT_OUTPUTDIR)
8
474761f14bca Initial load
duke
parents:
diff changeset
   114
else
474761f14bca Initial load
duke
parents:
diff changeset
   115
  OUTPUTDIR = ..
474761f14bca Initial load
duke
parents:
diff changeset
   116
endif
474761f14bca Initial load
duke
parents:
diff changeset
   117
474761f14bca Initial load
duke
parents:
diff changeset
   118
ifdef ALT_LANGTOOLS_DIST
3885
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   119
  ifdef ALT_BOOTDIR
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   120
    ANT_JAVA_HOME = JAVA_HOME=$(ALT_BOOTDIR)
4298
05940e71b36b 6900341: jaxp/jaxws ant scripts using ant runtime in classpath, needs to be explicit
ohair
parents: 4138
diff changeset
   121
    ANT_OPTIONS += -Djdk.home=$(ALT_BOOTDIR)
3885
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   122
  endif
8
474761f14bca Initial load
duke
parents:
diff changeset
   123
  ANT_OPTIONS += -Dbootstrap.dir=$(ALT_LANGTOOLS_DIST)/bootstrap
3885
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   124
else
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   125
  ifdef ALT_JDK_IMPORT_PATH
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   126
    ANT_JAVA_HOME = JAVA_HOME=$(ALT_JDK_IMPORT_PATH)
4298
05940e71b36b 6900341: jaxp/jaxws ant scripts using ant runtime in classpath, needs to be explicit
ohair
parents: 4138
diff changeset
   127
    ANT_OPTIONS += -Djdk.home=$(ALT_JDK_IMPORT_PATH)
3885
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   128
  endif
8
474761f14bca Initial load
duke
parents:
diff changeset
   129
endif
474761f14bca Initial load
duke
parents:
diff changeset
   130
474761f14bca Initial load
duke
parents:
diff changeset
   131
ifdef ANT_HOME
474761f14bca Initial load
duke
parents:
diff changeset
   132
  ANT = $(ANT_HOME)/bin/ant
474761f14bca Initial load
duke
parents:
diff changeset
   133
  ifneq ($(shell test -x $(ANT); echo $$?), 0)
474761f14bca Initial load
duke
parents:
diff changeset
   134
    $(error "$(ANT) not found; please update ANT_HOME")
474761f14bca Initial load
duke
parents:
diff changeset
   135
  endif
474761f14bca Initial load
duke
parents:
diff changeset
   136
else
474761f14bca Initial load
duke
parents:
diff changeset
   137
  ANT = ant
474761f14bca Initial load
duke
parents:
diff changeset
   138
  ifneq ($(shell which $(ANT) > /dev/null; echo $$?), 0)
8606
d14249641f96 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 7678
diff changeset
   139
    $(error "'ant' not found; please set ANT_HOME or put 'ant' on your PATH")
8
474761f14bca Initial load
duke
parents:
diff changeset
   140
  endif
474761f14bca Initial load
duke
parents:
diff changeset
   141
endif
474761f14bca Initial load
duke
parents:
diff changeset
   142
474761f14bca Initial load
duke
parents:
diff changeset
   143
# Default target and expected 'do everything' target
3885
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   144
default: all
8
474761f14bca Initial load
duke
parents:
diff changeset
   145
474761f14bca Initial load
duke
parents:
diff changeset
   146
# All ant targets of interest
4137
a06d987928b2 6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents: 3885
diff changeset
   147
ANT_TARGETS = all source drop_included build dist clobber clean sanity
8
474761f14bca Initial load
duke
parents:
diff changeset
   148
474761f14bca Initial load
duke
parents:
diff changeset
   149
# Create a make target for each
474761f14bca Initial load
duke
parents:
diff changeset
   150
$(ANT_TARGETS):
4298
05940e71b36b 6900341: jaxp/jaxws ant scripts using ant runtime in classpath, needs to be explicit
ohair
parents: 4138
diff changeset
   151
	cd .. && $(ANT_JAVA_HOME) $(ANT) $(ANT_OPTIONS) -version
3885
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   152
	cd .. && $(ANT_JAVA_HOME) $(ANT) $(ANT_OPTIONS) $@
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   153
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   154
# Help target
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   155
define helpenvline
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   156
@echo "    $1";echo "        $2"
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   157
endef
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   158
help:
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   159
	@echo "----------------------------------------------------------"
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   160
	@echo " "
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   161
	@echo "Help information for this Makefile:"
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   162
	@echo " "
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   163
	@echo "  Targets (see ant project information for descriptions):"
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   164
	@echo "    $(ANT_TARGETS)"
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   165
	@echo " "
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   166
	@echo "  Environment or command line variables (all optional):"
5836
0ca88d5cdd40 6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents: 5516
diff changeset
   167
	$(call helpenvline, ALT_DROPS_DIR,\
0ca88d5cdd40 6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents: 5516
diff changeset
   168
	       "Directory that contains the drop source bundles i.e. drops.dir")
3885
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   169
	$(call helpenvline, ALT_BOOTDIR,\
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   170
	       "JAVA_HOME to use when running ant")
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   171
	$(call helpenvline, ALT_LANGTOOLS_DIST,\
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   172
	       "path to langtools repository dist directory")
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   173
	$(call helpenvline, ALT_OUTPUTDIR,\
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   174
	       "path to root of output")
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   175
	$(call helpenvline, DEBUG_CLASSFILES,\
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   176
	       "if set makes sure ant property javac.debug is true")
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   177
	$(call helpenvline, JAVAC_SOURCE_ARG,\
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   178
	       "if SOURCE_LANGUAGE_VERSION not set uses this to set ant property javac.source")
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   179
	$(call helpenvline, JAVAC_TARGET_ARG,\
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   180
	       "if TARGET_CLASS_VERSION not set uses this to set ant property javac.target")
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   181
	$(call helpenvline, SOURCE_LANGUAGE_VERSION,\
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   182
	       "if set uses this to set ant property javac.source")
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   183
	$(call helpenvline, QUIET,\
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   184
	       "if set will pass -quiet to ant")
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   185
	$(call helpenvline, TARGET_CLASS_VERSION,\
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   186
	       "JAVA_HOME to use when running ant")
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   187
	$(call helpenvline, VARIANT,\
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   188
	       "if set to OPT means optimized build will set javac.debug to false")
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   189
	$(call helpenvline, VERBOSE,\
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   190
	       "if set will pass -verbose to ant")
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   191
	@echo " "
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   192
	@echo "----------------------------------------------------------"
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   193
	@echo " "
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   194
	@echo "Ant project file help information:"
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   195
	@echo " "
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   196
	@$(ANT_JAVA_HOME) cd .. && $(ANT) $(ANT_OPTIONS) -p
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   197
	@echo " "
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   198
	@echo "----------------------------------------------------------"
8
474761f14bca Initial load
duke
parents:
diff changeset
   199
474761f14bca Initial load
duke
parents:
diff changeset
   200
# Targets for Sun's internal JPRT build system
157
3b2c9223cdf5 6652588: Fix broken JPRT makefile target, no bundle saved
ohair
parents: 8
diff changeset
   201
JPRT_ARCHIVE_BUNDLE=$(OUTPUTDIR)/jprt.zip
8
474761f14bca Initial load
duke
parents:
diff changeset
   202
jprt_build_product jprt_build_debug jprt_build_fastdebug: all
157
3b2c9223cdf5 6652588: Fix broken JPRT makefile target, no bundle saved
ohair
parents: 8
diff changeset
   203
	$(RM) $(JPRT_ARCHIVE_BUNDLE)
3b2c9223cdf5 6652588: Fix broken JPRT makefile target, no bundle saved
ohair
parents: 8
diff changeset
   204
	( cd $(OUTPUTDIR)/dist && \
3b2c9223cdf5 6652588: Fix broken JPRT makefile target, no bundle saved
ohair
parents: 8
diff changeset
   205
	   zip -q -r $(JPRT_ARCHIVE_BUNDLE) . )
8
474761f14bca Initial load
duke
parents:
diff changeset
   206
474761f14bca Initial load
duke
parents:
diff changeset
   207
# Declare these phony (not filenames)
3885
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3297
diff changeset
   208
.PHONY: $(ANT_TARGETS) \
8
474761f14bca Initial load
duke
parents:
diff changeset
   209
	jprt_build_product jprt_build_debug jprt_build_fastdebug