make/Javadoc.gmk
author duke
Wed, 05 Jul 2017 19:52:35 +0200
changeset 25702 13a5c76976fe
parent 25614 0d18591d71d8
child 25854 98ce0879ab4c
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
15170
dc5d3102a97f 8004834: Add doclint support into javadoc
jjg
parents: 14466
diff changeset
     1
# Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     2
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     3
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     4
# This code is free software; you can redistribute it and/or modify it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     5
# under the terms of the GNU General Public License version 2 only, as
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     6
# published by the Free Software Foundation.  Oracle designates this
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     7
# particular file as subject to the "Classpath" exception as provided
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     8
# by Oracle in the LICENSE file that accompanied this code.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     9
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    10
# This code is distributed in the hope that it will be useful, but WITHOUT
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    11
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    12
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    13
# version 2 for more details (a copy is included in the LICENSE file that
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    14
# accompanied this code).
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    15
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    16
# You should have received a copy of the GNU General Public License version
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    17
# 2 along with this work; if not, write to the Free Software Foundation,
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    18
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    19
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    20
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    21
# or visit www.oracle.com if you need additional information or have any
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    22
# questions.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    23
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    24
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    25
include $(SPEC)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    26
include MakeBase.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    27
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
    28
#################################################################
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
    29
#
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
    30
# CORE_PKGS environment variable has been moved to the following file
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
    31
#
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
    32
include CORE_PKGS.gmk
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
    33
#
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
    34
# Load environment variables for API package names that are not part of
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
    35
# the Java SE platform
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
    36
#
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
    37
include NON_CORE_PKGS.gmk
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
    38
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
    39
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    40
.SUFFIXES: # Delete the default suffixes
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    41
.SUFFIXES: .java
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    42
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    43
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    44
# Definitions for $(DOCSDIR), $(MKDIR), $(BINDIR), etc.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    45
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    46
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    47
DOCSDIR=$(OUTPUT_ROOT)/docs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    48
TEMPDIR=$(OUTPUT_ROOT)/docstemp
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    49
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    50
JDK_SHARE_SRC=$(JDK_TOPDIR)/src/share
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    51
JDK_SHARE_CLASSES=$(JDK_SHARE_SRC)/classes
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    52
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    53
JDK_IMPSRC = $(JDK_OUTPUTDIR)/impsrc
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    54
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    55
JDK_GENSRC = $(JDK_OUTPUTDIR)/gensrc
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    56
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    57
HOTSPOT_DOCS_IMPORT_PATH=$(HOTSPOT_OUTPUTDIR)/docs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    58
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    59
BUILD_NUMBER=$(JDK_BUILD_NUMBER)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    60
15393
e3761cf4e010 8006872: Stop creating four jars with identical content in the new build system.
ohrstrom
parents: 15172
diff changeset
    61
JAVADOC_CMD = $(JAVA) \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    62
    -Xmx1024m \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    63
    -Djava.awt.headless=true \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    64
    $(NEW_JAVADOC) \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    65
    -bootclasspath $(JDK_OUTPUTDIR)/classes
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    66
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    67
# Copyright year for beginning of Java and some of the apis
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    68
# (Needed when creating the javadocs)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    69
FIRST_COPYRIGHT_YEAR = 1993
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    70
DOMAPI_FIRST_COPYRIGHT_YEAR = 2005
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    71
MIRROR_FIRST_COPYRIGHT_YEAR = 2004
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    72
DOCLETAPI_FIRST_COPYRIGHT_YEAR = 1993
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    73
TAGLETAPI_FIRST_COPYRIGHT_YEAR = 1993
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    74
JDI_FIRST_COPYRIGHT_YEAR = 1999
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    75
JAAS_FIRST_COPYRIGHT_YEAR = 1998
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    76
JGSS_FIRST_COPYRIGHT_YEAR = 2000
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    77
SMARTCARDIO_FIRST_COPYRIGHT_YEAR = 2005
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    78
HTTPSERVER_FIRST_COPYRIGHT_YEAR = 2005
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    79
MGMT_FIRST_COPYRIGHT_YEAR = 2003
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    80
ATTACH_FIRST_COPYRIGHT_YEAR = 2005
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    81
JCONSOLE_FIRST_COPYRIGHT_YEAR = 2006
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    82
SCTPAPI_FIRST_COPYRIGHT_YEAR = 2009
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    83
TRACING_FIRST_COPYRIGHT_YEAR = 2008
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    84
TREEAPI_FIRST_COPYRIGHT_YEAR = 2005
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    85
JNLP_FIRST_COPYRIGHT_YEAR = 1998
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    86
PLUGIN2_FIRST_COPYRIGHT_YEAR = 2007
23836
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
    87
JDKNET_FIRST_COPYRIGHT_YEAR = 2014
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    88
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    89
# Oracle name
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    90
FULL_COMPANY_NAME = Oracle and/or its affiliates
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    91
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    92
# Copyright address
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    93
COMPANY_ADDRESS = 500 Oracle Parkway<br>Redwood Shores, CA 94065 USA.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    94
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    95
# The trademark symbol
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    96
TRADEMARK = &trade;
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    97
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    98
# Common copyright lines used
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    99
# The word "Copyright" might optionally be a link to the file cpyr.html.
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   100
# The first year of copyright may vary or not be available.
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   101
# The address to the company might be optional.
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   102
COMMA:= ,
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   103
EMPTY:=
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   104
SPACE:=$(EMPTY) $(EMPTY)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   105
COPYRIGHT_SYMBOL = &\#x00a9;
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   106
# Macro to construct the copyright line
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   107
# (The GNU make 3.78.1 "if" conditional is broken, fixed in GNU make 3.81)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   108
define CopyrightLine # optionalurl optionalfirstyear optionaladdress
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   109
$(if $(strip $1),<a href="$(strip $1)">Copyright</a>,Copyright) \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   110
$(COPYRIGHT_SYMBOL) $(if $2,$2${COMMA},) $(COPYRIGHT_YEAR),\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   111
$(FULL_COMPANY_NAME). $3 All rights reserved.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   112
endef
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   113
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   114
# Url to root of documents
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   115
DOCSDIR_URL = {@docroot}/$(GET2DOCSDIR)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   116
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   117
# Url to copyright html file
24232
ddfae175a8d2 8042348: Copyright link in Javadoc page for Java SE 8
erikj
parents: 23986
diff changeset
   118
COPYRIGHT_URL = $(DOCSDIR_URL)/legal/cpyr.html
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   119
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   120
# Url to bug filing site
25043
b5598c2ddf6f 8048302: Update bug reporting URL in make/Javadoc.gmk
darcy
parents: 24232
diff changeset
   121
BUG_SUBMIT_URL = http://bugreport.java.com/bugreport/
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   122
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   123
# Common line for how to submit a bug or rfe
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   124
BUG_SUBMIT_LINE = <a href="$(BUG_SUBMIT_URL)">Submit a bug or feature</a>
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   125
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   126
# Url to devdocs page
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   127
# Was: http://java.sun.com/javase/6/webnotes/devdocs-vs-specs.html
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   128
DEV_DOCS_URL-7 = http://download.oracle.com/javase/7/docs/index.html
20341
7a8b7863c491 8025741: Fix jdk/make/docs/Makefile to point to correct docs URL for JDK 8.
bpatel
parents: 17067
diff changeset
   129
DEV_DOCS_URL-8 = http://download.oracle.com/javase/8/docs/index.html
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   130
DEV_DOCS_URL = $(DEV_DOCS_URL-$(JDK_MINOR_VERSION))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   131
DOCS_BASE_URL = http://download.oracle.com/javase/7/docs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   132
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   133
# Common Java trademark line
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   134
JAVA_TRADEMARK_LINE = Java is a trademark or registered trademark of \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   135
$(FULL_COMPANY_NAME) in the US and other countries.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   136
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   137
#################################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   138
# Macros:
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   139
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   140
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   141
# List of all possible directories for javadoc to look for sources
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   142
# NOTE: Quotes are required around sourcepath argument only on Windows.
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   143
# Otherwise, you get "No packages or classes specified." due
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   144
# to $(PATH_SEP) being interpreted as an end of
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   145
# command (newline or shell ; character)
14466
2f85b948660b 8003844: build-infra: docs target isn't working properly
erikj
parents: 13697
diff changeset
   146
