make/Javadoc.gmk
author ihse
Wed, 19 Apr 2017 10:24:42 +0200
changeset 44725 8747b14eb49c
parent 44397 f932d6b9f7fe
child 44726 04aa2c065f5c
permissions -rw-r--r--
8172312: Update docs target and image for new combined docs Reviewed-by: erikj, mchung Contributed-by: Magnus Ihse Bursie <magnus.ihse.bursie@oracle.com>, Mandy Chung <mandy.chung@oracle.com>
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
43047
28be7f773e4e 8172562: Changing log level on Javadoc causes total rebuild
ihse
parents: 43044
diff changeset
     1
# Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     2
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     3
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     4
# This code is free software; you can redistribute it and/or modify it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     5
# under the terms of the GNU General Public License version 2 only, as
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     6
# published by the Free Software Foundation.  Oracle designates this
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     7
# particular file as subject to the "Classpath" exception as provided
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     8
# by Oracle in the LICENSE file that accompanied this code.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     9
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    10
# This code is distributed in the hope that it will be useful, but WITHOUT
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    11
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    12
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    13
# version 2 for more details (a copy is included in the LICENSE file that
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    14
# accompanied this code).
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    15
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    16
# You should have received a copy of the GNU General Public License version
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    17
# 2 along with this work; if not, write to the Free Software Foundation,
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    18
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    19
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    20
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    21
# or visit www.oracle.com if you need additional information or have any
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    22
# questions.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    23
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    24
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
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    27
include $(SPEC)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    28
include MakeBase.gmk
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
    29
include Modules.gmk
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
    30
include ZipArchive.gmk
43285
223c3eea12e4 8173354: javadoc warning notice for types in Incubator Modules
chegar
parents: 43171
diff changeset
    31
include $(JDK_TOPDIR)/make/Tools.gmk
44397
f932d6b9f7fe 8173303: Add module-subgraph images to main platform documentation
mchung
parents: 44071
diff changeset
    32
include $(JDK_TOPDIR)/make/ModuleTools.gmk
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    33
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
    34
# This is needed to properly setup DOCS_MODULES.
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
    35
$(eval $(call ReadImportMetaData))
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
    36
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
    37
################################################################################
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
    38
# Javadoc settings
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    39
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
    40
# All modules to have docs generated by docs-javadoc target
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
    41
JAVADOC_MODULES := $(sort $(DOCS_MODULES))
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
    42
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
    43
# 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
    44
# extra java.rmi sources that are used just for javadoc.
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
    45
JAVADOC_SOURCE_PATH := $(call PathList, $(call GetModuleSrcPath) \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
    46
    $(SUPPORT_OUTPUTDIR)/rmic/* $(JDK_TOPDIR)/src/*/share/doc/stub)
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
    47
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
    48
# Should we use -Xdocrootparent? Allow custom to overwrite.
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
    49
DOCROOTPARENT_FLAG = TRUE
37034
b63fd4af003e 8154313: Generated javadoc scattered all over the place
neugens
parents: 36792
diff changeset
    50
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
    51
# URLs
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
    52
JAVADOC_BASE_URL := http://docs.oracle.com/javase/$(VERSION_SPECIFICATION)/docs
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
    53
BUG_SUBMIT_URL := http://bugreport.java.com/bugreport/
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
    54
COPYRIGHT_URL := {@docroot}/../legal/cpyr.html
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
    55
42135
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    56
# In order to get a specific ordering it's necessary to specify the total
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    57
# 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
    58
JAVADOC_TAGS := \
42135
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    59
    -tag beaninfo:X \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    60
    -tag revised:X \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    61
    -tag since.unbundled:X \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    62
    -tag spec:X \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    63
    -tag specdefault:X \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    64
    -tag Note:X \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    65
    -tag ToDo:X \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    66
    -tag 'apiNote:a:API Note:' \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    67
    -tag 'implSpec:a:Implementation Requirements:' \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    68
    -tag 'implNote:a:Implementation Note:' \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    69
    -tag param \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    70
    -tag return \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    71
    -tag throws \
