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