ALL_SOURCE_DIRS = $(JDK_SHARE_CLASSES) \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   147
    $(JDK_IMPSRC) \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   148
    $(JDK_GENSRC) \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   149
    $(JDK_OUTPUTDIR)/gendocsrc_rmic \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   150
    $(JDK_TOPDIR)/src/solaris/classes \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   151
    $(JDK_TOPDIR)/src/windows/classes \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   152
    $(JDK_SHARE_SRC)/doc/stub
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   153
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   154
# List of directories that actually exist
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   155
ALL_EXISTING_SOURCE_DIRS := $(wildcard $(ALL_SOURCE_DIRS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   156
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   157
# List with classpath separator between them
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   158
EMPTY:=
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   159
SPACE:= $(EMPTY) $(EMPTY)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   160
RELEASEDOCS_SOURCEPATH = \
15052
eed28ee0dbd6 8005548: build-infra: Fix docs target on windows
erikj
parents: 14466
diff changeset
   161
    $(subst $(SPACE),$(PATH_SEP),$(strip $(ALL_SOURCE_DIRS)))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   162
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   163
define prep-target
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   164
	$(MKDIR) -p $(@D)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   165
	$(RM) $@
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   166
endef
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   167
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   168
# Prep for javadoc creation, assumes $@ is an index.html file
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   169
define prep-javadoc
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   170
	@if [ -f "$@" -a "$?" != "" ] ; then \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   171
	  $(ECHO) "# Dependencies have changed: $?"; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   172
	fi
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   173
	$(RM) -r $(@D)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   174
	$(MKDIR) -p $(@D)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   175
endef
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   176
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   177
$(eval $(call FillCacheFind, $(ALL_SOURCE_DIRS)))
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   178
define PackageDependencies
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   179
  $(call CacheFind, $(foreach p, $(subst .,/,$1), $(addsuffix /$p, $(ALL_SOURCE_DIRS))))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   180
endef
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   181
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   182
# Given a list of packages, add packages that exist to $@, print summary
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   183
define PackageFilter # packages
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   184
	@if [ "$1" != "" ] ; then \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   185
	  for p in $1 ; do \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   186
	    pd=`$(ECHO) $${p} | $(SED) -e 's@[.]@/@g'`; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   187
	    found="false"; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   188
	    for cp in $(ALL_SOURCE_DIRS) ; do \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   189
	      if [ -d $${cp}/$${pd} ] ; then \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   190
	        $(ECHO) "$${p}" >> $@; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   191
	        found="true"; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   192
	        break; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   193
	      fi; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   194
	    done; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   195
	    if [ "$${found}" = "false" ] ; then \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   196
	      $(ECHO) "WARNING: Package not found: $${p}"; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   197
	    fi; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   198
	  done; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   199
	fi
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   200
endef
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   201
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   202
# Print out a summary of the javadoc command about to be run
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   203
define JavadocSummary # optionsfile packagesfile
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   204
	@$(ECHO) "# Running javadoc for $(patsubst $(OUTPUT_ROOT)/%,%,$@)" $(LOG_WARN)
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   205
	@($(ECHO) "# Options (`$(BASENAME) $1`):"; $(SED) -e 's@^@#   @' $1) $(LOG_DEBUG)
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   206
	@($(ECHO) "# Packages (`$(BASENAME) $2`):";$(SED) -e 's@^@#   @' $2) $(LOG_DEBUG)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   207
endef
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   208
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   209
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   210
# Temporary directory for javadoc creation
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   211
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   212
DOCSTMPDIR = $(TEMPDIR)/doctmp
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   213
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   214
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   215
# Different api directories created from root directory
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   216
#
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   217
COREAPI_DOCSDIR = $(DOCSDIR)/api
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   218
JDK_API_DOCSDIR = $(DOCSDIR)/jdk/api
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   219
JRE_API_DOCSDIR = $(DOCSDIR)/jre/api
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   220
PLATFORM_DOCSDIR = $(DOCSDIR)/platform
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   221
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   222
# The non-core api javadocs need to be able to access the root of the core
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   223
# api directory, so for jdk/api or jre/api to get to the core api/
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   224
# directory we would use this:
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   225
JDKJRE2COREAPI = ../../api
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   226
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   227
# Common bottom argument
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   228
define CommonBottom # year
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   229
<font size="-1"><br> $(call CopyrightLine,,$1,)</font>
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   230
endef
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   231
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   232
# Common trademark bottom argument (Not sure why this is used sometimes)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   233
define CommonTrademarkBottom # year
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   234
<font size="-1">\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   235
$(BUG_SUBMIT_LINE)<br>$(JAVA_TRADEMARK_LINE)<br>\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   236
$(call CopyrightLine,,$1,$(COMPANY_ADDRESS))\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   237
</font>
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   238
endef
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   239
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   240
# Common echo of option
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   241
define OptionOnly # opt
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   242
	if [ "$1" != "" ] ; then \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   243
		$(PRINTF) "%s\n" "$1"; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   244
	fi
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   245
endef
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   246
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   247
define OptionPair # opt arg
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   248
	$(PRINTF) "%s '%s'\n" "$1" '$2'
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   249
endef
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   250
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   251
define OptionTrip # opt arg arg
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   252
	$(PRINTF) "%s '%s' '%s'\n" "$1" '$2' '$3'
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   253
endef
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   254
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   255
# Core api bottom argument (with special sauce)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   256
COREAPI_BOTTOM = <font size="-1"> $(BUG_SUBMIT_LINE)\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   257
<br>For further API reference and developer documentation, \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   258
see <a href="$(DEV_DOCS_URL)" target="_blank">Java SE Documentation</a>. \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   259
That documentation contains more detailed, developer-targeted descriptions, \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   260
with conceptual overviews, definitions of terms, workarounds, \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   261
and working code examples.<br>\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   262
$(call CopyrightLine,$(COPYRIGHT_URL),$(FIRST_COPYRIGHT_YEAR),)\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   263
</font>
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   264
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   265
# Common javadoc options used by all bundles
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   266
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   267
ifdef OPENJDK
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   268
  ADDITIONAL_JAVADOCFLAGS = \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   269
      -Xdocrootparent $(DOCS_BASE_URL)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   270
else
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   271
  ADDITIONAL_JAVADOCFLAGS =
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   272
endif
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   273
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   274
define COMMON_JAVADOCFLAGS
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   275
    $(call OptionOnly,-XDignore.symbol.file=true) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   276
    $(call OptionOnly,-quiet) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   277
    $(call OptionOnly,-use) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   278
    $(call OptionOnly,-keywords) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   279
    $(call OptionPair,-Xprofilespath,$(JDK_TOPDIR)/make/profile-rtjar-includes.txt) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   280
    $(call OptionOnly,$(ADDITIONAL_JAVADOCFLAGS))
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   281
endef
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   282
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   283
# Common javadoc tags used by all bundles
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   284
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   285
# Java language specification cite
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   286
TAG_JLS = jls:a:See <cite> \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   287
The Java&trade; Language Specification</cite>:
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   288
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   289
# Java virtual machine specification cite
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   290
TAG_JVMS = jvms:a:See <cite> \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   291
The Java&trade; Virtual Machine Specification</cite>:
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   292
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   293
# In order to get a specific ordering it's necessary to specify the total
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   294
# ordering of tags as the tags are otherwise ordered in order of definition.
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   295
define COMMON_JAVADOCTAGS
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   296
  $(call OptionPair,-tag,beaninfo:X) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   297
  $(call OptionPair,-tag,revised:X) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   298
  $(call OptionPair,-tag,since.unbundled:X) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   299
  $(call OptionPair,-tag,spec:X) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   300
  $(call OptionPair,-tag,specdefault:X) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   301
  $(call OptionPair,-tag,Note:X) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   302
  $(call OptionPair,-tag,ToDo:X) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   303
  $(call OptionPair,-tag,apiNote:a:API Note:) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   304
  $(call OptionPair,-tag,implSpec:a:Implementation Requirements:) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   305
  $(call OptionPair,-tag,implNote:a:Implementation Note:) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   306
  $(call OptionPair,-tag,param) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   307
  $(call OptionPair,-tag,return) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   308
  $(call OptionPair,-tag,throws) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   309
  $(call OptionPair,-tag,since) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   310
  $(call OptionPair,-tag,version) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   311
  $(call OptionPair,-tag,serialData) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   312
  $(call OptionPair,-tag,factory) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   313
  $(call OptionPair,-tag,see) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   314
  $(call OptionPair,-tag,$(TAG_JVMS)) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   315
  $(call OptionPair,-tag,$(TAG_JLS))
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   316
endef
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   317
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   318
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   319
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   320
# Draft used for non-fcs documents
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   321
DRAFT_HEADER =
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   322
ifneq ($(MILESTONE), fcs)
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   323
  DRAFT_HEADER = <br><strong>DRAFT&nbsp;$(MILESTONE)-$(BUILD_NUMBER)</strong>
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   324
  DRAFT_BOTTOM = <br><strong>DRAFT&nbsp;$(MILESTONE)-$(BUILD_NUMBER)</strong>
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   325
  DRAFT_WINTITLE = $(BUILD_NUMBER)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   326
  # Early access top text (not used in FCS releases)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   327
  COREAPI_TOP_EARLYACCESS = \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   328
<div style="background-color: \#EEEEEE"> \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   329
<div style="padding: 6px; margin-top: 2px; margin-bottom: 6px; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   330
margin-left: 6px; margin-right: 6px; text-align: justify; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   331
font-size: 80%; font-family: Helvetica, Arial, sans-serif; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   332
font-weight: normal;"> \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   333
Please note that the specifications and other information \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   334
contained herein are not final and are subject to change. \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   335
The information is being made available to you solely for purpose of \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   336
evaluation. \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   337
</div> </div>
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   338
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   339
endif
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   340
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   341
#################################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   342
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   343
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   344
# Default target is same as docs target, create core api and all others it can
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   345
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   346
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   347
all: docs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   348
docs: coredocs otherdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   349
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   350
#################################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   351
# Production Targets -- USE THESE TARGETS WHEN:
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   352
# a) You're generating docs outside of release engineering's
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   353
#    standard control build.
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   354
# b) The docs will be pushed to the web and/or included in
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   355
#    the downloaded doc bundle.
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   356
#
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   357
# See: Notes.html#releaseTargets
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   358
# Note: Spaces precede ifdef/ifndef indents. Tabs precede target commands (!)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   359
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   360
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   361
sanitycheckcoredocs:
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   362
	@$(ECHO) ""
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   363
	@$(ECHO) "Building core api docs with these values:"
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   364
	@$(ECHO) "    BUILD_NUMBER = $(BUILD_NUMBER)"
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   365
	@$(ECHO) "    MILESTONE = $(MILESTONE)"
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   366
	@$(ECHO) ""
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   367
        ifeq ($(BUILD_NUMBER), b00)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   368
	  @$(ECHO) "ERROR: Build number must be defined"
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   369
	  @$(ECHO) "MILESTONE is set to $(MILESTONE)"
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   370
	  @$(ECHO) ""
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   371
	  exit 1
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   372
        endif
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   373
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   374
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   375
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   376
# coredocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   377
#
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   378
COREAPI_DOCTITLE = Java$(TRADEMARK) Platform, Standard Edition \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   379
$(JDK_MINOR_VERSION)<br>API Specification
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   380
COREAPI_WINDOWTITLE = Java Platform SE $(JDK_MINOR_VERSION)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   381
COREAPI_HEADER = \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   382
<strong>Java$(TRADEMARK)&nbsp;Platform<br>Standard&nbsp;Ed.&nbsp;$(JDK_MINOR_VERSION)</strong>
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   383
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   384
# Overview file for core apis
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   385
COREAPI_OVERVIEW = $(JDK_SHARE_CLASSES)/overview-core.html
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   386
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   387
# The index.html, options, and packages files
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   388
COREAPI_INDEX_FILE = $(COREAPI_DOCSDIR)/index.html
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   389
COREAPI_OPTIONS_FILE = $(DOCSTMPDIR)/coredocs.options
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   390
COREAPI_PACKAGES_FILE = $(DOCSTMPDIR)/coredocs.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   391
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   392
coredocs: $(COREAPI_INDEX_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   393
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   394
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   395
$(COREAPI_INDEX_FILE): GET2DOCSDIR=..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   396
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   397
# Run javadoc if the index file is out of date or missing
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   398
$(COREAPI_INDEX_FILE): $(COREAPI_OPTIONS_FILE) $(COREAPI_PACKAGES_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   399
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   400
	$(call JavadocSummary,$(COREAPI_OPTIONS_FILE),$(COREAPI_PACKAGES_FILE))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   401
	$(JAVADOC_CMD) -d $(@D) \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   402
	    @$(COREAPI_OPTIONS_FILE) @$(COREAPI_PACKAGES_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   403
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   404
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   405
$(COREAPI_OPTIONS_FILE): $(COREAPI_OVERVIEW)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   406
	$(prep-target)
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   407
	@($(call COMMON_JAVADOCFLAGS) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   408
          $(call COMMON_JAVADOCTAGS) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   409
          $(call OptionOnly,-Xdoclint:none) ; \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   410
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   411
	  $(call OptionPair,-encoding,ISO-8859-1) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   412
	  $(call OptionOnly,-splitIndex) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   413
	  $(call OptionPair,-overview,$(COREAPI_OVERVIEW)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   414
	  $(call OptionPair,-doctitle,$(COREAPI_DOCTITLE)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   415
	  $(call OptionPair,-windowtitle,$(COREAPI_WINDOWTITLE) $(DRAFT_WINTITLE)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   416
	  $(call OptionPair,-header,$(COREAPI_HEADER)$(DRAFT_HEADER)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   417
	  $(call OptionPair,-bottom,$(COREAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   418
	) >> $@
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   419
        ifdef COREAPI_TOP_EARLYACCESS
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   420
	  @$(call OptionPair,-top,$(COREAPI_TOP_EARLYACCESS)) >> $@
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   421
        endif
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   422
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   423
# Create a file with the package names in it
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   424
$(COREAPI_PACKAGES_FILE): $(call PackageDependencies,$(CORE_PKGS))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   425
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   426
	$(call PackageFilter,$(CORE_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   427
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   428
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   429
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   430
# docletapidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   431
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   432
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   433
ALL_OTHER_TARGETS += docletapidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   434
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   435
DOCLETAPI_DOCDIR := $(JDK_API_DOCSDIR)/javadoc/doclet
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   436
DOCLETAPI2COREAPI := ../../$(JDKJRE2COREAPI)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   437
DOCLETAPI_DOCTITLE := Doclet API
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   438
DOCLETAPI_WINDOWTITLE := Doclet API
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   439
DOCLETAPI_HEADER := <strong>Doclet API</strong>
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   440
DOCLETAPI_BOTTOM := $(call CommonTrademarkBottom,$(DOCLETAPI_FIRST_COPYRIGHT_YEAR))
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   441
DOCLETAPI_GROUPNAME := Packages
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   442
DOCLETAPI_REGEXP := com.sun.javadoc
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   443
# DOCLETAPI_PKGS is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   444
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   445
# The index.html, options, and packages files
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   446
DOCLETAPI_INDEX_FILE = $(DOCLETAPI_DOCDIR)/index.html
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   447
DOCLETAPI_OPTIONS_FILE = $(DOCSTMPDIR)/docletapi.options
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   448
DOCLETAPI_PACKAGES_FILE = $(DOCSTMPDIR)/docletapi.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   449
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   450
docletapidocs: $(DOCLETAPI_INDEX_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   451
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   452
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   453
$(DOCLETAPI_INDEX_FILE): GET2DOCSDIR=$(DOCLETAPI2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   454
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   455
# Run javadoc if the index file is out of date or missing
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   456
$(DOCLETAPI_INDEX_FILE): $(DOCLETAPI_OPTIONS_FILE) $(DOCLETAPI_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   457
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   458
	$(call JavadocSummary,$(DOCLETAPI_OPTIONS_FILE),$(DOCLETAPI_PACKAGES_FILE))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   459
	$(JAVADOC_CMD) -d $(@D) \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   460
	    @$(DOCLETAPI_OPTIONS_FILE) @$(DOCLETAPI_PACKAGES_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   461
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   462
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   463
$(DOCLETAPI_OPTIONS_FILE):
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   464
	$(prep-target)
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   465
	@($(call COMMON_JAVADOCFLAGS) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   466
          $(call COMMON_JAVADOCTAGS) ; \
25043
b5598c2ddf6f 8048302: Update bug reporting URL in make/Javadoc.gmk
darcy
parents: 24232
diff changeset
   467
	  $(call OptionOnly,-Xdoclint:all) ; \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   468
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   469
	  $(call OptionPair,-encoding,ascii) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   470
	  $(call OptionOnly,-breakiterator) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   471
	  $(call OptionPair,-doctitle,$(DOCLETAPI_DOCTITLE)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   472
	  $(call OptionPair,-windowtitle,$(DOCLETAPI_WINDOWTITLE) $(DRAFT_WINTITLE)); \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   473
	  $(call OptionPair,-header,$(DOCLETAPI_HEADER)$(DRAFT_HEADER)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   474
	  $(call OptionPair,-bottom,$(DOCLETAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   475
	  $(call OptionTrip,-group,$(DOCLETAPI_GROUPNAME),$(DOCLETAPI_REGEXP)); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   476
	  $(call OptionTrip,-linkoffline,$(DOCLETAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   477
	) >> $@
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   478
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   479
# Create a file with the package names in it
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   480
$(DOCLETAPI_PACKAGES_FILE): $(call PackageDependencies,$(DOCLETAPI_PKGS)) 
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   481
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   482
	$(call PackageFilter,$(DOCLETAPI_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   483
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   484
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   485
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   486
# tagletapidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   487
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   488
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   489
ALL_OTHER_TARGETS += tagletapidocs
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   490
TAGLETAPI_DOCDIR := $(JDK_API_DOCSDIR)/javadoc/taglet
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   491
TAGLETAPI2COREAPI := ../../$(JDKJRE2COREAPI)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   492
TAGLETAPI_BOTTOM := $(call CommonTrademarkBottom,$(TAGLETAPI_FIRST_COPYRIGHT_YEAR))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   493
# TAGLETAPI_FILE is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   494
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   495
# Temporary directory (special generation rules)
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   496
TAGLETAPI_TEMPDIR = $(DOCSTMPDIR)/taglets_temp
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   497
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   498
# The index.html, options, and packages files
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   499
TAGLETAPI_INDEX_FILE = $(TAGLETAPI_DOCDIR)/com/sun/tools/doclets/Taglet.html
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   500
TAGLETAPI_OPTIONS_FILE = $(DOCSTMPDIR)/tagletapi.options
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   501
TAGLETAPI_PACKAGES_FILE = $(DOCSTMPDIR)/tagletapi.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   502
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   503
tagletapidocs: $(TAGLETAPI_INDEX_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   504
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   505
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   506
$(TAGLETAPI_INDEX_FILE): GET2DOCSDIR=$(TAGLETAPI2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   507
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   508
# Run javadoc if the index file is out of date or missing
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   509
$(TAGLETAPI_INDEX_FILE): $(TAGLETAPI_OPTIONS_FILE) $(TAGLETAPI_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   510
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   511
	$(RM) -r $(TAGLETAPI_TEMPDIR)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   512
	$(MKDIR) -p $(TAGLETAPI_TEMPDIR)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   513
	$(call JavadocSummary,$(TAGLETAPI_OPTIONS_FILE),$(TAGLETAPI_PACKAGES_FILE))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   514
	$(JAVADOC_CMD) -d $(TAGLETAPI_TEMPDIR) \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   515
	    @$(TAGLETAPI_OPTIONS_FILE) @$(TAGLETAPI_PACKAGES_FILE)
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   516
	cp -r $(TAGLETAPI_TEMPDIR)/com $(TAGLETAPI_DOCDIR)
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   517
	cp $(TAGLETAPI_TEMPDIR)/stylesheet.css $(TAGLETAPI_DOCDIR)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   518
	$(RM) -r $(TAGLETAPI_TEMPDIR)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   519
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   520
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   521
$(TAGLETAPI_OPTIONS_FILE):
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   522
	$(prep-target)
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   523
	@($(call COMMON_JAVADOCFLAGS) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   524
          $(call COMMON_JAVADOCTAGS) ; \
25043
b5598c2ddf6f 8048302: Update bug reporting URL in make/Javadoc.gmk
darcy
parents: 24232
diff changeset
   525
	  $(call OptionOnly,-Xdoclint:all) ; \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   526
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   527
	  $(call OptionPair,-encoding,ascii) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   528
	  $(call OptionOnly,-nonavbar) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   529
	  $(call OptionOnly,-noindex) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   530
	  $(call OptionPair,-bottom,$(TAGLETAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   531
	  $(call OptionTrip,-linkoffline,$(TAGLETAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   532
	) >> $@
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   533
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   534
# Create a file with the package names in it
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   535
$(TAGLETAPI_PACKAGES_FILE): $(call PackageDependencies,$(TAGLETAPI_PKGS))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   536
	$(prep-target)
14466
2f85b948660b 8003844: build-infra: docs target isn't working properly
erikj
parents: 13697
diff changeset
   537
	@($(ECHO) "$(JDK_IMPSRC)/$(TAGLETAPI_FILE)" ) > $@
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   538
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   539
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   540
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   541
# domapidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   542
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   543
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   544
ALL_OTHER_TARGETS += domapidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   545
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   546
DOMAPI_DOCDIR := $(JRE_API_DOCSDIR)/plugin/dom
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   547
DOMAPI2COREAPI := ../../$(JDKJRE2COREAPI)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   548
DOMAPI_DOCTITLE := Common DOM API
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   549
DOMAPI_WINDOWTITLE := Common DOM API
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   550
DOMAPI_HEADER := <strong>Common DOM API</strong>
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   551
DOMAPI_BOTTOM := $(call CommonTrademarkBottom,$(DOMAPI_FIRST_COPYRIGHT_YEAR))
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   552
DOMAPI_GROUPNAME := Packages
25045
7b8a6a85baa4 8044063: Remove com.sun.java.browser.* from jdk repo
mchung
parents: 24232
diff changeset
   553
DOMAPI_REGEXP := org.w3c.dom*
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   554
# DOMAPI_PKGS is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   555
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   556
# The index.html, options, and packages files
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   557
DOMAPI_INDEX_FILE = $(DOMAPI_DOCDIR)/index.html
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   558
DOMAPI_OPTIONS_FILE = $(DOCSTMPDIR)/domapi.options
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   559
DOMAPI_PACKAGES_FILE = $(DOCSTMPDIR)/domapi.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   560
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   561
domapidocs: $(DOMAPI_INDEX_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   562
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   563
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   564
$(DOMAPI_INDEX_FILE): GET2DOCSDIR=$(DOMAPI2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   565
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   566
# Run javadoc if the index file is out of date or missing
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   567
$(DOMAPI_INDEX_FILE): $(DOMAPI_OPTIONS_FILE) $(DOMAPI_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   568
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   569
	$(call JavadocSummary,$(DOMAPI_OPTIONS_FILE),$(DOMAPI_PACKAGES_FILE))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   570
	$(JAVADOC_CMD) -d $(@D) \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   571
	    @$(DOMAPI_OPTIONS_FILE) @$(DOMAPI_PACKAGES_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   572
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   573
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   574
$(DOMAPI_OPTIONS_FILE):
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   575
	$(prep-target)
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   576
	@($(call COMMON_JAVADOCFLAGS) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   577
          $(call COMMON_JAVADOCTAGS) ; \
22033
c323078abaf4 8031081: Use separate doclint flags for different doc bundles
darcy
parents: 21759
diff changeset
   578
	  $(call OptionOnly,-Xdoclint:none) ; \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   579
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   580
	  $(call OptionPair,-encoding,ascii) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   581
	  $(call OptionOnly,-splitIndex) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   582
	  $(call OptionPair,-doctitle,$(DOMAPI_DOCTITLE)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   583
	  $(call OptionPair,-windowtitle,$(DOMAPI_WINDOWTITLE) $(DRAFT_WINTITLE)); \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   584
	  $(call OptionPair,-header,$(DOMAPI_HEADER)$(DRAFT_HEADER)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   585
	  $(call OptionPair,-bottom,$(DOMAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   586
	  $(call OptionTrip,-group,$(DOMAPI_GROUPNAME),$(DOMAPI_REGEXP)); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   587
	  $(call OptionTrip,-linkoffline,$(DOMAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   588
	) >> $@
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   589
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   590
# Create a file with the package names in it
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   591
$(DOMAPI_PACKAGES_FILE): $(call PackageDependencies,$(DOMAPI_PKGS))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   592
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   593
	$(call PackageFilter,$(DOMAPI_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   594
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   595
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   596
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   597
# jpdadocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   598
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   599
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   600
ALL_OTHER_TARGETS += jpdadocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   601
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   602
jpdadocs: jdidocs jdwpdocs jvmtidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   603
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   604
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   605
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   606
# jdidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   607
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   608
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   609
ALL_OTHER_TARGETS += jdidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   610
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   611
JDI_DOCDIR := $(JDK_API_DOCSDIR)/jpda/jdi
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   612
JDI2COREAPI := ../../$(JDKJRE2COREAPI)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   613
JDI_DOCTITLE := Java$(TRADEMARK) Debug Interface
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   614
JDI_WINDOWTITLE := Java Debug Interface
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   615
JDI_HEADER := <strong>Java Debug Interface</strong>
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   616
JDI_BOTTOM := $(call CommonBottom,$(JDI_FIRST_COPYRIGHT_YEAR))
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   617
JDI_OVERVIEW := $(JDK_SHARE_CLASSES)/jdi-overview.html
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   618
# JDI_PKGS is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   619
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   620
# The index.html, options, and packages files
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   621
JDI_INDEX_FILE = $(JDI_DOCDIR)/index.html
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   622
JDI_OPTIONS_FILE = $(DOCSTMPDIR)/jdi.options
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   623
JDI_PACKAGES_FILE = $(DOCSTMPDIR)/jdi.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   624
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   625
jdidocs: $(JDI_INDEX_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   626
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   627
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   628
$(JDI_INDEX_FILE): GET2DOCSDIR=$(JDI2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   629
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   630
# Run javadoc if the index file is out of date or missing
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   631
$(JDI_INDEX_FILE): $(JDI_OPTIONS_FILE) $(JDI_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   632
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   633
	$(call JavadocSummary,$(JDI_OPTIONS_FILE),$(JDI_PACKAGES_FILE))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   634
	$(JAVADOC_CMD) -d $(@D) \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   635
	    @$(JDI_OPTIONS_FILE) @$(JDI_PACKAGES_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   636
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   637
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   638
$(JDI_OPTIONS_FILE): $(JDI_OVERVIEW)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   639
	$(prep-target)
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   640
	@($(call COMMON_JAVADOCFLAGS) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   641
          $(call COMMON_JAVADOCTAGS) ; \
22033
c323078abaf4 8031081: Use separate doclint flags for different doc bundles
darcy
parents: 21759
diff changeset
   642
	  $(call OptionOnly,-Xdoclint:none) ; \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   643
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   644
	  $(call OptionPair,-encoding,ascii) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   645
	  $(call OptionPair,-overview,$(JDI_OVERVIEW)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   646
	  $(call OptionPair,-doctitle,$(JDI_DOCTITLE)) ; \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   647
	  $(call OptionPair,-windowtitle,$(JDI_WINDOWTITLE) $(DRAFT_WINTITLE)); \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   648
	  $(call OptionPair,-header,$(JDI_HEADER)$(DRAFT_HEADER)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   649
	  $(call OptionPair,-bottom,$(JDI_BOTTOM)$(DRAFT_BOTTOM)) ; \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   650
	  $(call OptionTrip,-linkoffline,$(JDI2COREAPI),$(COREAPI_DOCSDIR)/); \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   651
	) >> $@
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   652
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   653
# Create a file with the package names in it
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   654
$(JDI_PACKAGES_FILE): $(call PackageDependencies,$(JDI_PKGS))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   655
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   656
	$(call PackageFilter,$(JDI_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   657
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   658
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   659
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   660
# jdwpdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   661
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   662
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   663
ALL_OTHER_TARGETS += jdwpdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   664
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   665
JDWP_DOCDIR = $(PLATFORM_DOCSDIR)/jpda/jdwp
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   666
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   667
jdwpdocs: $(JDWP_DOCDIR)/jdwp-protocol.html
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   668
$(JDWP_DOCDIR)/jdwp-protocol.html : $(JDK_OUTPUTDIR)/gensrc_jdwp_doc/jdwp-protocol.html
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   669
	$(MKDIR) -p $(@D)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   670
	$(RM) $@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   671
	$(CP) $< $@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   672
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   673
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   674
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   675
# jvmtidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   676
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   677
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   678
ALL_OTHER_TARGETS += jvmtidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   679
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   680
JVMTI_DOCDIR = $(PLATFORM_DOCSDIR)/jvmti
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   681
JVMTI_HTML = $(HOTSPOT_DIST)/docs/platform/jvmti/jvmti.html
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   682
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   683
jvmtidocs: $(JVMTI_DOCDIR)/jvmti.html
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   684
$(JVMTI_DOCDIR)/jvmti.html:
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   685
	@$(prep-javadoc)
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   686
	@if [ -f $(JVMTI_HTML) ] ; then \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   687
	  $(CP) $(JVMTI_HTML) $@; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   688
	else \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   689
	  $(ECHO) "WARNING: Generated file does not exist: $(JVMTI_HTML)"; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   690
	fi
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   691
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   692
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   693
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   694
# jaasdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   695
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   696
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   697
ALL_OTHER_TARGETS += jaasdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   698
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   699
JAAS_DOCDIR := $(JRE_API_DOCSDIR)/security/jaas/spec
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   700
JAAS2COREAPI := ../../../$(JDKJRE2COREAPI)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   701
JAAS_DOCTITLE := Java$(TRADEMARK) Authentication and Authorization Service
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   702
JAAS_WINDOWTITLE := Java Authentication and Authorization Service
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   703
JAAS_HEADER := <strong>Java Authentication and Authorization Service</strong>
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   704
JAAS_BOTTOM := $(call CommonBottom,$(JAAS_FIRST_COPYRIGHT_YEAR))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   705
# JAAS_PKGS is located in NON_CORE_PKGS.gmk
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   706
JAAS_OVERVIEW := $(JDK_SHARE_CLASSES)/com/sun/security/auth/jaas-overview.html
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   707
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   708
# The index.html, options, and packages files
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   709
JAAS_INDEX_FILE = $(JAAS_DOCDIR)/index.html
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   710
JAAS_OPTIONS_FILE = $(DOCSTMPDIR)/jaas.options
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   711
JAAS_PACKAGES_FILE = $(DOCSTMPDIR)/jaas.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   712
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   713
jaasdocs: $(JAAS_INDEX_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   714
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   715
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   716
$(JAAS_INDEX_FILE): GET2DOCSDIR=$(JAAS2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   717
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   718
# Run javadoc if the index file is out of date or missing
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   719
$(JAAS_INDEX_FILE): $(JAAS_OPTIONS_FILE) $(JAAS_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   720
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   721
	$(call JavadocSummary,$(JAAS_OPTIONS_FILE),$(JAAS_PACKAGES_FILE))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   722
	$(JAVADOC_CMD) -d $(@D) \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   723
	    @$(JAAS_OPTIONS_FILE) @$(JAAS_PACKAGES_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   724
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   725
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   726
$(JAAS_OPTIONS_FILE): $(JAAS_OVERVIEW)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   727
	$(prep-target)
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   728
	@($(call COMMON_JAVADOCFLAGS) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   729
          $(call COMMON_JAVADOCTAGS) ; \
22033
c323078abaf4 8031081: Use separate doclint flags for different doc bundles
darcy
parents: 21759
diff changeset
   730
	  $(call OptionOnly,-Xdoclint:none) ; \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   731
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   732
	  $(call OptionPair,-encoding,ascii) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   733
	  $(call OptionPair,-overview,$(JAAS_OVERVIEW)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   734
	  $(call OptionPair,-doctitle,$(JAAS_DOCTITLE)) ; \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   735
	  $(call OptionPair,-windowtitle,$(JAAS_WINDOWTITLE) $(DRAFT_WINTITLE)); \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   736
	  $(call OptionPair,-header,$(JAAS_HEADER)$(DRAFT_HEADER)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   737
	  $(call OptionPair,-bottom,$(JAAS_BOTTOM)$(DRAFT_BOTTOM)) ; \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   738
	  $(call OptionTrip,-linkoffline,$(JAAS2COREAPI),$(COREAPI_DOCSDIR)/); \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   739
	) >> $@
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   740
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   741
# Create a file with the package names in it
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   742
$(JAAS_PACKAGES_FILE): $(call PackageDependencies,$(JAAS_PKGS))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   743
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   744
	$(call PackageFilter,$(JAAS_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   745
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   746
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   747
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   748
# jgssdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   749
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   750
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   751
ALL_OTHER_TARGETS += jgssdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   752
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   753
JGSS_DOCDIR := $(JRE_API_DOCSDIR)/security/jgss/spec
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   754
JGSS2COREAPI := ../../../$(JDKJRE2COREAPI)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   755
JGSS_DOCTITLE := Java$(TRADEMARK) GSS-API Utilities
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   756
JGSS_WINDOWTITLE := Java GSS-API Utilities
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   757
JGSS_HEADER := <strong>Java GSS-API Utilities</strong>
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   758
JGSS_BOTTOM := $(call CommonBottom,$(JGSS_FIRST_COPYRIGHT_YEAR))
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   759
JGSS_OVERVIEW := $(JDK_SHARE_CLASSES)/com/sun/security/jgss/jgss-overview.html
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   760
# JGSS_PKGS is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   761
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   762
# The index.html, options, and packages files
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   763
JGSS_INDEX_FILE = $(JGSS_DOCDIR)/index.html
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   764
JGSS_OPTIONS_FILE = $(DOCSTMPDIR)/jgss.options
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   765
JGSS_PACKAGES_FILE = $(DOCSTMPDIR)/jgss.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   766
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   767
jgssdocs: $(JGSS_INDEX_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   768
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   769
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   770
$(JGSS_INDEX_FILE): GET2DOCSDIR=$(JGSS2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   771
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   772
# Run javadoc if the index file is out of date or missing
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   773
$(JGSS_INDEX_FILE): $(JGSS_OPTIONS_FILE) $(JGSS_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   774
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   775
	$(call JavadocSummary,$(JGSS_OPTIONS_FILE),$(JGSS_PACKAGES_FILE))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   776
	$(JAVADOC_CMD) -d $(@D) \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   777
	    @$(JGSS_OPTIONS_FILE) @$(JGSS_PACKAGES_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   778
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   779
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   780
$(JGSS_OPTIONS_FILE): $(JGSS_OVERVIEW)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   781
	$(prep-target)
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   782
	@($(call COMMON_JAVADOCFLAGS) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   783
          $(call COMMON_JAVADOCTAGS) ; \
22033
c323078abaf4 8031081: Use separate doclint flags for different doc bundles
darcy
parents: 21759
diff changeset
   784
	  $(call OptionOnly,-Xdoclint:none) ; \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   785
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   786
	  $(call OptionPair,-encoding,ascii) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   787
	  $(call OptionOnly,-nodeprecatedlist) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   788
	  $(call OptionPair,-overview,$(JGSS_OVERVIEW)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   789
	  $(call OptionPair,-doctitle,$(JGSS_DOCTITLE)) ; \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   790
	  $(call OptionPair,-windowtitle,$(JGSS_WINDOWTITLE) $(DRAFT_WINTITLE)); \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   791
	  $(call OptionPair,-header,$(JGSS_HEADER)$(DRAFT_HEADER)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   792
	  $(call OptionPair,-bottom,$(JGSS_BOTTOM)$(DRAFT_BOTTOM)) ; \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   793
	  $(call OptionTrip,-linkoffline,$(JGSS2COREAPI),$(COREAPI_DOCSDIR)/); \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   794
	) >> $@
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   795
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   796
# Create a file with the package names in it
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   797
$(JGSS_PACKAGES_FILE): $(call PackageDependencies,$(JGSS_PKGS))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   798
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   799
	$(call PackageFilter,$(JGSS_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   800
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   801
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   802
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   803
# smartcardiodocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   804
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   805
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   806
ALL_OTHER_TARGETS += smartcardiodocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   807
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   808
SMARTCARDIO_DOCDIR := $(JRE_API_DOCSDIR)/security/smartcardio/spec
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   809
SMARTCARDIO2COREAPI := ../../../$(JDKJRE2COREAPI)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   810
SMARTCARDIO_DOCTITLE := Java$(TRADEMARK) Smart Card I/O
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   811
SMARTCARDIO_WINDOWTITLE := Java Smart Card I/O
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   812
SMARTCARDIO_HEADER := <strong>Java Smart Card I/O</strong>
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   813
SMARTCARDIO_BOTTOM := $(call CommonBottom,$(SMARTCARDIO_FIRST_COPYRIGHT_YEAR))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   814
# SMARTCARDIO_PKGS is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   815
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   816
# The index.html, options, and packages files
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   817
SMARTCARDIO_INDEX_FILE = $(SMARTCARDIO_DOCDIR)/index.html
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   818
SMARTCARDIO_OPTIONS_FILE = $(DOCSTMPDIR)/smartcardio.options
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   819
SMARTCARDIO_PACKAGES_FILE = $(DOCSTMPDIR)/smartcardio.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   820
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   821
smartcardiodocs: $(SMARTCARDIO_INDEX_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   822
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   823
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   824
$(SMARTCARDIO_INDEX_FILE): GET2DOCSDIR=$(SMARTCARDIO2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   825
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   826
# Run javadoc if the index file is out of date or missing
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   827
$(SMARTCARDIO_INDEX_FILE): $(SMARTCARDIO_OPTIONS_FILE) $(SMARTCARDIO_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   828
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   829
	$(call JavadocSummary,$(SMARTCARDIO_OPTIONS_FILE),$(SMARTCARDIO_PACKAGES_FILE))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   830
	$(JAVADOC_CMD) -d $(@D) \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   831
	    @$(SMARTCARDIO_OPTIONS_FILE) @$(SMARTCARDIO_PACKAGES_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   832
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   833
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   834
$(SMARTCARDIO_OPTIONS_FILE):
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   835
	$(prep-target)
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   836
	@($(call COMMON_JAVADOCFLAGS) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   837
          $(call COMMON_JAVADOCTAGS) ; \
22033
c323078abaf4 8031081: Use separate doclint flags for different doc bundles
darcy
parents: 21759
diff changeset
   838
	  $(call OptionOnly,-Xdoclint:none) ; \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   839
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   840
	  $(call OptionPair,-encoding,ascii) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   841
	  $(call OptionOnly,-nodeprecatedlist) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   842
	  $(call OptionPair,-doctitle,$(SMARTCARDIO_DOCTITLE)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   843
	  $(call OptionPair,-windowtitle,$(SMARTCARDIO_WINDOWTITLE) $(DRAFT_WINTITLE)); \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   844
	  $(call OptionPair,-header,$(SMARTCARDIO_HEADER)$(DRAFT_HEADER)); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   845
	  $(call OptionPair,-bottom,$(SMARTCARDIO_BOTTOM)$(DRAFT_BOTTOM)); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   846
	  $(call OptionTrip,-linkoffline,$(SMARTCARDIO2COREAPI),$(COREAPI_DOCSDIR)/); \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   847
	) >> $@
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   848
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   849
# Create a file with the package names in it
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   850
$(SMARTCARDIO_PACKAGES_FILE): $(call PackageDependencies,$(SMARTCARDIO_PKGS))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   851
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   852
	$(call PackageFilter,$(SMARTCARDIO_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   853
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   854
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   855
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   856
# httpserverdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   857
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   858
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   859
ALL_OTHER_TARGETS += httpserverdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   860
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   861
HTTPSERVER_DOCDIR := $(JRE_API_DOCSDIR)/net/httpserver/spec
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   862
HTTPSERVER2COREAPI := ../../../$(JDKJRE2COREAPI)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   863
HTTPSERVER_DOCTITLE := Java$(TRADEMARK) HTTP Server
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   864
HTTPSERVER_WINDOWTITLE := Java HTTP Server
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   865
HTTPSERVER_HEADER := <strong>Java HTTP Server</strong>
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   866
HTTPSERVER_BOTTOM := $(call CommonBottom,$(HTTPSERVER_FIRST_COPYRIGHT_YEAR))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   867
# HTTPSERVER_PKGS is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   868
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   869
HTTPSERVER_INDEX_HTML = $(HTTPSERVER_DOCDIR)/index.html
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   870
HTTPSERVER_OPTIONS_FILE = $(DOCSTMPDIR)/httpserver.options
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   871
HTTPSERVER_PACKAGES_FILE = $(DOCSTMPDIR)/httpserver.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   872
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   873
httpserverdocs: $(HTTPSERVER_INDEX_HTML)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   874
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   875
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   876
$(HTTPSERVER_INDEX_HTML): GET2DOCSDIR=$(HTTPSERVER2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   877
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   878
# Run javadoc if the index file is out of date or missing
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   879
$(HTTPSERVER_INDEX_HTML): $(HTTPSERVER_OPTIONS_FILE) $(HTTPSERVER_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   880
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   881
	$(call JavadocSummary,$(HTTPSERVER_OPTIONS_FILE),$(HTTPSERVER_PACKAGES_FILE))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   882
	$(JAVADOC_CMD) -d $(@D) \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   883
	    @$(HTTPSERVER_OPTIONS_FILE) @$(HTTPSERVER_PACKAGES_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   884
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   885
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   886
$(HTTPSERVER_OPTIONS_FILE):
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   887
	$(prep-target)
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   888
	@($(call COMMON_JAVADOCFLAGS) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   889
          $(call COMMON_JAVADOCTAGS) ; \
22033
c323078abaf4 8031081: Use separate doclint flags for different doc bundles
darcy
parents: 21759
diff changeset
   890
	  $(call OptionOnly,-Xdoclint:none) ; \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   891
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   892
	  $(call OptionPair,-encoding,ascii) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   893
	  $(call OptionOnly,-nodeprecatedlist) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   894
	  $(call OptionPair,-doctitle,$(HTTPSERVER_DOCTITLE)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   895
	  $(call OptionPair,-windowtitle,$(HTTPSERVER_WINDOWTITLE) $(DRAFT_WINTITLE)); \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   896
	  $(call OptionPair,-header,$(HTTPSERVER_HEADER)$(DRAFT_HEADER)); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   897
	  $(call OptionPair,-bottom,$(HTTPSERVER_BOTTOM)$(DRAFT_BOTTOM)); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   898
	  $(call OptionTrip,-linkoffline,$(HTTPSERVER2COREAPI),$(COREAPI_DOCSDIR)/); \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   899
	) >> $@
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   900
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   901
# Create a file with the package names in it
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   902
$(HTTPSERVER_PACKAGES_FILE): $(call PackageDependencies,$(HTTPSERVER_PKGS))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   903
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   904
	$(call PackageFilter,$(HTTPSERVER_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   905
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   906
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   907
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   908
# mgmtdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   909
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   910
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   911
ALL_OTHER_TARGETS += mgmtdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   912
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   913
MGMT_DOCDIR := $(JRE_API_DOCSDIR)/management/extension
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   914
MGMT2COREAPI := ../../$(JDKJRE2COREAPI)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   915
JVM_MIB_NAME := JVM-MANAGEMENT-MIB.mib
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   916
JVM_MIB_SRC := $(JDK_TOPDIR)/src/closed/share/classes/sun/management/snmp/$(JVM_MIB_NAME)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   917
MGMT_DOCTITLE := Monitoring and Management Interface for the Java$(TRADEMARK) Platform
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   918
MGMT_WINDOWTITLE := Monitoring and Management Interface for the Java Platform
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   919
MGMT_HEADER := <strong>Monitoring and Management Interface for the Java Platform</strong>
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   920
MGMT_BOTTOM := $(call CommonBottom,$(MGMT_FIRST_COPYRIGHT_YEAR))
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   921
MGMT_OVERVIEW := $(JDK_SHARE_CLASSES)/com/sun/management/mgmt-overview.html
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   922
# MGMT_PKGS is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   923
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   924
# The index.html, options, and packages files
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   925
MGMT_INDEX_FILE = $(MGMT_DOCDIR)/index.html
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   926
MGMT_OPTIONS_FILE = $(DOCSTMPDIR)/mgmt.options
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   927
MGMT_PACKAGES_FILE = $(DOCSTMPDIR)/mgmt.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   928
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   929
mgmtdocs: $(MGMT_INDEX_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   930
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   931
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   932
$(MGMT_INDEX_FILE): GET2DOCSDIR=$(MGMT2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   933
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   934
# Run javadoc if the index file is out of date or missing
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   935
$(MGMT_INDEX_FILE): $(MGMT_OPTIONS_FILE) $(MGMT_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   936
	$(prep-javadoc)
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   937
	@if [ -f $(JVM_MIB_SRC) ] ; then \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   938
	  $(CP) $(JVM_MIB_SRC) $(@D)/.. ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   939
	else \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   940
	  $(ECHO) "WARNING: File $(JVM_MIB_NAME) not available."; \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   941
	fi
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   942
	$(call JavadocSummary,$(MGMT_OPTIONS_FILE),$(MGMT_PACKAGES_FILE))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   943
	$(JAVADOC_CMD) -d $(@D) \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   944
	    @$(MGMT_OPTIONS_FILE) @$(MGMT_PACKAGES_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   945
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   946
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   947
$(MGMT_OPTIONS_FILE): $(MGMT_OVERVIEW)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   948
	$(prep-target)
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   949
	@($(call COMMON_JAVADOCFLAGS) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   950
          $(call COMMON_JAVADOCTAGS) ; \
22033
c323078abaf4 8031081: Use separate doclint flags for different doc bundles
darcy
parents: 21759
diff changeset
   951
	  $(call OptionOnly,-Xdoclint:none) ; \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   952
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   953
	  $(call OptionPair,-encoding,ascii) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   954
	  $(call OptionOnly,-nodeprecatedlist) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   955
	  $(call OptionPair,-overview,$(MGMT_OVERVIEW)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   956
	  $(call OptionPair,-doctitle,$(MGMT_DOCTITLE)) ; \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   957
	  $(call OptionPair,-windowtitle,$(MGMT_WINDOWTITLE) $(DRAFT_WINTITLE)); \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   958
	  $(call OptionPair,-header,$(MGMT_HEADER)$(DRAFT_HEADER)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   959
	  $(call OptionPair,-bottom,$(MGMT_BOTTOM)$(DRAFT_BOTTOM)) ; \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   960
	  $(call OptionTrip,-linkoffline,$(MGMT2COREAPI),$(COREAPI_DOCSDIR)/); \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   961
	) >> $@
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   962
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   963
# Create a file with the package names in it
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   964
$(MGMT_PACKAGES_FILE): $(call PackageDependencies,$(MGMT_PKGS))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   965
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   966
	$(call PackageFilter,$(MGMT_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   967
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   968
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   969
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   970
# attachdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   971
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   972
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   973
ALL_OTHER_TARGETS += attachdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   974
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   975
ATTACH_DOCDIR := $(JDK_API_DOCSDIR)/attach/spec
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   976
ATTACH2COREAPI := ../../$(JDKJRE2COREAPI)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   977
ATTACH_DOCTITLE := Attach API
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   978
ATTACH_WINDOWTITLE := Attach API
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   979
ATTACH_HEADER := <strong>Attach API</strong>
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   980
ATTACH_BOTTOM := $(call CommonBottom,$(ATTACH_FIRST_COPYRIGHT_YEAR))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   981
# ATTACH_PKGS is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   982
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   983
ATTACH_INDEX_HTML = $(ATTACH_DOCDIR)/index.html
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   984
ATTACH_OPTIONS_FILE = $(DOCSTMPDIR)/attach.options
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   985
ATTACH_PACKAGES_FILE = $(DOCSTMPDIR)/attach.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   986
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   987
attachdocs: $(ATTACH_INDEX_HTML)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   988
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   989
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   990
$(ATTACH_INDEX_HTML): GET2DOCSDIR=$(ATTACH2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   991
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   992
# Run javadoc if the index file is out of date or missing
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   993
$(ATTACH_INDEX_HTML): $(ATTACH_OPTIONS_FILE) $(ATTACH_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   994
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   995
	$(call JavadocSummary,$(ATTACH_OPTIONS_FILE),$(ATTACH_PACKAGES_FILE))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   996
	$(JAVADOC_CMD) -d $(@D) \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   997
	    @$(ATTACH_OPTIONS_FILE) @$(ATTACH_PACKAGES_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   998
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   999
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1000
$(ATTACH_OPTIONS_FILE):
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1001
	$(prep-target)
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
  1002
	@($(call COMMON_JAVADOCFLAGS) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
  1003
          $(call COMMON_JAVADOCTAGS) ; \
22033
c323078abaf4 8031081: Use separate doclint flags for different doc bundles
darcy
parents: 21759
diff changeset
  1004
	  $(call OptionOnly,-Xdoclint:none) ; \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1005
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1006
	  $(call OptionPair,-encoding,ascii) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1007
	  $(call OptionOnly,-nodeprecatedlist) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1008
	  $(call OptionPair,-doctitle,$(ATTACH_DOCTITLE)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1009
	  $(call OptionPair,-windowtitle,$(ATTACH_WINDOWTITLE) $(DRAFT_WINTITLE)); \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1010
	  $(call OptionPair,-header,$(ATTACH_HEADER)$(DRAFT_HEADER)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1011
	  $(call OptionPair,-bottom,$(ATTACH_BOTTOM)$(DRAFT_BOTTOM)) ; \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1012
	  $(call OptionTrip,-linkoffline,$(ATTACH2COREAPI),$(COREAPI_DOCSDIR)/); \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1013
	) >> $@
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1014
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1015
# Create a file with the package names in it
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
  1016
$(ATTACH_PACKAGES_FILE): $(call PackageDependencies,$(ATTACH_PKGS))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1017
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1018
	$(call PackageFilter,$(ATTACH_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1019
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1020
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1021
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1022
# jconsoledocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1023
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1024
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1025
ALL_OTHER_TARGETS += jconsoledocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1026
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1027
JCONSOLE_DOCDIR := $(JDK_API_DOCSDIR)/jconsole/spec
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1028
JCONSOLE2COREAPI := ../../$(JDKJRE2COREAPI)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1029
JCONSOLE_DOCTITLE := JConsole API
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1030
JCONSOLE_WINDOWTITLE := JConsole API
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1031
JCONSOLE_HEADER := <strong>JConsole API</strong>
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1032
JCONSOLE_BOTTOM := $(call CommonBottom,$(JCONSOLE_FIRST_COPYRIGHT_YEAR))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1033
# JCONSOLE_PKGS is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1034
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1035
JCONSOLE_INDEX_HTML = $(JCONSOLE_DOCDIR)/index.html
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1036
JCONSOLE_OPTIONS_FILE = $(DOCSTMPDIR)/jconsole.options
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1037
JCONSOLE_PACKAGES_FILE = $(DOCSTMPDIR)/jconsole.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1038
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1039
jconsoledocs: $(JCONSOLE_INDEX_HTML)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1040
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1041
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1042
$(JCONSOLE_INDEX_HTML): GET2DOCSDIR=$(JCONSOLE2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1043
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1044
# Run javadoc if the index file is out of date or missing
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
  1045
$(JCONSOLE_INDEX_HTML): $(JCONSOLE_OPTIONS_FILE) $(JCONSOLE_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1046
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1047
	$(call JavadocSummary,$(JCONSOLE_OPTIONS_FILE),$(JCONSOLE_PACKAGES_FILE))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1048
	$(JAVADOC_CMD) -d $(@D) \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1049
	    @$(JCONSOLE_OPTIONS_FILE) @$(JCONSOLE_PACKAGES_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1050
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1051
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1052
$(JCONSOLE_OPTIONS_FILE):
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1053
	$(prep-target)
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
  1054
	@($(call COMMON_JAVADOCFLAGS) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
  1055
          $(call COMMON_JAVADOCTAGS) ; \
22033
c323078abaf4 8031081: Use separate doclint flags for different doc bundles
darcy
parents: 21759
diff changeset
  1056
	  $(call OptionOnly,-Xdoclint:none) ; \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1057
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1058
	  $(call OptionPair,-encoding,ascii) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1059
	  $(call OptionOnly,-nodeprecatedlist) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1060
	  $(call OptionPair,-doctitle,$(JCONSOLE_DOCTITLE)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1061
	  $(call OptionPair,-windowtitle,$(JCONSOLE_WINDOWTITLE) $(DRAFT_WINTITLE)); \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1062
	  $(call OptionPair,-header,$(JCONSOLE_HEADER)$(DRAFT_HEADER)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1063
	  $(call OptionPair,-bottom,$(JCONSOLE_BOTTOM)$(DRAFT_BOTTOM)) ; \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1064
	  $(call OptionTrip,-linkoffline,$(JCONSOLE2COREAPI),$(COREAPI_DOCSDIR)/); \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1065
	) >> $@
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1066
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1067
# Create a file with the package names in it
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
  1068
$(JCONSOLE_PACKAGES_FILE): $(call PackageDependencies,$(JCONSOLE_PKGS))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1069
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1070
	$(call PackageFilter,$(JCONSOLE_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1071
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1072
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1073
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1074
# treeapidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1075
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1076
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1077
ALL_OTHER_TARGETS += treeapidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1078
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1079
TREEAPI_DOCDIR := $(JDK_API_DOCSDIR)/javac/tree
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1080
TREEAPI2COREAPI := ../../$(JDKJRE2COREAPI)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1081
TREEAPI_DOCTITLE := Compiler Tree API
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1082
TREEAPI_WINDOWTITLE := Compiler Tree API
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1083
TREEAPI_HEADER := <strong>Compiler Tree API</strong>
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1084
TREEAPI_BOTTOM := $(call CommonBottom,$(TREEAPI_FIRST_COPYRIGHT_YEAR))
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1085
TREEAPI_GROUPNAME := Packages
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1086
TREEAPI_REGEXP := com.sun.source.*
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1087
# TREEAPI_PKGS is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1088
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1089
TREEAPI_INDEX_HTML = $(TREEAPI_DOCDIR)/index.html
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1090
TREEAPI_OPTIONS_FILE = $(DOCSTMPDIR)/treeapi.options
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1091
TREEAPI_PACKAGES_FILE = $(DOCSTMPDIR)/treeapi.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1092
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1093
treeapidocs: $(TREEAPI_INDEX_HTML)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1094
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1095
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1096
$(TREEAPI_INDEX_HTML): GET2DOCSDIR=$(TREEAPI2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1097
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1098
# Run javadoc if the index file is out of date or missing
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
  1099
$(TREEAPI_INDEX_HTML): $(TREEAPI_OPTIONS_FILE) $(TREEAPI_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1100
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1101
	$(call JavadocSummary,$(TREEAPI_OPTIONS_FILE),$(TREEAPI_PACKAGES_FILE))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1102
	$(JAVADOC_CMD) -d $(@D) \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1103
	    @$(TREEAPI_OPTIONS_FILE) @$(TREEAPI_PACKAGES_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1104
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1105
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1106
$(TREEAPI_OPTIONS_FILE):
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1107
	$(prep-target)
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
  1108
	@($(call COMMON_JAVADOCFLAGS) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
  1109
          $(call COMMON_JAVADOCTAGS) ; \
25043
b5598c2ddf6f 8048302: Update bug reporting URL in make/Javadoc.gmk
darcy
parents: 24232
diff changeset
  1110
	  $(call OptionOnly,-Xdoclint:all) ; \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1111
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1112
	  $(call OptionPair,-encoding,ascii) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1113
	  $(call OptionPair,-doctitle,$(TREEAPI_DOCTITLE)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1114
	  $(call OptionPair,-windowtitle,$(TREEAPI_WINDOWTITLE) $(DRAFT_WINTITLE)); \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1115
	  $(call OptionPair,-header,$(TREEAPI_HEADER)$(DRAFT_HEADER)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1116
	  $(call OptionPair,-bottom,$(TREEAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1117
	  $(call OptionTrip,-group,$(TREEAPI_GROUPNAME),$(TREEAPI_REGEXP)); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1118
	  $(call OptionTrip,-linkoffline,$(TREEAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1119
	) >> $@
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1120
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1121
# Create a file with the package names in it
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
  1122
$(TREEAPI_PACKAGES_FILE): $(call PackageDependencies,$(TREEAPI_PKGS))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1123
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1124
	$(call PackageFilter,$(TREEAPI_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1125
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1126
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1127
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1128
# sctpdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1129
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1130
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1131
ALL_OTHER_TARGETS += sctpdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1132
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1133
SCTPAPI_DOCDIR := $(JRE_API_DOCSDIR)/nio/sctp/spec
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1134
SCTPAPI2COREAPI := ../../../$(JDKJRE2COREAPI)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1135
SCTPAPI_DOCTITLE := SCTP API
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1136
SCTPAPI_WINDOWTITLE := SCTP API
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1137
SCTPAPI_HEADER := <strong>SCTP API</strong>
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1138
SCTPAPI_BOTTOM := $(call CommonBottom,$(SCTPAPI_FIRST_COPYRIGHT_YEAR))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1139
# SCTPAPI_PKGS is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1140
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1141
SCTPAPI_INDEX_HTML = $(SCTPAPI_DOCDIR)/index.html
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1142
SCTPAPI_OPTIONS_FILE = $(DOCSTMPDIR)/sctp.options
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1143
SCTPAPI_PACKAGES_FILE = $(DOCSTMPDIR)/sctp.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1144
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1145
sctpdocs: $(SCTPAPI_INDEX_HTML)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1146
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1147
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1148
$(SCTPAPI_INDEX_HTML): GET2DOCSDIR=$(SCTPAPI2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1149
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1150
# Run javadoc if the index file is out of date or missing
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
  1151
$(SCTPAPI_INDEX_HTML): $(SCTPAPI_OPTIONS_FILE) $(SCTPAPI_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1152
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1153
	$(call JavadocSummary,$(SCTPAPI_OPTIONS_FILE),$(SCTPAPI_PACKAGES_FILE))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1154
	$(JAVADOC_CMD) -d $(@D) \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1155
	    @$(SCTPAPI_OPTIONS_FILE) @$(SCTPAPI_PACKAGES_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1156
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1157
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1158
$(SCTPAPI_OPTIONS_FILE):
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1159
	$(prep-target)
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
  1160
	@($(call COMMON_JAVADOCFLAGS) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
  1161
          $(call COMMON_JAVADOCTAGS) ; \
22033
c323078abaf4 8031081: Use separate doclint flags for different doc bundles
darcy
parents: 21759
diff changeset
  1162
	  $(call OptionOnly,-Xdoclint:none) ; \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1163
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1164
	  $(call OptionPair,-encoding,ascii) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1165
	  $(call OptionOnly,-nodeprecatedlist) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1166
	  $(call OptionPair,-doctitle,$(SCTPAPI_DOCTITLE)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1167
	  $(call OptionPair,-windowtitle,$(SCTPAPI_WINDOWTITLE) $(DRAFT_WINTITLE)); \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1168
	  $(call OptionPair,-header,$(SCTPAPI_HEADER)$(DRAFT_HEADER)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1169
	  $(call OptionPair,-bottom,$(SCTPAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1170
	  $(call OptionTrip,-linkoffline,$(SCTPAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1171
	) >> $@
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1172
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1173
# Create a file with the package names in it
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
  1174
$(SCTPAPI_PACKAGES_FILE): $(call PackageDependencies,$(SCTPAPI_PKGS))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1175
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1176
	$(call PackageFilter,$(SCTPAPI_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1177
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1178
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1179
#
23836
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1180
# jdk.net docs
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1181
#
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1182
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1183
ALL_OTHER_TARGETS += jdknetdocs
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1184
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1185
JDKNET_DOCDIR := $(JRE_API_DOCSDIR)/net/socketoptions/spec
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1186
JDKNET2COREAPI := ../../../$(JDKJRE2COREAPI)
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1187
JDKNET_DOCTITLE := jdk.net API
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1188
JDKNET_WINDOWTITLE := jdk.net API
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1189
JDKNET_HEADER := <strong>jdk.net API</strong>
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1190
JDKNET_BOTTOM := $(call CommonBottom,$(JDKNET_FIRST_COPYRIGHT_YEAR))
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1191
JDKNET_PKGS := jdk.net
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1192
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1193
JDKNET_INDEX_HTML = $(JDKNET_DOCDIR)/index.html
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1194
JDKNET_OPTIONS_FILE = $(DOCSTMPDIR)/jdknet.options
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1195
JDKNET_PACKAGES_FILE = $(DOCSTMPDIR)/jdknet.packages
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1196
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1197
jdknetdocs: $(JDKNET_INDEX_HTML)
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1198
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1199
# Set relative location to core api document root
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1200
$(JDKNET_INDEX_HTML): GET2DOCSDIR=$(JDKNET2COREAPI)/..
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1201
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1202
# Run javadoc if the index file is out of date or missing
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
  1203
$(JDKNET_INDEX_HTML): $(JDKNET_OPTIONS_FILE) $(JDKNET_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
23836
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1204
	$(prep-javadoc)
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1205
	$(call JavadocSummary,$(JDKNET_OPTIONS_FILE),$(JDKNET_PACKAGES_FILE))
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1206
	$(JAVADOC_CMD) -d $(@D) \
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1207
	    @$(JDKNET_OPTIONS_FILE) @$(JDKNET_PACKAGES_FILE)
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1208
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1209
# Create file with javadoc options in it
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1210
$(JDKNET_OPTIONS_FILE):
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1211
	$(prep-target)
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
  1212
	@($(call COMMON_JAVADOCFLAGS) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
  1213
          $(call COMMON_JAVADOCTAGS) ; \
23836
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1214
	  $(call OptionOnly,-Xdoclint:none) ; \
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1215
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1216
	  $(call OptionPair,-encoding,ascii) ; \
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1217
	  $(call OptionOnly,-nodeprecatedlist) ; \
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1218
	  $(call OptionPair,-doctitle,$(JDKNET_DOCTITLE)) ; \
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1219
	  $(call OptionPair,-windowtitle,$(JDKNET_WINDOWTITLE) $(DRAFT_WINTITLE)); \
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1220
	  $(call OptionPair,-header,$(JDKNET_HEADER)$(DRAFT_HEADER)); \
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1221
	  $(call OptionPair,-bottom,$(JDKNET_BOTTOM)$(DRAFT_BOTTOM)); \
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1222
	  $(call OptionTrip,-linkoffline,$(JDKNET2COREAPI),$(COREAPI_DOCSDIR)/); \
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1223
	) >> $@
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1224
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1225
# Create a file with the package names in it
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
  1226
$(JDKNET_PACKAGES_FILE): $(call PackageDependencies,$(JDKNET_PKGS))
23836
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1227
	$(prep-target)
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1228
	$(call PackageFilter,$(JDKNET_PKGS))
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1229
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1230
#############################################################
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1231
#release version of core packages ########
21759
e24e22311718 8027566: Remove the old build system
ihse
parents: 20365
diff changeset
  1232
e24e22311718 8027566: Remove the old build system
ihse
parents: 20365
diff changeset
  1233
# The rel-coredocs and rel-docs targets were added by Eric Armstrong. rel-coredocs
e24e22311718 8027566: Remove the old build system
ihse
parents: 20365
diff changeset
  1234
# assumes the kind of large, 32-bit machine used in the javapubs group's docs-release
e24e22311718 8027566: Remove the old build system
ihse
parents: 20365
diff changeset
  1235
# process. It specifies memory settings accordingly to maximize performance.
e24e22311718 8027566: Remove the old build system
ihse
parents: 20365
diff changeset
  1236
#
e24e22311718 8027566: Remove the old build system
ihse
parents: 20365
diff changeset
  1237
# The performance settings, like the sanity check, are most important for the core
e24e22311718 8027566: Remove the old build system
ihse
parents: 20365
diff changeset
  1238
# docs--the platform APIs. Running javadoc on those APIs takes a significant amount
e24e22311718 8027566: Remove the old build system
ihse
parents: 20365
diff changeset
  1239
# of time and memory. Setting the initial heap size as large as possible is important
e24e22311718 8027566: Remove the old build system
ihse
parents: 20365
diff changeset
  1240
# to prevent thrashing as the heap grows. Setting the maximum as large as necessary
e24e22311718 8027566: Remove the old build system
ihse
parents: 20365
diff changeset
  1241
# is also important to keep the job from failing.
e24e22311718 8027566: Remove the old build system
ihse
parents: 20365
diff changeset
  1242
#
e24e22311718 8027566: Remove the old build system
ihse
parents: 20365
diff changeset
  1243
#    -J-Xmx512 sets a maximum of 512, which became necessary in 6.0
e24e22311718 8027566: Remove the old build system
ihse
parents: 20365
diff changeset
  1244
#    -J-Xms256 sets starting size to 256 (default is 8)
e24e22311718 8027566: Remove the old build system
ihse
parents: 20365
diff changeset
  1245
#
e24e22311718 8027566: Remove the old build system
ihse
parents: 20365
diff changeset
  1246
# rel-coredocs also includes a sanity check to help ensure that BUILD_NUMBER and
e24e22311718 8027566: Remove the old build system
ihse
parents: 20365
diff changeset
  1247
# MILESTONE are specified properly when docs are built outside of the normal release
e24e22311718 8027566: Remove the old build system
ihse
parents: 20365
diff changeset
  1248
# engineering process, with the intention of releasing them on the web or in a downloaded
e24e22311718 8027566: Remove the old build system
ihse
parents: 20365
diff changeset
  1249
# docs bundle. (When invoked in release engineering's control build, the values are always
e24e22311718 8027566: Remove the old build system
ihse
parents: 20365
diff changeset
  1250
# set properly. But when the targets are run by themselves, they default to b00 and
e24e22311718 8027566: Remove the old build system
ihse
parents: 20365
diff changeset
  1251
# "internal"--which silently sabotage the result of a build that can take many hours
e24e22311718 8027566: Remove the old build system
ihse
parents: 20365
diff changeset
  1252
# to complete.
e24e22311718 8027566: Remove the old build system
ihse
parents: 20365
diff changeset
  1253
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1254
# Maximize performance and ensure that build number & milestone are set.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1255
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1256
rel-coredocs: sanitycheckcoredocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1257
	$(MAKE) coredocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1258
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1259
rel-docs: rel-coredocs $(ALL_OTHER_TARGETS)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1260
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1261
# end of production targets
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1262
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1263
otherdocs: $(ALL_OTHER_TARGETS)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1264
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1265
clean:
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1266
	$(RM) -r $(DOCSDIR) $(DOCSTMPDIR)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1267
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1268
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1269
# DEBUG TARGET
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1270
# List the values defined in the makefile hierarchy, to make sure everything
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1271
# is set properly, and to help identify values we can use instead of making new ones.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1272
# (Most of them come from common/shared/Defs.gmk)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1273
#
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1274
# Notes:
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1275
# * BUILD_NUMBER defaults to b00 if not set on command line with BUILD_NUMBER=<value>
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1276
# * MILESTONE defaults to internal unless set to beta, rc, or fcs on command line
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1277
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1278
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1279
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1280
.PHONY: all docs coredocs rel-docs otherdocs rel-coredocs \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1281
    sanitycheckcoredocs $(ALL_OTHER_TARGETS)