44397
f932d6b9f7fe 8173303: Add module-subgraph images to main platform documentation
mchung
parents: 44071
diff changeset
    72
    -taglet build.tools.taglet.ModuleGraph \
42135
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    73
    -tag since \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    74
    -tag version \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    75
    -tag serialData \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    76
    -tag factory \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    77
    -tag see \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    78
    -tag 'jvms:a:See <cite>The Java&trade; Virtual Machine Specification</cite>:' \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    79
    -tag 'jls:a:See <cite>The Java&trade; Language Specification</cite>:' \
43285
223c3eea12e4 8173354: javadoc warning notice for types in Incubator Modules
chegar
parents: 43171
diff changeset
    80
    -taglet build.tools.taglet.Incubating \
223c3eea12e4 8173354: javadoc warning notice for types in Incubator Modules
chegar
parents: 43171
diff changeset
    81
    -tagletpath $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
42135
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    82
    #
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    83
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
    84
# Which doclint checks to ignore
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
    85
JAVADOC_DISABLED_DOCLINT := accessibility html missing syntax reference
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
    86
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
    87
# The initial set of options for javadoc
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
    88
JAVADOC_OPTIONS := -XDignore.symbol.file=true -use -keywords -notimestamp \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
    89
    -serialwarn -encoding ISO-8859-1 -breakiterator -splitIndex --system none \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
    90
    --expand-requires transitive
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
    91
44397
f932d6b9f7fe 8173303: Add module-subgraph images to main platform documentation
mchung
parents: 44071
diff changeset
    92
#
f932d6b9f7fe 8173303: Add module-subgraph images to main platform documentation
mchung
parents: 44071
diff changeset
    93
# TODO: this should be set by the configure option.
f932d6b9f7fe 8173303: Add module-subgraph images to main platform documentation
mchung
parents: 44071
diff changeset
    94
#
f932d6b9f7fe 8173303: Add module-subgraph images to main platform documentation
mchung
parents: 44071
diff changeset
    95
ifndef ENABLE_MODULE_GRAPH
f932d6b9f7fe 8173303: Add module-subgraph images to main platform documentation
mchung
parents: 44071
diff changeset
    96
   ENABLE_MODULE_GRAPH=false
f932d6b9f7fe 8173303: Add module-subgraph images to main platform documentation
mchung
parents: 44071
diff changeset
    97
endif
f932d6b9f7fe 8173303: Add module-subgraph images to main platform documentation
mchung
parents: 44071
diff changeset
    98
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
    99
# 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
   100
ifeq ($(VERSION_IS_GA), true)
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   101
  IS_DRAFT := false
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   102
else
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   103
  IS_DRAFT := true
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   104
endif
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   105
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   106
################################################################################
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   107
# General text snippets
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   108
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   109
FULL_COMPANY_NAME := Oracle and/or its affiliates
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   110
COMPANY_ADDRESS := 500 Oracle Parkway<br>Redwood Shores, CA 94065 USA
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   111
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   112
ifeq ($(IS_DRAFT), true)
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   113
  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
   114
  ifeq ($(VERSION_BUILD), 0)
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   115
    DRAFT_MARKER_TITLE := [ad-hoc build]
43047
28be7f773e4e 8172562: Changing log level on Javadoc causes total rebuild
ihse
parents: 43044
diff changeset
   116
  else
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   117
    DRAFT_MARKER_TITLE := [build $(VERSION_BUILD)]
43047
28be7f773e4e 8172562: Changing log level on Javadoc causes total rebuild
ihse
parents: 43044
diff changeset
   118
  endif
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   119
endif
42135
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
   120
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   121
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   122
################################################################################
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   123
# JDK javadoc titles/text snippets
35367
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   124
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   125
JAVADOC_WINDOW_TITLE := Java Platform SE $(VERSION_SPECIFICATION) \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   126
    $(DRAFT_MARKER_TITLE)
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   127
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   128
JAVADOC_DOC_TITLE := Java&trade; Platform, Standard Edition Development Kit \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   129
    (JDK&trade;) $(VERSION_SPECIFICATION)<br>API Specification
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   130
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   131
JAVADOC_HEADER_TITLE := $(subst $(SPACE),&nbsp;,$(strip \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   132
    <strong>Java&trade; Platform<br>Standard Ed. \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   133
    $(VERSION_SPECIFICATION)</strong>$(DRAFT_MARKER_STR)))
