author | plevart |
Sat, 13 Jul 2019 10:43:45 +0000 | |
changeset 55697 | 7fd4446c02ee |
parent 55486 | fe6c2f0b42be |
child 55488 | d3e45bd166dc |
permissions | -rw-r--r-- |
53995 | 1 |
# Copyright (c) 1997, 2019, 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 |
||
41652
a0664e2b49a1
8168772: Convert javadoc generation to build-infra standards
ihse
parents:
41260
diff
changeset
|
25 |
default: all |
a0664e2b49a1
8168772: Convert javadoc generation to build-infra standards
ihse
parents:
41260
diff
changeset
|
26 |
|
13697 | 27 |
include $(SPEC) |
28 |
include MakeBase.gmk |
|
53995 | 29 |
include Execute.gmk |
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
30 |
include Modules.gmk |
52940
26e2cfebcfba
8214720: Add pandoc filter to improve html man page output
ihse
parents:
52714
diff
changeset
|
31 |
include ModuleTools.gmk |
44983 | 32 |
include ProcessMarkdown.gmk |
52940
26e2cfebcfba
8214720: Add pandoc filter to improve html man page output
ihse
parents:
52714
diff
changeset
|
33 |
include ToolsJdk.gmk |
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
34 |
include ZipArchive.gmk |
54747
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
35 |
include TextFileProcessing.gmk |
13697 | 36 |
|
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
37 |
# This is needed to properly setup DOCS_MODULES. |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
38 |
$(eval $(call ReadImportMetaData)) |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
39 |
|
41652
a0664e2b49a1
8168772: Convert javadoc generation to build-infra standards
ihse
parents:
41260
diff
changeset
|
40 |
################################################################################ |
44827 | 41 |
# Hook to include the corresponding custom file, if present. |
47314 | 42 |
$(eval $(call IncludeCustomExtension, Docs.gmk)) |
44827 | 43 |
|
44 |
################################################################################ |
|
45323
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
45 |
# This file generates all documentation for OpenJDK. |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
46 |
# |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
47 |
# We will generate API documentation for two different selections of the source |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
48 |
# code: "Java SE", which contains just the modules covered by the top-level |
48841 | 49 |
# module java.se and "JDK", which covers all of Java SE and also all |
45323
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
50 |
# other available modules that should be documented, including imported modules, |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
51 |
# if any. |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
52 |
# |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
53 |
# We will also generate separate, free-standing specifications from either |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
54 |
# markdown or existing html files. |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
55 |
# |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
56 |
|
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
57 |
################################################################################ |
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
58 |
# Javadoc settings |
13697 | 59 |
|
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
60 |
# On top of the sources that was used to compile the JDK, we need some |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
61 |
# extra java.rmi sources that are used just for javadoc. |
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
62 |
MODULES_SOURCE_PATH := $(call PathList, $(call GetModuleSrcPath) \ |
47217 | 63 |
$(SUPPORT_OUTPUTDIR)/rmic/* $(TOPDIR)/src/*/share/doc/stub) |
36506 | 64 |
|
41652
a0664e2b49a1
8168772: Convert javadoc generation to build-infra standards
ihse
parents:
41260
diff
changeset
|
65 |
# URLs |
52318
124af9276e44
8213102: Oracle Unilinks are [301 Moved Permanently] to https://docs.oracle.com
jjg
parents:
52296
diff
changeset
|
66 |
JAVADOC_BASE_URL := https://docs.oracle.com/pls/topic/lookup?ctx=javase$(VERSION_NUMBER)&id=homepage |
52296
26207007d234
8212994: Links to Oracle websites should use "https:"
iris
parents:
52204
diff
changeset
|
67 |
BUG_SUBMIT_URL := https://bugreport.java.com/bugreport/ |
54747
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
68 |
COPYRIGHT_URL := legal/copyright.html |
52296
26207007d234
8212994: Links to Oracle websites should use "https:"
iris
parents:
52204
diff
changeset
|
69 |
LICENSE_URL := https://www.oracle.com/technetwork/java/javase/terms/license/java$(VERSION_NUMBER)speclicense.html |
26207007d234
8212994: Links to Oracle websites should use "https:"
iris
parents:
52204
diff
changeset
|
70 |
REDISTRIBUTION_URL := https://www.oracle.com/technetwork/java/redist-137594.html |
44990
db3606f423a3
8140268: Generate link to specification license for JavaDoc API documentation
ihse
parents:
44989
diff
changeset
|
71 |
|
42135 | 72 |
# In order to get a specific ordering it's necessary to specify the total |
73 |
# ordering of tags as the tags are otherwise ordered in order of definition. |
|
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
74 |
JAVADOC_TAGS := \ |
42135 | 75 |
-tag beaninfo:X \ |
76 |
-tag revised:X \ |
|
77 |
-tag since.unbundled:X \ |
|
78 |
-tag spec:X \ |
|
79 |
-tag specdefault:X \ |
|
80 |
-tag Note:X \ |
|
81 |
-tag ToDo:X \ |
|
82 |
-tag 'apiNote:a:API Note:' \ |
|
83 |
-tag 'implSpec:a:Implementation Requirements:' \ |
|
84 |
-tag 'implNote:a:Implementation Note:' \ |
|
85 |
-tag param \ |
|
86 |
-tag return \ |
|
87 |
-tag throws \ |
|
54953
566fbca8a890
8224166: Create a taglet to better handle @jls and @jvms tags
jjg
parents:
54950
diff
changeset
|
88 |
-taglet build.tools.taglet.JSpec\$$JLS \ |
566fbca8a890
8224166: Create a taglet to better handle @jls and @jvms tags
jjg
parents:
54950
diff
changeset
|
89 |
-taglet build.tools.taglet.JSpec\$$JVMS \ |
44397
f932d6b9f7fe
8173303: Add module-subgraph images to main platform documentation
mchung
parents:
44071
diff
changeset
|
90 |
-taglet build.tools.taglet.ModuleGraph \ |
54950 | 91 |
-taglet build.tools.taglet.ToolGuide \ |
42135 | 92 |
-tag since \ |
93 |
-tag serialData \ |
|
94 |
-tag factory \ |
|
95 |
-tag see \ |
|
44826
7a887996ee84
8178725: provide way to link to external documentation
ksrini
parents:
44734
diff
changeset
|
96 |
-taglet build.tools.taglet.ExtLink \ |
43285
223c3eea12e4
8173354: javadoc warning notice for types in Incubator Modules
chegar
parents:
43171
diff
changeset
|
97 |
-taglet build.tools.taglet.Incubating \ |
223c3eea12e4
8173354: javadoc warning notice for types in Incubator Modules
chegar
parents:
43171
diff
changeset
|
98 |
-tagletpath $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \ |
44827 | 99 |
$(CUSTOM_JAVADOC_TAGS) \ |
42135 | 100 |
# |
101 |
||
47432
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
102 |
# The reference tags must stay stable to allow for comparisons across the |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
103 |
# development cycle. If JAVADOC_TAGS needs to change, make sure that |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
104 |
# REFERENCE_TAGS remains unchanged, by copying and hardcoding, if necessary. |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
105 |
REFERENCE_TAGS := $(JAVADOC_TAGS) |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
106 |
|
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
107 |
# Which doclint checks to ignore |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
108 |
JAVADOC_DISABLED_DOCLINT := accessibility html missing syntax reference |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
109 |
|
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
110 |
# The initial set of options for javadoc |
46087 | 111 |
JAVADOC_OPTIONS := -use -keywords -notimestamp \ |
112 |
-serialwarn -encoding ISO-8859-1 -docencoding UTF-8 -breakiterator \ |
|
49428
ce86061aff12
8199705: Docs.gmk needs to be updated to remove the -html5 option
bpatel
parents:
49075
diff
changeset
|
113 |
-splitIndex --system none -javafx --expand-requires transitive \ |
47429
aa31c0a9ebca
8189706: javadoc for the JDK APIs should summarize overridden methods with no specification changes
ksrini
parents:
47314
diff
changeset
|
114 |
--override-methods=summary |
41652
a0664e2b49a1
8168772: Convert javadoc generation to build-infra standards
ihse
parents:
41260
diff
changeset
|
115 |
|
47432
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
116 |
# The reference options must stay stable to allow for comparisons across the |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
117 |
# development cycle. |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
118 |
REFERENCE_OPTIONS := -XDignore.symbol.file=true -use -keywords -notimestamp \ |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
119 |
-serialwarn -encoding ISO-8859-1 -breakiterator -splitIndex --system none \ |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
120 |
-html5 -javafx --expand-requires transitive |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
121 |
|
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
122 |
# Should we add DRAFT stamps to the generated javadoc? |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
123 |
ifeq ($(VERSION_IS_GA), true) |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
124 |
IS_DRAFT := false |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
125 |
else |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
126 |
IS_DRAFT := true |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
127 |
endif |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
128 |
|
41652
a0664e2b49a1
8168772: Convert javadoc generation to build-infra standards
ihse
parents:
41260
diff
changeset
|
129 |
################################################################################ |
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
130 |
# General text snippets |
41652
a0664e2b49a1
8168772: Convert javadoc generation to build-infra standards
ihse
parents:
41260
diff
changeset
|
131 |
|
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
132 |
FULL_COMPANY_NAME := Oracle and/or its affiliates |
45616 | 133 |
COMPANY_ADDRESS := 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
13697 | 134 |
|
45616 | 135 |
JAVA_PLATFORM := Java Platform |
45323
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
136 |
|
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
137 |
ifeq ($(IS_DRAFT), true) |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
138 |
DRAFT_MARKER_STR := <br><strong>DRAFT $(VERSION_STRING)</strong> |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
139 |
ifeq ($(VERSION_BUILD), 0) |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
140 |
DRAFT_MARKER_TITLE := [ad-hoc build] |
43047
28be7f773e4e
8172562: Changing log level on Javadoc causes total rebuild
ihse
parents:
43044
diff
changeset
|
141 |
else |
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
142 |
DRAFT_MARKER_TITLE := [build $(VERSION_BUILD)] |
43047
28be7f773e4e
8172562: Changing log level on Javadoc causes total rebuild
ihse
parents:
43044
diff
changeset
|
143 |
endif |
45616 | 144 |
DRAFT_TEXT := This specification is not final and is subject to change. \ |
145 |
Use is subject to <a href="$(LICENSE_URL)">license terms</a>. |
|
47432
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
146 |
|
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
147 |
# Workaround stylesheet bug |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
148 |
HEADER_STYLE := style="margin-top: 9px;" |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
149 |
else |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
150 |
HEADER_STYLE := style="margin-top: 14px;" |
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
151 |
endif |
42135 | 152 |
|
54747
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
153 |
# $1 - Relative prefix to COPYRIGHT_URL |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
154 |
COPYRIGHT_BOTTOM = \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
155 |
<a href="$(strip $1)$(COPYRIGHT_URL)">Copyright</a> \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
156 |
© 1993, $(COPYRIGHT_YEAR), $(FULL_COMPANY_NAME), \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
157 |
$(COMPANY_ADDRESS).<br>All rights reserved. \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
158 |
Use is subject to <a href="$(LICENSE_URL)">license terms</a> and the \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
159 |
<a href="$(REDISTRIBUTION_URL)">documentation redistribution policy</a>. \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
160 |
$(DRAFT_MARKER_STR) <!-- Version $(VERSION_STRING) --> |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
161 |
|
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
162 |
JAVADOC_BOTTOM := \ |
45616 | 163 |
<a href="$(BUG_SUBMIT_URL)">Report a bug or suggest an enhancement</a><br> \ |
164 |
For further API reference and developer documentation see the \ |
|
45108
8ad1bd49f4bc
8180328: Bad links in footer of all javadoc-generated pages
ihse
parents:
45105
diff
changeset
|
165 |
<a href="$(JAVADOC_BASE_URL)" target="_blank">Java SE \ |
45616 | 166 |
Documentation</a>, which contains more detailed, \ |
167 |
developer-targeted descriptions with conceptual overviews, definitions \ |
|
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
168 |
of terms, workarounds, and working code examples.<br> \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
169 |
Java is a trademark or registered trademark of $(FULL_COMPANY_NAME) in \ |
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
170 |
the US and other countries.<br> \ |
54747
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
171 |
$(call COPYRIGHT_BOTTOM, {@docroot}/../) |
45616 | 172 |
|
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
173 |
JAVADOC_TOP := \ |
45616 | 174 |
<div style="padding: 6px; text-align: center; font-size: 80%; \ |
175 |
font-family: DejaVu Sans, Arial, Helvetica, sans-serif; \ |
|
176 |
font-weight: normal;">$(DRAFT_TEXT)</div> |
|
41652
a0664e2b49a1
8168772: Convert javadoc generation to build-infra standards
ihse
parents:
41260
diff
changeset
|
177 |
|
a0664e2b49a1
8168772: Convert javadoc generation to build-infra standards
ihse
parents:
41260
diff
changeset
|
178 |
################################################################################ |
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
179 |
# JDK javadoc titles/text snippets |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
180 |
|
45616 | 181 |
JDK_SHORT_NAME := Java SE $(VERSION_SPECIFICATION) & JDK $(VERSION_SPECIFICATION) |
182 |
JDK_LONG_NAME := Java<sup>®</sup> Platform, Standard Edition \ |
|
45775
e333a1979702
8183251: Meta "keywords" tag malformed in overview-summary.html and related pages
mr
parents:
45617
diff
changeset
|
183 |
& Java Development Kit |
41652
a0664e2b49a1
8168772: Convert javadoc generation to build-infra standards
ihse
parents:
41260
diff
changeset
|
184 |
|
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
185 |
################################################################################ |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
186 |
# Java SE javadoc titles/text snippets |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
187 |
|
45616 | 188 |
JAVASE_SHORT_NAME := Java SE $(VERSION_SPECIFICATION) |
189 |
JAVASE_LONG_NAME := Java<sup>®</sup> Platform, Standard Edition |
|
41652
a0664e2b49a1
8168772: Convert javadoc generation to build-infra standards
ihse
parents:
41260
diff
changeset
|
190 |
|
a0664e2b49a1
8168772: Convert javadoc generation to build-infra standards
ihse
parents:
41260
diff
changeset
|
191 |
################################################################################ |
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
192 |
# Functions |
13697 | 193 |
|
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
194 |
# Helper function for creating a png file from a dot file generated by the |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
195 |
# GenGraphs tool. |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
196 |
# param 1: SetupJavadocGeneration namespace ($1) |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
197 |
# param 2: module name |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
198 |
# |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
199 |
define setup_gengraph_dot_to_png |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
200 |
$1_$2_DOT_SRC := $$($1_GENGRAPHS_DIR)/$2.dot |
48759
ffa68af7da87
8195795: Organize output files by module/package, not just package
jjg
parents:
47459
diff
changeset
|
201 |
$1_$2_PNG_TARGET := $$($1_TARGET_DIR)/$2/module-graph.png |
41652
a0664e2b49a1
8168772: Convert javadoc generation to build-infra standards
ihse
parents:
41260
diff
changeset
|
202 |
|
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
203 |
# For each module needing a graph, create a png file from the dot file |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
204 |
# generated by the GenGraphs tool and store it in the target dir. |
53995 | 205 |
$$(eval $$(call SetupExecute, gengraphs_png_$1_$2, \ |
206 |
INFO := Running dot for module graphs for $2, \ |
|
207 |
DEPS := $$(gengraphs_$1_TARGET), \ |
|
208 |
OUTPUT_FILE := $$($1_$2_PNG_TARGET), \ |
|
209 |
SUPPORT_DIR := $$($1_GENGRAPHS_DIR), \ |
|
210 |
COMMAND := $$(DOT) -Tpng -o $$($1_$2_PNG_TARGET) $$($1_$2_DOT_SRC), \ |
|
211 |
)) |
|
42427
2c48c5ffb581
8170648: Move java.net.http package out of Java SE to incubator namespace
michaelm
parents:
42290
diff
changeset
|
212 |
|
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
213 |
$1_MODULEGRAPH_TARGETS += $$($1_$2_PNG_TARGET) |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
214 |
endef |
41652
a0664e2b49a1
8168772: Convert javadoc generation to build-infra standards
ihse
parents:
41260
diff
changeset
|
215 |
|
45323
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
216 |
# Helper function to create the overview.html file to use with the -overview |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
217 |
# javadoc option. |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
218 |
# Returns the filename as $1_OVERVIEW. |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
219 |
# |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
220 |
# param 1: SetupJavadocGeneration namespace ($1) |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
221 |
define create_overview_file |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
222 |
$1_OVERVIEW_TEXT := \ |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
223 |
<!DOCTYPE html> \ |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
224 |
<html><head></head><body> \ |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
225 |
# |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
226 |
ifneq ($$($1_GROUPS),) |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
227 |
$1_OVERVIEW_TEXT += \ |
45616 | 228 |
<p>This document is divided into \ |
229 |
$$(subst 2,two,$$(subst 3,three,$$(words $$($1_GROUPS)))) sections:</p> \ |
|
230 |
<blockquote><dl> \ |
|
231 |
# |
|
45323
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
232 |
$1_OVERVIEW_TEXT += $$(foreach g, $$($1_GROUPS), \ |
52204 | 233 |
<dt style="margin-top: 8px;">$$($$g_GROUP_NAME)</dt> \ |
45775
e333a1979702
8183251: Meta "keywords" tag malformed in overview-summary.html and related pages
mr
parents:
45617
diff
changeset
|
234 |
<dd style="margin-top: 8px;">$$($$g_GROUP_DESCRIPTION)</dd> \ |
45323
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
235 |
) |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
236 |
$1_OVERVIEW_TEXT += \ |
45775
e333a1979702
8183251: Meta "keywords" tag malformed in overview-summary.html and related pages
mr
parents:
45617
diff
changeset
|
237 |
</dl></blockquote> \ |
45323
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
238 |
# |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
239 |
endif |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
240 |
$1_OVERVIEW_TEXT += \ |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
241 |
</body></html> \ |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
242 |
# |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
243 |
|
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
244 |
$1_OVERVIEW := $$(SUPPORT_OUTPUTDIR)/docs/$1-overview.html |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
245 |
|
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
246 |
$1_OVERVIEW_VARDEPS_FILE := $$(call DependOnVariable, $1_OVERVIEW_TEXT, \ |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
247 |
$$($1_OVERVIEW).vardeps) |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
248 |
|
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
249 |
$$($1_OVERVIEW): $$($1_OVERVIEW_VARDEPS_FILE) |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
250 |
$$(call LogInfo, Creating overview.html for $1) |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
251 |
$$(call MakeDir, $$(@D)) |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
252 |
$$(PRINTF) > $$@ '$$($1_OVERVIEW_TEXT)' |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
253 |
endef |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
254 |
|
41652
a0664e2b49a1
8168772: Convert javadoc generation to build-infra standards
ihse
parents:
41260
diff
changeset
|
255 |
################################################################################ |
45323
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
256 |
# Setup make rules to create an API documentation collection, using javadoc and |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
257 |
# other tools if needed. |
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
258 |
# |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
259 |
# Parameter 1 is the name of the rule. This name is used as variable prefix. |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
260 |
# Targets generated are returned as $1_JAVADOC_TARGETS and |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
261 |
# $1_MODULEGRAPH_TARGETS. Note that the index.html file will work as a "touch |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
262 |
# file" for all the magnitude of files that are generated by javadoc. |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
263 |
# |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
264 |
# Remaining parameters are named arguments. These include: |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
265 |
# MODULES - Modules to generate javadoc for |
45323
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
266 |
# GROUPS - Name of the groups to divide the modules into, if any |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
267 |
# SHORT_NAME - The short name of this documentation collection |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
268 |
# LONG_NAME - The long name of this documentation collection |
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
269 |
# TARGET_DIR - Where to store the output |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
270 |
# |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
271 |
SetupApiDocsGeneration = $(NamedParamsMacroTemplate) |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
272 |
define SetupApiDocsGenerationBody |
41652
a0664e2b49a1
8168772: Convert javadoc generation to build-infra standards
ihse
parents:
41260
diff
changeset
|
273 |
|
45233
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45229
diff
changeset
|
274 |
# Figure out all modules, both specified and transitive indirect exports, that |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45229
diff
changeset
|
275 |
# will be processed by javadoc. |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45229
diff
changeset
|
276 |
$1_INDIRECT_EXPORTS := $$(call FindTransitiveIndirectDepsForModules, $$($1_MODULES)) |
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45229
diff
changeset
|
277 |
$1_ALL_MODULES := $$(sort $$($1_MODULES) $$($1_INDIRECT_EXPORTS)) |
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
278 |
|
54953
566fbca8a890
8224166: Create a taglet to better handle @jls and @jvms tags
jjg
parents:
54950
diff
changeset
|
279 |
$1_JAVA_ARGS := -Dextlink.spec.version=$$(VERSION_SPECIFICATION) \ |
566fbca8a890
8224166: Create a taglet to better handle @jls and @jvms tags
jjg
parents:
54950
diff
changeset
|
280 |
-Djspec.version=$$(VERSION_SPECIFICATION) |
50969
3f879ff34084
8206184: docs-reference build fails due to extlink.spec.version property not set
mchung
parents:
50782
diff
changeset
|
281 |
|
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
282 |
ifeq ($$(ENABLE_FULL_DOCS), true) |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
283 |
# Tell the ModuleGraph taglet to generate html links to soon-to-be-created |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
284 |
# png files with module graphs. |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
285 |
$1_JAVA_ARGS += -DenableModuleGraph=true |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
286 |
endif |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
287 |
|
47432
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
288 |
# Start with basic options and tags |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
289 |
ifeq ($$($1_OPTIONS), ) |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
290 |
$1_OPTIONS := $$(JAVADOC_OPTIONS) |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
291 |
endif |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
292 |
ifeq ($$($1_TAGS), ) |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
293 |
$1_TAGS := $$(JAVADOC_TAGS) |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
294 |
endif |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
295 |
$1_OPTIONS += $$($1_TAGS) |
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
296 |
|
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
297 |
$1_OPTIONS += --module-source-path $$(MODULES_SOURCE_PATH) |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
298 |
$1_OPTIONS += --module $$(call CommaList, $$($1_MODULES)) |
41652
a0664e2b49a1
8168772: Convert javadoc generation to build-infra standards
ihse
parents:
41260
diff
changeset
|
299 |
|
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
300 |
# Create a string like "-Xdoclint:all,-syntax,-html,..." |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
301 |
$1_OPTIONS += -Xdoclint:all,$$(call CommaList, $$(addprefix -, \ |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
302 |
$$(JAVADOC_DISABLED_DOCLINT))) |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
303 |
|
47432
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
304 |
$1_DOC_TITLE := $$($1_LONG_NAME)<br>Version $$(VERSION_SPECIFICATION) API \ |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
305 |
Specification |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
306 |
$1_WINDOW_TITLE := $$(subst &,&,$$($1_SHORT_NAME)) $$(DRAFT_MARKER_TITLE) |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
307 |
$1_HEADER_TITLE := <div $$(HEADER_STYLE)><strong>$$($1_SHORT_NAME)</strong> \ |
45616 | 308 |
$$(DRAFT_MARKER_STR)</div> |
45323
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
309 |
|
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
310 |
$1_OPTIONS += -doctitle '$$($1_DOC_TITLE)' |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
311 |
$1_OPTIONS += -windowtitle '$$($1_WINDOW_TITLE)' |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
312 |
$1_OPTIONS += -header '$$($1_HEADER_TITLE)' |
45323
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
313 |
$1_OPTIONS += -bottom '$$(JAVADOC_BOTTOM)' |
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
314 |
ifeq ($$(IS_DRAFT), true) |
45323
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
315 |
$1_OPTIONS += -top '$$(JAVADOC_TOP)' |
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
316 |
endif |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
317 |
|
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
318 |
# Do not store debug level options in VARDEPS. |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
319 |
ifneq ($$(LOG_LEVEL), trace) |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
320 |
$1_LOG_OPTION += -quiet |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
321 |
else |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
322 |
$1_LOG_OPTION += -verbose |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
323 |
endif |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
324 |
|
45323
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
325 |
# Generate the overview.html file. This will return the filename in |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
326 |
# $1_OVERVIEW. |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
327 |
$$(eval $$(call create_overview_file,$1)) |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
328 |
$1_OPTIONS += -overview $$($1_OVERVIEW) |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
329 |
|
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
330 |
$$(foreach g, $$($1_GROUPS), \ |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
331 |
$$(eval $1_OPTIONS += -group "$$($$g_GROUP_NAME)" "$$($$g_GROUP_MODULES)") \ |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
332 |
) |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
333 |
|
47432
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
334 |
ifeq ($$($1_JAVADOC_CMD), ) |
50969
3f879ff34084
8206184: docs-reference build fails due to extlink.spec.version property not set
mchung
parents:
50782
diff
changeset
|
335 |
$1_JAVADOC_CMD := $$(JAVA) -Djava.awt.headless=true $$($1_JAVA_ARGS) \ |
47432
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
336 |
$$(NEW_JAVADOC) |
50969
3f879ff34084
8206184: docs-reference build fails due to extlink.spec.version property not set
mchung
parents:
50782
diff
changeset
|
337 |
else |
52714
2e52aa822c57
8178317: Create man pages using pandoc from markdown sources
ihse
parents:
52318
diff
changeset
|
338 |
$1_OPTIONS += $$(addprefix -J, $$($1_JAVA_ARGS)) |
47432
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
339 |
endif |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
340 |
|
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
341 |
$1_VARDEPS := $$($1_JAVA_ARGS) $$($1_OPTIONS) $$(MODULES_SOURCE_PATH) \ |
47432
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
342 |
$$($1_ALL_MODULES) $$($1_JAVADOC_CMD) |
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
343 |
$1_VARDEPS_FILE := $$(call DependOnVariable, $1_VARDEPS, \ |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
344 |
$$(SUPPORT_OUTPUTDIR)/docs/$1.vardeps) |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
345 |
|
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
346 |
# Get a list of all files in all the source dirs for all included modules |
54380 | 347 |
$1_SOURCE_DEPS := $$(call FindFiles, $$(wildcard $$(foreach module, \ |
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
348 |
$$($1_ALL_MODULES), $$(call FindModuleSrcDirs, $$(module))))) |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
349 |
|
53995 | 350 |
$$(eval $$(call SetupExecute, javadoc_$1, \ |
351 |
WARN := Generating $1 javadoc for $$(words $$($1_ALL_MODULES)) modules, \ |
|
352 |
INFO := Javadoc modules: $$($1_ALL_MODULES), \ |
|
353 |
DEPS := $$(BUILD_TOOLS_JDK) $$($1_VARDEPS_FILE) $$($1_SOURCE_DEPS) \ |
|
354 |
$$($1_OVERVIEW), \ |
|
355 |
OUTPUT_DIR := $$($1_TARGET_DIR), \ |
|
356 |
SUPPORT_DIR := $$(SUPPORT_OUTPUTDIR)/docs, \ |
|
357 |
COMMAND := $$($1_JAVADOC_CMD) -d $$($1_TARGET_DIR) $$($1_OPTIONS) \ |
|
358 |
$$($1_LOG_OPTION), \ |
|
359 |
)) |
|
13697 | 360 |
|
53995 | 361 |
$1_JAVADOC_TARGETS := $$(javadoc_$1_TARGET) |
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
362 |
|
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
363 |
ifeq ($$(ENABLE_FULL_DOCS), true) |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
364 |
# We have asked ModuleGraph to generate links to png files. Now we must |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
365 |
# produce the png files. |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
366 |
|
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
367 |
# Locate which modules has the @moduleGraph tag in their module-info.java |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
368 |
$1_MODULES_NEEDING_GRAPH := $$(strip $$(foreach m, $$($1_ALL_MODULES), \ |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
369 |
$$(if $$(shell $$(GREP) -e @moduleGraph \ |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
370 |
$$(wildcard $$(addsuffix /module-info.java, \ |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
371 |
$$(call FindModuleSrcDirs, $$m)))), \ |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
372 |
$$m) \ |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
373 |
)) |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
374 |
|
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
375 |
# First we run the GenGraph tool. It will query the module structure of the |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
376 |
# running JVM and output .dot files for all existing modules. |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
377 |
GENGRAPHS_PROPS := \ |
47217 | 378 |
$$(TOPDIR)/make/jdk/src/classes/build/tools/jigsaw/javadoc-graphs.properties |
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
379 |
|
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
380 |
$1_GENGRAPHS_DIR := $$(SUPPORT_OUTPUTDIR)/docs/$1-gengraphs |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
381 |
|
53995 | 382 |
$$(eval $$(call SetupExecute, gengraphs_$1, \ |
383 |
INFO := Running gengraphs for $1 documentation, \ |
|
384 |
DEPS := $$(BUILD_JIGSAW_TOOLS) $$(GENGRAPHS_PROPS), \ |
|
385 |
OUTPUT_DIR := $$($1_GENGRAPHS_DIR), \ |
|
386 |
COMMAND := $$(TOOL_GENGRAPHS) --spec --output $$($1_GENGRAPHS_DIR) \ |
|
387 |
--dot-attributes $$(GENGRAPHS_PROPS), \ |
|
388 |
)) |
|
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
389 |
|
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
390 |
# For each module needing a graph, create a png file from the dot file |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
391 |
# generated by the GenGraphs tool and store it in the target dir. |
53995 | 392 |
# They will depend on gengraphs_$1_TARGET, and will be added to $1. |
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
393 |
$$(foreach m, $$($1_MODULES_NEEDING_GRAPH), \ |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
394 |
$$(eval $$(call setup_gengraph_dot_to_png,$1,$$m)) \ |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
395 |
) |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
396 |
endif |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
397 |
endef |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
398 |
|
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
399 |
################################################################################ |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
400 |
# Setup generation of the JDK API documentation (javadoc + modulegraph) |
41652
a0664e2b49a1
8168772: Convert javadoc generation to build-infra standards
ihse
parents:
41260
diff
changeset
|
401 |
|
45323
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
402 |
# Define the groups of the JDK API documentation |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
403 |
JavaSE_GROUP_NAME := Java SE |
48841 | 404 |
JavaSE_GROUP_MODULES := $(call ColonList, $(sort java.se \ |
405 |
$(call FindTransitiveIndirectDepsForModules, java.se))) |
|
45323
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
406 |
JavaSE_GROUP_DESCRIPTION := \ |
45616 | 407 |
The Java Platform, Standard Edition (Java SE) APIs define the core Java \ |
408 |
platform for general-purpose computing. These APIs are in modules whose \ |
|
409 |
names start with {@code java}. \ |
|
45323
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
410 |
# |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
411 |
JDK_GROUPS += JavaSE |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
412 |
|
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
413 |
JDK_GROUP_NAME := JDK |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
414 |
JDK_GROUP_MODULES := jdk.* |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
415 |
JDK_GROUP_DESCRIPTION := \ |
45616 | 416 |
The Java Development Kit (JDK) APIs are specific to the JDK and will not \ |
417 |
necessarily be available in all implementations of the Java SE Platform. \ |
|
418 |
These APIs are in modules whose names start with {@code jdk}. \ |
|
45323
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
419 |
# |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
420 |
JDK_GROUPS += JDK |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
421 |
|
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
422 |
# If we are importing JavaFX, we need a JavaFX group. In an ideal world, this |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
423 |
# would have been abstracted away to a more proper generic handling of imported |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
424 |
# modules. |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
425 |
ifneq ($(findstring javafx., $(IMPORTED_MODULES)), ) |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
426 |
JavaFX_GROUP_NAME := JavaFX |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
427 |
JavaFX_GROUP_MODULES := javafx.* |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
428 |
JavaFX_GROUP_DESCRIPTION := \ |
45616 | 429 |
The JavaFX APIs define a set of user-interface controls, graphics, \ |
45323
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
430 |
media, and web packages for developing rich client applications. These \ |
45616 | 431 |
APIs are in modules whose names start with {@code javafx}. \ |
45323
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
432 |
# |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
433 |
JDK_GROUPS += JavaFX |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
434 |
endif |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
435 |
|
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
436 |
# All modules to have docs generated by docs-jdk-api target |
49916 | 437 |
JDK_MODULES := $(sort $(filter-out $(MODULES_FILTER), $(DOCS_MODULES))) |
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
438 |
|
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
439 |
$(eval $(call SetupApiDocsGeneration, JDK_API, \ |
45323
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
440 |
MODULES := $(JDK_MODULES), \ |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
441 |
GROUPS := $(JDK_GROUPS), \ |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
442 |
SHORT_NAME := $(JDK_SHORT_NAME), \ |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
443 |
LONG_NAME := $(JDK_LONG_NAME), \ |
45103 | 444 |
TARGET_DIR := $(DOCS_OUTPUTDIR)/api, \ |
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
445 |
)) |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
446 |
|
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
447 |
# Targets generated are returned in JDK_API_JAVADOC_TARGETS and |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
448 |
# JDK_API_MODULEGRAPH_TARGETS. |
13697 | 449 |
|
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
450 |
################################################################################ |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
451 |
# Setup generation of the Java SE API documentation (javadoc + modulegraph) |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
452 |
|
48855
0006d97556ba
8197866: Docs.mk still had a reference to java.se.ee
lancea
parents:
48841
diff
changeset
|
453 |
# The Java SE module scope is just java.se and its transitive indirect |
45233
538af025db97
8180480: Use "requires transitive" relationship when determining modules for javadoc
ihse
parents:
45229
diff
changeset
|
454 |
# exports. |
48855
0006d97556ba
8197866: Docs.mk still had a reference to java.se.ee
lancea
parents:
48841
diff
changeset
|
455 |
JAVASE_MODULES := java.se |
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
456 |
|
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
457 |
$(eval $(call SetupApiDocsGeneration, JAVASE_API, \ |
45323
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
458 |
MODULES := $(JAVASE_MODULES), \ |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
459 |
SHORT_NAME := $(JAVASE_SHORT_NAME), \ |
52500c1d7f1f
8175824: Adapt javadoc generation to different requirements for JDK and JavaSE
ihse
parents:
45233
diff
changeset
|
460 |
LONG_NAME := $(JAVASE_LONG_NAME), \ |
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
461 |
TARGET_DIR := $(IMAGES_OUTPUTDIR)/javase-docs/api, \ |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
462 |
)) |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
463 |
|
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
464 |
# Targets generated are returned in JAVASE_API_JAVADOC_TARGETS and |
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
465 |
# JAVASE_API_MODULEGRAPH_TARGETS. |
36506 | 466 |
|
41652
a0664e2b49a1
8168772: Convert javadoc generation to build-infra standards
ihse
parents:
41260
diff
changeset
|
467 |
################################################################################ |
47432
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
468 |
# Setup generation of the reference Java SE API documentation (javadoc + modulegraph) |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
469 |
|
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
470 |
# The reference javadoc is just the same as javase, but using the BootJDK javadoc |
52714
2e52aa822c57
8178317: Create man pages using pandoc from markdown sources
ihse
parents:
52318
diff
changeset
|
471 |
# and a stable set of javadoc options. Typically it is used for generating |
50969
3f879ff34084
8206184: docs-reference build fails due to extlink.spec.version property not set
mchung
parents:
50782
diff
changeset
|
472 |
# diffs between the reference javadoc and a javadoc bundle of a specific build |
3f879ff34084
8206184: docs-reference build fails due to extlink.spec.version property not set
mchung
parents:
50782
diff
changeset
|
473 |
# generated in the same way. |
47432
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
474 |
|
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
475 |
$(eval $(call SetupApiDocsGeneration, REFERENCE_API, \ |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
476 |
MODULES := $(JAVASE_MODULES), \ |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
477 |
SHORT_NAME := $(JAVASE_SHORT_NAME), \ |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
478 |
LONG_NAME := $(JAVASE_LONG_NAME), \ |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
479 |
TARGET_DIR := $(IMAGES_OUTPUTDIR)/reference-docs/api, \ |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
480 |
JAVADOC_CMD := $(JAVADOC), \ |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
481 |
OPTIONS := $(REFERENCE_OPTIONS), \ |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
482 |
TAGS := $(REFERENCE_TAGS), \ |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
483 |
)) |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
484 |
|
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
485 |
# Targets generated are returned in REFERENCE_API_JAVADOC_TARGETS and |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
486 |
# REFERENCE_API_MODULEGRAPH_TARGETS. |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
487 |
|
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
488 |
################################################################################ |
45105 | 489 |
|
52985 | 490 |
# Copy the global resources, including the top-level redirect index.html |
47217 | 491 |
GLOBAL_SPECS_RESOURCES_DIR := $(TOPDIR)/make/data/docs-resources/ |
45229
88a3fab6006f
8180426: Use standard css file for new docs bundle index.html page
ihse
parents:
45108
diff
changeset
|
492 |
$(eval $(call SetupCopyFiles, COPY_GLOBAL_RESOURCES, \ |
88a3fab6006f
8180426: Use standard css file for new docs bundle index.html page
ihse
parents:
45108
diff
changeset
|
493 |
SRC := $(GLOBAL_SPECS_RESOURCES_DIR), \ |
54380 | 494 |
FILES := $(call FindFiles, $(GLOBAL_SPECS_RESOURCES_DIR)), \ |
45229
88a3fab6006f
8180426: Use standard css file for new docs bundle index.html page
ihse
parents:
45108
diff
changeset
|
495 |
DEST := $(DOCS_OUTPUTDIR), \ |
88a3fab6006f
8180426: Use standard css file for new docs bundle index.html page
ihse
parents:
45108
diff
changeset
|
496 |
)) |
88a3fab6006f
8180426: Use standard css file for new docs bundle index.html page
ihse
parents:
45108
diff
changeset
|
497 |
JDK_INDEX_TARGETS += $(COPY_GLOBAL_RESOURCES) |
45105 | 498 |
|
45617
1e5b518f5e14
8182492: docs bundle needs legal notices for 3rd party libraries distributed for javadoc search
mchung
parents:
45616
diff
changeset
|
499 |
# Copy the legal notices distributed with the docs bundle |
1e5b518f5e14
8182492: docs bundle needs legal notices for 3rd party libraries distributed for javadoc search
mchung
parents:
45616
diff
changeset
|
500 |
$(eval $(call SetupCopyFiles, COPY_DOCS_LEGAL_NOTICES, \ |
47217 | 501 |
SRC := $(TOPDIR)/src/jdk.javadoc/share/legal, \ |
51019 | 502 |
FILES := $(wildcard $(TOPDIR)/src/jdk.javadoc/share/legal/*), \ |
45617
1e5b518f5e14
8182492: docs bundle needs legal notices for 3rd party libraries distributed for javadoc search
mchung
parents:
45616
diff
changeset
|
503 |
DEST := $(DOCS_OUTPUTDIR)/legal, \ |
1e5b518f5e14
8182492: docs bundle needs legal notices for 3rd party libraries distributed for javadoc search
mchung
parents:
45616
diff
changeset
|
504 |
)) |
1e5b518f5e14
8182492: docs bundle needs legal notices for 3rd party libraries distributed for javadoc search
mchung
parents:
45616
diff
changeset
|
505 |
JDK_INDEX_TARGETS += $(COPY_DOCS_LEGAL_NOTICES) |
1e5b518f5e14
8182492: docs bundle needs legal notices for 3rd party libraries distributed for javadoc search
mchung
parents:
45616
diff
changeset
|
506 |
|
45105 | 507 |
################################################################################ |
44733 | 508 |
# Copy JDK specs files |
41652
a0664e2b49a1
8168772: Convert javadoc generation to build-infra standards
ihse
parents:
41260
diff
changeset
|
509 |
|
54747
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
510 |
# For all non html/md files in $module/share/specs directories, copy them |
44733 | 511 |
# unmodified |
512 |
||
513 |
ALL_MODULES := $(call FindAllModules) |
|
54747
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
514 |
COPY_SPEC_FILTER := %.gif %.jpg %.mib %.css |
13697 | 515 |
|
44733 | 516 |
$(foreach m, $(ALL_MODULES), \ |
517 |
$(eval SPECS_$m := $(call FindModuleSpecsDirs, $m)) \ |
|
45095
704e6f5e9b6d
8178278: Move Standard Algorithm Names document to specs directory
ihse
parents:
44990
diff
changeset
|
518 |
$(foreach d, $(SPECS_$m), \ |
54380 | 519 |
$(if $(filter $(COPY_SPEC_FILTER), $(call FindFiles, $d)), \ |
45095
704e6f5e9b6d
8178278: Move Standard Algorithm Names document to specs directory
ihse
parents:
44990
diff
changeset
|
520 |
$(eval $(call SetupCopyFiles, COPY_$m, \ |
704e6f5e9b6d
8178278: Move Standard Algorithm Names document to specs directory
ihse
parents:
44990
diff
changeset
|
521 |
SRC := $d, \ |
54380 | 522 |
FILES := $(filter $(COPY_SPEC_FILTER), $(call FindFiles, $d)), \ |
45103 | 523 |
DEST := $(DOCS_OUTPUTDIR)/specs/, \ |
45095
704e6f5e9b6d
8178278: Move Standard Algorithm Names document to specs directory
ihse
parents:
44990
diff
changeset
|
524 |
)) \ |
704e6f5e9b6d
8178278: Move Standard Algorithm Names document to specs directory
ihse
parents:
44990
diff
changeset
|
525 |
$(eval JDK_SPECS_TARGETS += $(COPY_$m)) \ |
704e6f5e9b6d
8178278: Move Standard Algorithm Names document to specs directory
ihse
parents:
44990
diff
changeset
|
526 |
) \ |
44733 | 527 |
) \ |
528 |
) |
|
529 |
||
54747
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
530 |
# Create copyright footer files that can be provided as input to pandoc. We |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
531 |
# need different files for different relative paths to the copyright.html |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
532 |
# file. The number 0-2 below represent how many extra directory levels down |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
533 |
# below the specs dir the specs html file is located. Each file name is |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
534 |
# stored in a variable SPECS_BOTTOM_FILE_$n where $n is 0, 1 or 2. |
55486
fe6c2f0b42be
8226628: The copyright footer should be enclosed in <footer>
jjg
parents:
55112
diff
changeset
|
535 |
SPECS_BOTTOM = <footer><hr/>$(COPYRIGHT_BOTTOM)</footer> |
54747
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
536 |
# The legal dir is one ../ below the specs dir, so start with one ../. |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
537 |
specs_bottom_rel_path := ../ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
538 |
$(foreach n, 0 1 2, \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
539 |
$(eval SPECS_BOTTOM_FILE_$n := $(SUPPORT_OUTPUTDIR)/docs/full-specs-bottom-$n.txt) \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
540 |
$(eval SPECS_BOTTOM_$n := $(call SPECS_BOTTOM,$(specs_bottom_rel_path))) \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
541 |
$(eval $(SPECS_BOTTOM_FILE_$n): \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
542 |
$(call DependOnVariable, SPECS_BOTTOM_$n) ; \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
543 |
$(PRINTF) '$(SPECS_BOTTOM_$n)' > $$@ \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
544 |
) \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
545 |
$(eval specs_bottom_rel_path := $(specs_bottom_rel_path)../) \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
546 |
) |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
547 |
|
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
548 |
# For all html files in $module/share/specs directories, copy and add the |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
549 |
# copyright footer. |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
550 |
|
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
551 |
$(foreach m, $(ALL_MODULES), \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
552 |
$(eval SPECS_$m := $(call FindModuleSpecsDirs, $m)) \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
553 |
$(foreach d, $(SPECS_$m), \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
554 |
$(foreach f, $(filter %.html, $(call FindFiles, $d)), \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
555 |
$(eval $m_$f_NOF_SUBDIRS := $(words $(subst /, $(SPACE), $(subst $d, , $(dir $f))))) \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
556 |
$(eval $m_$f_NAME := PROCESS_HTML_$m_$(strip $(call RelativePath, $f, $(TOPDIR)))) \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
557 |
$(eval $(call SetupTextFileProcessing, $($m_$f_NAME), \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
558 |
SOURCE_FILES := $f, \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
559 |
SOURCE_BASE_DIR := $d, \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
560 |
OUTPUT_DIR := $(DOCS_OUTPUTDIR)/specs/, \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
561 |
REPLACEMENTS := \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
562 |
</body> => $(SPECS_BOTTOM_$($m_$f_NOF_SUBDIRS))</body>, \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
563 |
)) \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
564 |
$(eval JDK_SPECS_TARGETS += $($($m_$f_NAME))) \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
565 |
) \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
566 |
) \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
567 |
) |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
568 |
|
53087
f48737b2f428
8215635: Pandoc check in Docs.gmk does not work on Windows
erikj
parents:
52985
diff
changeset
|
569 |
ifeq ($(ENABLE_PANDOC), true) |
44734 | 570 |
# For all markdown files in $module/share/specs directories, convert them to |
52984
2e41937c9cab
8214910: If pandoc is present, markdown spec files should be processed
ihse
parents:
52940
diff
changeset
|
571 |
# html, if we have pandoc (otherwise we'll just skip this). |
44734 | 572 |
|
45229
88a3fab6006f
8180426: Use standard css file for new docs bundle index.html page
ihse
parents:
45108
diff
changeset
|
573 |
GLOBAL_SPECS_DEFAULT_CSS_FILE := $(DOCS_OUTPUTDIR)/resources/jdk-default.css |
44734 | 574 |
|
575 |
$(foreach m, $(ALL_MODULES), \ |
|
576 |
$(eval SPECS_$m := $(call FindModuleSpecsDirs, $m)) \ |
|
44983 | 577 |
$(foreach d, $(SPECS_$m), \ |
54747
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
578 |
$(foreach f, $(filter %.md, $(call FindFiles, $d)), \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
579 |
$(eval $m_$f_NOF_SUBDIRS := $(words $(subst /, $(SPACE), $(subst $d, , $(dir $f))))) \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
580 |
$(eval $m_$f_BOTTOM_FILE := $(SPECS_BOTTOM_FILE_$($m_$f_NOF_SUBDIRS))) \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
581 |
$(eval $m_$f_NAME := SPECS_TO_HTML_$m_$(strip $(call RelativePath, $f, $(TOPDIR)))) \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
582 |
$(eval $(call SetupProcessMarkdown, $($m_$f_NAME), \ |
44983 | 583 |
SRC := $d, \ |
54747
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
584 |
FILES := $f, \ |
45103 | 585 |
DEST := $(DOCS_OUTPUTDIR)/specs/, \ |
44983 | 586 |
CSS := $(GLOBAL_SPECS_DEFAULT_CSS_FILE), \ |
54747
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
587 |
OPTIONS := -A $($m_$f_BOTTOM_FILE), \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
588 |
EXTRA_DEPS := $($m_$f_BOTTOM_FILE), \ |
55112 | 589 |
POST_PROCESS := $(TOOL_FIXUPPANDOC), \ |
44983 | 590 |
)) \ |
54747
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
591 |
$(eval JDK_SPECS_TARGETS += $($($m_$f_NAME))) \ |
44983 | 592 |
) \ |
44734 | 593 |
) \ |
594 |
) |
|
52714
2e52aa822c57
8178317: Create man pages using pandoc from markdown sources
ihse
parents:
52318
diff
changeset
|
595 |
|
2e52aa822c57
8178317: Create man pages using pandoc from markdown sources
ihse
parents:
52318
diff
changeset
|
596 |
# For all markdown files in $module/share/man directories, convert them to |
2e52aa822c57
8178317: Create man pages using pandoc from markdown sources
ihse
parents:
52318
diff
changeset
|
597 |
# html. |
52940
26e2cfebcfba
8214720: Add pandoc filter to improve html man page output
ihse
parents:
52714
diff
changeset
|
598 |
|
26e2cfebcfba
8214720: Add pandoc filter to improve html man page output
ihse
parents:
52714
diff
changeset
|
599 |
# Create dynamic man pages from markdown using pandoc. We need |
26e2cfebcfba
8214720: Add pandoc filter to improve html man page output
ihse
parents:
52714
diff
changeset
|
600 |
# PANDOC_HTML_MANPAGE_FILTER, a wrapper around |
26e2cfebcfba
8214720: Add pandoc filter to improve html man page output
ihse
parents:
52714
diff
changeset
|
601 |
# PANDOC_HTML_MANPAGE_FILTER_JAVASCRIPT. This is created by buildtools-jdk. |
26e2cfebcfba
8214720: Add pandoc filter to improve html man page output
ihse
parents:
52714
diff
changeset
|
602 |
|
26e2cfebcfba
8214720: Add pandoc filter to improve html man page output
ihse
parents:
52714
diff
changeset
|
603 |
# We should also depend on the source javascript filter |
26e2cfebcfba
8214720: Add pandoc filter to improve html man page output
ihse
parents:
52714
diff
changeset
|
604 |
PANDOC_HTML_MANPAGE_FILTER_JAVASCRIPT := \ |
26e2cfebcfba
8214720: Add pandoc filter to improve html man page output
ihse
parents:
52714
diff
changeset
|
605 |
$(TOPDIR)/make/scripts/pandoc-html-manpage-filter.js |
26e2cfebcfba
8214720: Add pandoc filter to improve html man page output
ihse
parents:
52714
diff
changeset
|
606 |
|
52714
2e52aa822c57
8178317: Create man pages using pandoc from markdown sources
ihse
parents:
52318
diff
changeset
|
607 |
$(foreach m, $(ALL_MODULES), \ |
2e52aa822c57
8178317: Create man pages using pandoc from markdown sources
ihse
parents:
52318
diff
changeset
|
608 |
$(eval MAN_$m := $(call FindModuleManDirs, $m)) \ |
2e52aa822c57
8178317: Create man pages using pandoc from markdown sources
ihse
parents:
52318
diff
changeset
|
609 |
$(foreach d, $(MAN_$m), \ |
54747
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
610 |
$(foreach f, $(filter %.md, $(call FindFiles, $d)), \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
611 |
$(eval $m_$f_NAME := MAN_TO_HTML_$m_$(strip $(call RelativePath, $f, $(TOPDIR)))) \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
612 |
$(eval $(call SetupProcessMarkdown, $($m_$f_NAME), \ |
52714
2e52aa822c57
8178317: Create man pages using pandoc from markdown sources
ihse
parents:
52318
diff
changeset
|
613 |
SRC := $d, \ |
54747
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
614 |
FILES := $f, \ |
52714
2e52aa822c57
8178317: Create man pages using pandoc from markdown sources
ihse
parents:
52318
diff
changeset
|
615 |
DEST := $(DOCS_OUTPUTDIR)/specs/man, \ |
52940
26e2cfebcfba
8214720: Add pandoc filter to improve html man page output
ihse
parents:
52714
diff
changeset
|
616 |
FILTER := $(PANDOC_HTML_MANPAGE_FILTER), \ |
52714
2e52aa822c57
8178317: Create man pages using pandoc from markdown sources
ihse
parents:
52318
diff
changeset
|
617 |
CSS := $(GLOBAL_SPECS_DEFAULT_CSS_FILE), \ |
2e52aa822c57
8178317: Create man pages using pandoc from markdown sources
ihse
parents:
52318
diff
changeset
|
618 |
REPLACEMENTS := @@VERSION_SHORT@@ => $(VERSION_SHORT), \ |
54747
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
619 |
OPTIONS := -A $(SPECS_BOTTOM_FILE_1), \ |
55112 | 620 |
POST_PROCESS := $(TOOL_FIXUPPANDOC), \ |
52940
26e2cfebcfba
8214720: Add pandoc filter to improve html man page output
ihse
parents:
52714
diff
changeset
|
621 |
EXTRA_DEPS := $(PANDOC_HTML_MANPAGE_FILTER) \ |
54747
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
622 |
$(PANDOC_HTML_MANPAGE_FILTER_JAVASCRIPT) \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
623 |
$(SPECS_BOTTOM_FILE_1), \ |
52714
2e52aa822c57
8178317: Create man pages using pandoc from markdown sources
ihse
parents:
52318
diff
changeset
|
624 |
)) \ |
54747
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
625 |
$(eval JDK_SPECS_TARGETS += $($($m_$f_NAME))) \ |
52714
2e52aa822c57
8178317: Create man pages using pandoc from markdown sources
ihse
parents:
52318
diff
changeset
|
626 |
) \ |
2e52aa822c57
8178317: Create man pages using pandoc from markdown sources
ihse
parents:
52318
diff
changeset
|
627 |
) \ |
2e52aa822c57
8178317: Create man pages using pandoc from markdown sources
ihse
parents:
52318
diff
changeset
|
628 |
) |
2e52aa822c57
8178317: Create man pages using pandoc from markdown sources
ihse
parents:
52318
diff
changeset
|
629 |
|
2e52aa822c57
8178317: Create man pages using pandoc from markdown sources
ihse
parents:
52318
diff
changeset
|
630 |
# The html generated from markdown also needs the css file |
2e52aa822c57
8178317: Create man pages using pandoc from markdown sources
ihse
parents:
52318
diff
changeset
|
631 |
JDK_SPECS_TARGETS += $(COPY_GLOBAL_RESOURCES) |
44734 | 632 |
endif |
633 |
||
44733 | 634 |
# Special treatment for generated documentation |
635 |
||
636 |
JDWP_PROTOCOL := $(SUPPORT_OUTPUTDIR)/gensrc/jdk.jdi/jdwp-protocol.html |
|
54747
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
637 |
$(eval $(call SetupTextFileProcessing, PROCESS_JDWP_PROTOCOL, \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
638 |
SOURCE_FILES := $(JDWP_PROTOCOL), \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
639 |
OUTPUT_DIR := $(DOCS_OUTPUTDIR)/specs/jdwp, \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
640 |
REPLACEMENTS := \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
641 |
</body> => $(SPECS_BOTTOM_1)</body>, \ |
41652
a0664e2b49a1
8168772: Convert javadoc generation to build-infra standards
ihse
parents:
41260
diff
changeset
|
642 |
)) |
54747
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
643 |
JDK_SPECS_TARGETS += $(PROCESS_JDWP_PROTOCOL) |
41652
a0664e2b49a1
8168772: Convert javadoc generation to build-infra standards
ihse
parents:
41260
diff
changeset
|
644 |
|
44733 | 645 |
# Get jvmti.html from the main jvm variant (all variants' jvmti.html are identical). |
49928 | 646 |
JVMTI_HTML ?= $(HOTSPOT_OUTPUTDIR)/variant-$(JVM_VARIANT_MAIN)/gensrc/jvmtifiles/jvmti.html |
54747
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
647 |
$(eval $(call SetupTextFileProcessing, PROCESS_JVMTI_HTML, \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
648 |
SOURCE_FILES := $(JVMTI_HTML), \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
649 |
OUTPUT_DIR := $(DOCS_OUTPUTDIR)/specs/, \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
650 |
REPLACEMENTS := \ |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
651 |
</body> => $(SPECS_BOTTOM_0)</body>, \ |
41260 | 652 |
)) |
54747
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
653 |
JDK_SPECS_TARGETS += $(PROCESS_JVMTI_HTML) |
13697 | 654 |
|
41652
a0664e2b49a1
8168772: Convert javadoc generation to build-infra standards
ihse
parents:
41260
diff
changeset
|
655 |
################################################################################ |
a0664e2b49a1
8168772: Convert javadoc generation to build-infra standards
ihse
parents:
41260
diff
changeset
|
656 |
# Optional target which bundles all generated javadocs into a zip archive. |
37034
b63fd4af003e
8154313: Generated javadoc scattered all over the place
neugens
parents:
36792
diff
changeset
|
657 |
|
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
658 |
JAVADOC_ZIP_NAME := jdk-$(VERSION_STRING)-docs.zip |
47253
92fd0e04e0e1
8187544: Replace BUILD_OUTPUT and OUTPUT_ROOT with OUTPUTDIR
ihse
parents:
47217
diff
changeset
|
659 |
JAVADOC_ZIP_FILE := $(OUTPUTDIR)/bundles/$(JAVADOC_ZIP_NAME) |
41652
a0664e2b49a1
8168772: Convert javadoc generation to build-infra standards
ihse
parents:
41260
diff
changeset
|
660 |
|
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
661 |
$(eval $(call SetupZipArchive, BUILD_JAVADOC_ZIP, \ |
45103 | 662 |
SRC := $(DOCS_OUTPUTDIR), \ |
44733 | 663 |
ZIP := $(JAVADOC_ZIP_FILE), \ |
664 |
EXTRA_DEPS := $(JDK_API_JAVADOC_TARGETS) $(JDK_API_MODULEGRAPH_TARGETS) \ |
|
665 |
$(JDK_SPECS_TARGETS), \ |
|
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
666 |
)) |
37034
b63fd4af003e
8154313: Generated javadoc scattered all over the place
neugens
parents:
36792
diff
changeset
|
667 |
|
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
668 |
ZIP_TARGETS += $(BUILD_JAVADOC_ZIP) |
41652
a0664e2b49a1
8168772: Convert javadoc generation to build-infra standards
ihse
parents:
41260
diff
changeset
|
669 |
|
a0664e2b49a1
8168772: Convert javadoc generation to build-infra standards
ihse
parents:
41260
diff
changeset
|
670 |
################################################################################ |
54747
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
671 |
# Hook to include the corresponding custom file, if present. |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
672 |
$(eval $(call IncludeCustomExtension, Docs-post.gmk)) |
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
673 |
|
0082ede5dc53
8223319: Add copyright footer to specs and man pages
erikj
parents:
54380
diff
changeset
|
674 |
################################################################################ |
41652
a0664e2b49a1
8168772: Convert javadoc generation to build-infra standards
ihse
parents:
41260
diff
changeset
|
675 |
|
45103 | 676 |
docs-jdk-api-javadoc: $(JDK_API_JAVADOC_TARGETS) $(JDK_API_CUSTOM_TARGETS) |
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
677 |
|
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
678 |
docs-jdk-api-modulegraph: $(JDK_API_MODULEGRAPH_TARGETS) |
44397
f932d6b9f7fe
8173303: Add module-subgraph images to main platform documentation
mchung
parents:
44071
diff
changeset
|
679 |
|
45103 | 680 |
docs-javase-api-javadoc: $(JAVASE_API_JAVADOC_TARGETS) $(JAVASE_API_CUSTOM_TARGETS) |
44725
8747b14eb49c
8172312: Update docs target and image for new combined docs
ihse
parents:
44397
diff
changeset
|
681 |
|
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
682 |
docs-javase-api-modulegraph: $(JAVASE_API_MODULEGRAPH_TARGETS) |
41652
a0664e2b49a1
8168772: Convert javadoc generation to build-infra standards
ihse
parents:
41260
diff
changeset
|
683 |
|
47432
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
684 |
docs-reference-api-javadoc: $(REFERENCE_API_JAVADOC_TARGETS) $(REFERENCE_API_CUSTOM_TARGETS) |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
685 |
|
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
686 |
docs-reference-api-modulegraph: $(REFERENCE_API_MODULEGRAPH_TARGETS) |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
687 |
|
44733 | 688 |
docs-jdk-specs: $(JDK_SPECS_TARGETS) |
41652
a0664e2b49a1
8168772: Convert javadoc generation to build-infra standards
ihse
parents:
41260
diff
changeset
|
689 |
|
45229
88a3fab6006f
8180426: Use standard css file for new docs bundle index.html page
ihse
parents:
45108
diff
changeset
|
690 |
docs-jdk-index: $(JDK_INDEX_TARGETS) |
45105 | 691 |
|
41652
a0664e2b49a1
8168772: Convert javadoc generation to build-infra standards
ihse
parents:
41260
diff
changeset
|
692 |
docs-zip: $(ZIP_TARGETS) |
a0664e2b49a1
8168772: Convert javadoc generation to build-infra standards
ihse
parents:
41260
diff
changeset
|
693 |
|
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
694 |
all: docs-jdk-api-javadoc docs-jdk-api-modulegraph docs-javase-api-javadoc \ |
47432
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
695 |
docs-javase-api-modulegraph docs-reference-api-javadoc \ |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
696 |
docs-reference-api-modulegraph docs-jdk-specs docs-jdk-index docs-zip |
41652
a0664e2b49a1
8168772: Convert javadoc generation to build-infra standards
ihse
parents:
41260
diff
changeset
|
697 |
|
44726
04aa2c065f5c
8176785: Add build support to generate PNG file from .dot file
ihse
parents:
44725
diff
changeset
|
698 |
.PHONY: default all docs-jdk-api-javadoc docs-jdk-api-modulegraph \ |
47432
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
699 |
docs-javase-api-javadoc docs-javase-api-modulegraph \ |
28d6070f5f2f
8189056: javadoc target for stable specdiff comparisons
ihse
parents:
47429
diff
changeset
|
700 |
docs-reference-api-javadoc docs-reference-api-modulegraph docs-jdk-specs \ |
45105 | 701 |
docs-jdk-index docs-zip |