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