35367
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   134
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   135
JAVADOC_BOTTOM := \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   136
    <span style="font-size:smaller"> \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   137
    <a href="$(BUG_SUBMIT_URL)">Submit a bug or feature</a><br> \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   138
    For further API reference and developer documentation, see \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   139
    <a href="$(JAVADOC_BASE_URL)/index.html" target="_blank">Java SE \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   140
    Documentation</a>. That documentation contains more detailed, \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   141
    developer-targeted descriptions, with conceptual overviews, definitions \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   142
    of terms, workarounds, and working code examples.<br> \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   143
    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
   144
    the US and other countries.<br> \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   145
    <a href="$(COPYRIGHT_URL)">Copyright</a> \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   146
    &copy; 1993, $(COPYRIGHT_YEAR), $(FULL_COMPANY_NAME). \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   147
    $(COMPANY_ADDRESS). All rights reserved.$(DRAFT_MARKER_STR)</span>
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   148
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   149
JAVADOC_TOP := \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   150
    <div style="background-color: $(HASH)EEEEEE"><div style="padding: 6px; \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   151
    margin-top: 2px; margin-bottom: 6px; margin-left: 6px; margin-right: \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   152
    6px; text-align: justify; font-size: 80%; font-family: Helvetica, Arial, \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   153
    sans-serif; font-weight: normal;">Please note that the specifications \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   154
    and other information contained herein are not final and are subject to \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   155
    change. The information is being made available to you solely for \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   156
    purpose of evaluation.</div></div>
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   157
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   158
################################################################################
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   159
# Java SE Reference javadoc titles/text snippets
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   160
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   161
REFERENCE_DOC_TITLE := Java&trade; Platform, Standard Edition \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   162
    $(VERSION_SPECIFICATION)<br>API Specification
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   163
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   164
################################################################################
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   165
# Setup call to JDK javadoc based on above settings
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   166
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   167
# Create a string like "-Xdoclint:all,-syntax,-html,..."
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   168
JAVADOC_OPTIONS += -Xdoclint:all,$(call CommaList, $(addprefix -, \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   169
    $(JAVADOC_DISABLED_DOCLINT)))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   170
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   171
ifneq ($($DOCROOTPARENT_FLAG), )
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   172
  JAVADOC_OPTIONS += -Xdocrootparent $(JAVADOC_BASE_URL)
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   173
endif
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   174
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   175
JAVADOC_TITLE_OPTIONS += -doctitle '$(JAVADOC_DOC_TITLE)'
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   176
JAVADOC_TITLE_OPTIONS += -windowtitle '$(JAVADOC_WINDOW_TITLE)'
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   177
JAVADOC_TITLE_OPTIONS += -header '$(JAVADOC_HEADER_TITLE)'
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   178
JAVADOC_TITLE_OPTIONS += -bottom '$(JAVADOC_BOTTOM)'
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   179
ifeq ($(IS_DRAFT), true)
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   180
  JAVADOC_TITLE_OPTIONS += -top '$(JAVADOC_TOP)'
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   181
endif
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   182
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   183
# Do not store debug level options in VARDEPS.
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   184
ifneq ($(LOG_LEVEL), trace)
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   185
  JAVADOC_LOG_OPTION += -quiet
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   186
else
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   187
  JAVADOC_LOG_OPTION += -verbose
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   188
endif
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   189
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   190
JAVADOC_VARDEPS := $(JAVADOC_OPTIONS) $(JAVADOC_TITLE_OPTIONS) $(JAVADOC_TAGS) \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   191
    $(JAVADOC_MODULES) $(JAVADOC_SOURCE_PATH)
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   192
JAVADOC_VARDEPS_FILE := $(call DependOnVariable, JAVADOC_VARDEPS, \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   193
    $(SUPPORT_OUTPUTDIR)/docs/javadoc.vardeps)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   194
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   195
# Get a list of all files in all the source dirs for all included modules
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   196
JAVADOC_SOURCE_DEPS := $(call CacheFind, $(wildcard \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   197
    $(foreach module, $(JAVADOC_MODULES), $(call FindModuleSrcDirs, $(module)))))
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   198
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   199
JAVADOC_TARGET_DIR := $(JAVADOC_OUTPUTDIR)/api
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   200
JAVADOC_OVERVIEW := $(JDK_TOPDIR)/src/java.base/share/classes/overview-core.html
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   201
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   202
# Javadoc creates a lot of files but use index.html as a marker
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   203
$(JAVADOC_TARGET_DIR)/index.html: $(BUILD_TOOLS_JDK) $(JAVADOC_VARDEPS_FILE) \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   204
    $(JAVADOC_SOURCE_DEPS) $(JAVADOC_OVERVIEW)
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   205
	$(call LogWarn, Generating Javadoc for $(words $(JAVADOC_MODULES)) modules)
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   206
	$(call LogInfo, Javadoc modules: $(JAVADOC_MODULES))
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   207
	$(call MakeDir, $(JAVADOC_TARGET_DIR))
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   208
	$(call ExecuteWithLog, $(SUPPORT_OUTPUTDIR)/docs/javadoc, \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   209
	    $(JAVA) -Djava.awt.headless=true \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   210
	        -DenableModuleGraph=$(ENABLE_MODULE_GRAPH) \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   211
	        $(NEW_JAVADOC) -d $(JAVADOC_TARGET_DIR) \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   212
	        $(JAVADOC_TAGS) $(JAVADOC_OPTIONS) $(JAVADOC_LOG_OPTION) \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   213
	        $(JAVADOC_TITLE_OPTIONS) -overview $(JAVADOC_OVERVIEW) \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   214
	        --module-source-path $(JAVADOC_SOURCE_PATH) \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   215
	        --module $(call CommaList, $(JAVADOC_MODULES)))
