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