42427
2c48c5ffb581 8170648: Move java.net.http package out of Java SE to incubator namespace
michaelm
parents: 42290
diff changeset
   216
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   217
JAVADOC_TARGETS += $(JAVADOC_TARGET_DIR)/index.html
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   218
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   219
################################################################################
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   220
# Setup call to Java SE Reference javadoc based on above settings
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   221
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   222
REFERENCE_TARGET_DIR := $(IMAGES_OUTPUTDIR)/javase-docs/api
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   223
REFERENCE_OVERVIEW := $(JDK_TOPDIR)/src/java.base/share/classes/overview-core.html
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   224
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   225
REFERENCE_TITLE_OPTIONS += -doctitle '$(REFERENCE_DOC_TITLE)'
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   226
REFERENCE_TITLE_OPTIONS += -windowtitle '$(JAVADOC_WINDOW_TITLE)'
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   227
REFERENCE_TITLE_OPTIONS += -header '$(JAVADOC_HEADER_TITLE)'
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   228
REFERENCE_TITLE_OPTIONS += -bottom '$(JAVADOC_BOTTOM)'
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   229
ifeq ($(IS_DRAFT), true)
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   230
  REFERENCE_TITLE_OPTIONS += -top '$(JAVADOC_TOP)'
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   231
endif
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   232
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   233
REFERENCE_VARDEPS := $(JAVADOC_OPTIONS) $(REFERENCE_TITLE_OPTIONS) $(JAVADOC_TAGS) \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   234
    $(JAVADOC_MODULES) $(JAVADOC_SOURCE_PATH)
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   235
REFERENCE_VARDEPS_FILE := $(call DependOnVariable, REFERENCE_VARDEPS, \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   236
    $(SUPPORT_OUTPUTDIR)/docs/reference.vardeps)
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   237
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   238
# Javadoc creates a lot of files but use index.html as a marker.
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   239
$(REFERENCE_TARGET_DIR)/index.html: $(BUILD_TOOLS_JDK) $(REFERENCE_VARDEPS_FILE) \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   240
    $(JAVADOC_SOURCE_DEPS) $(REFERENCE_OVERVIEW)
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   241
	$(call LogWarn, Generating reference Javadoc for Java SE)
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   242
	$(call MakeDir, $(REFERENCE_TARGET_DIR))
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   243
	$(call ExecuteWithLog, $(SUPPORT_OUTPUTDIR)/docs/reference, \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   244
	    $(JAVA) -Djava.awt.headless=true \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   245
	        -DenableModuleGraph=$(ENABLE_MODULE_GRAPH) \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   246
	        $(NEW_JAVADOC) -d $(REFERENCE_TARGET_DIR) \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   247
	        $(JAVADOC_TAGS) $(JAVADOC_OPTIONS) $(JAVADOC_LOG_OPTION) \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   248
	        $(REFERENCE_TITLE_OPTIONS) -overview $(REFERENCE_OVERVIEW) \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   249
	        --module-source-path $(JAVADOC_SOURCE_PATH) \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   250
	        --module java.se.ee)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   251
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   252
REFERENCE_TARGETS += $(REFERENCE_TARGET_DIR)/index.html
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   253
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   254
################################################################################
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   255
# Copy targets
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   256
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   257
JDWP_HTML := $(SUPPORT_OUTPUTDIR)/gensrc/jdk.jdi/jdwp-protocol.html
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   258
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   259
$(eval $(call SetupCopyFiles, COPY_JDWP_HTML, \
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   260
    FILES := $(JDWP_HTML), \
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   261
    DEST := $(JAVADOC_OUTPUTDIR)/platform/jpda/jdwp, \
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   262
))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   263
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   264
COPY_TARGETS += $(COPY_JDWP_HTML)
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   265
41260
4f71f07b30d1 8150736: Excessive disk space used by build system
erikj
parents: 41172
diff changeset
   266
# Pick jvmti.html from any jvm variant, they are all the same.
4f71f07b30d1 8150736: Excessive disk space used by build system
erikj
parents: 41172
diff changeset
   267
JVMTI_HTML := $(firstword \
4f71f07b30d1 8150736: Excessive disk space used by build system
erikj
parents: 41172
diff changeset
   268
    $(wildcard $(HOTSPOT_OUTPUTDIR)/variant-*/gensrc/jvmtifiles/jvmti.html))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   269
41260
4f71f07b30d1 8150736: Excessive disk space used by build system
erikj
parents: 41172
diff changeset
   270
$(eval $(call SetupCopyFiles, COPY_JVMTI_HTML, \
4f71f07b30d1 8150736: Excessive disk space used by build system
erikj
parents: 41172
diff changeset
   271
    FILES := $(JVMTI_HTML), \
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   272
    DEST := $(JAVADOC_OUTPUTDIR)/platform/jvmti, \
41260
4f71f07b30d1 8150736: Excessive disk space used by build system
erikj
parents: 41172
diff changeset
   273
))
4f71f07b30d1 8150736: Excessive disk space used by build system
erikj
parents: 41172
diff changeset
   274
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   275
COPY_TARGETS += $(COPY_JVMTI_HTML)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   276
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   277
################################################################################
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   278
# 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
   279
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   280
JAVADOC_ZIP_NAME := jdk-$(VERSION_STRING)-docs.zip
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   281
JAVADOC_ZIP_FILE := $(OUTPUT_ROOT)/bundles/$(JAVADOC_ZIP_NAME)
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   282
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   283
$(eval $(call SetupZipArchive, BUILD_JAVADOC_ZIP, \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   284
  SRC := $(JAVADOC_OUTPUTDIR), \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   285
  ZIP := $(JAVADOC_ZIP_FILE), \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   286
  EXTRA_DEPS := $(JAVADOC_TARGETS) $(COPY_TARGETS), \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   287
))
37034
b63fd4af003e 8154313: Generated javadoc scattered all over the place
neugens
parents: 36792
diff changeset
   288
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   289
ZIP_TARGETS += $(BUILD_JAVADOC_ZIP)
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   290
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   291
################################################################################
44397
f932d6b9f7fe 8173303: Add module-subgraph images to main platform documentation
mchung
parents: 44071
diff changeset
   292
# generate .dot files for module graphs
f932d6b9f7fe 8173303: Add module-subgraph images to main platform documentation
mchung
parents: 44071
diff changeset
   293
f932d6b9f7fe 8173303: Add module-subgraph images to main platform documentation
mchung
parents: 44071
diff changeset
   294
JAVADOC_MODULE_GRAPHS_DIR := $(SUPPORT_OUTPUTDIR)/docs/module-graphs
f932d6b9f7fe 8173303: Add module-subgraph images to main platform documentation
mchung
parents: 44071
diff changeset
   295
JAVADOC_MODULE_GRAPHS := $(JAVADOC_MODULE_GRAPHS_DIR)/java.se.dot
f932d6b9f7fe 8173303: Add module-subgraph images to main platform documentation
mchung
parents: 44071
diff changeset
   296
JAVADOC_MODULE_GRAPHS_PROPS := $(JDK_TOPDIR)/make/src/classes/build/tools/jigsaw/javadoc-graphs.properties
f932d6b9f7fe 8173303: Add module-subgraph images to main platform documentation
mchung
parents: 44071
diff changeset
   297
f932d6b9f7fe 8173303: Add module-subgraph images to main platform documentation
mchung
parents: 44071
diff changeset
   298
$(JAVADOC_MODULE_GRAPHS): $(BUILD_JIGSAW_TOOLS) $(JAVADOC_MODULE_GRAPHS_PROPS)
f932d6b9f7fe 8173303: Add module-subgraph images to main platform documentation
mchung
parents: 44071
diff changeset
   299
	$(MKDIR) -p $(@D)
f932d6b9f7fe 8173303: Add module-subgraph images to main platform documentation
mchung
parents: 44071
diff changeset
   300
	$(TOOL_GENGRAPHS) --spec --output $(JAVADOC_MODULE_GRAPHS_DIR) \
f932d6b9f7fe 8173303: Add module-subgraph images to main platform documentation
mchung
parents: 44071
diff changeset
   301
	    --dot-attributes $(JAVADOC_MODULE_GRAPHS_PROPS)
f932d6b9f7fe 8173303: Add module-subgraph images to main platform documentation
mchung
parents: 44071
diff changeset
   302
f932d6b9f7fe 8173303: Add module-subgraph images to main platform documentation
mchung
parents: 44071
diff changeset
   303
MODULE_GRAPH_TARGETS += $(JAVADOC_MODULE_GRAPHS)
f932d6b9f7fe 8173303: Add module-subgraph images to main platform documentation
mchung
parents: 44071
diff changeset
   304
f932d6b9f7fe 8173303: Add module-subgraph images to main platform documentation
mchung
parents: 44071
diff changeset
   305
################################################################################
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   306
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   307
# Hook to include the corresponding custom file, if present.
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   308
$(eval $(call IncludeCustomExtension, , Javadoc.gmk))
39384
adde8cb7d01b 8003593: build-infra: Paths to optional platform-specific files should not be hardwired to src/closed
erikj
parents: 39381
diff changeset
   309
adde8cb7d01b 8003593: build-infra: Paths to optional platform-specific files should not be hardwired to src/closed
erikj
parents: 39381
diff changeset
   310
################################################################################
adde8cb7d01b 8003593: build-infra: Paths to optional platform-specific files should not be hardwired to src/closed
erikj
parents: 39381
diff changeset
   311
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   312
docs-module-graphs: $(MODULE_GRAPH_TARGETS)
44397
f932d6b9f7fe 8173303: Add module-subgraph images to main platform documentation
mchung
parents: 44071
diff changeset
   313
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   314
docs-javadoc: $(JAVADOC_TARGETS)
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   315
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   316
docs-reference: $(REFERENCE_TARGETS)
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   317
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   318
docs-copy: $(COPY_TARGETS)
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   319
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   320
docs-zip: $(ZIP_TARGETS)
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   321
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   322
all: docs-module-graphs docs-javadoc docs-reference docs-copy docs-zip
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   323
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   324
.PHONY: default all docs-module-graphs docs-javadoc docs-reference docs-copy docs-zip