make/Javadoc.gmk
author ihse
Wed, 26 Apr 2017 14:34:09 +0200
changeset 44827 56c57aa67d0c
parent 44826 7a887996ee84
child 44829 d9f6608f924e
permissions -rw-r--r--
8178042: Allow custom taglets Reviewed-by: erikj, mchung
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
################################################################################
44827
56c57aa67d0c 8178042: Allow custom taglets
ihse
parents: 44826
diff changeset
    38
56c57aa67d0c 8178042: Allow custom taglets
ihse
parents: 44826
diff changeset
    39
# Hook to include the corresponding custom file, if present.
56c57aa67d0c 8178042: Allow custom taglets
ihse
parents: 44826
diff changeset
    40
$(eval $(call IncludeCustomExtension, , Javadoc.gmk))
56c57aa67d0c 8178042: Allow custom taglets
ihse
parents: 44826
diff changeset
    41
56c57aa67d0c 8178042: Allow custom taglets
ihse
parents: 44826
diff changeset
    42
################################################################################
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
    43
# Javadoc settings
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    44
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
    45
# 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
    46
# 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
    47
MODULES_SOURCE_PATH := $(call PathList, $(call GetModuleSrcPath) \
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
    48
    $(SUPPORT_OUTPUTDIR)/rmic/* $(JDK_TOPDIR)/src/*/share/doc/stub)
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
    49
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
    50
# Should we use -Xdocrootparent? Allow custom to overwrite.
44827
56c57aa67d0c 8178042: Allow custom taglets
ihse
parents: 44826
diff changeset
    51
DOCROOTPARENT_FLAG ?= TRUE
37034
b63fd4af003e 8154313: Generated javadoc scattered all over the place
neugens
parents: 36792
diff changeset
    52
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
    53
# URLs
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
    54
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
    55
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
    56
COPYRIGHT_URL := {@docroot}/../legal/cpyr.html
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
    57
42135
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    58
# 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
    59
# 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
    60
JAVADOC_TAGS := \
42135
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    61
    -tag beaninfo:X \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    62
    -tag revised:X \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    63
    -tag since.unbundled:X \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    64
    -tag spec:X \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    65
    -tag specdefault:X \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    66
    -tag Note:X \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    67
    -tag ToDo:X \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    68
    -tag 'apiNote:a:API Note:' \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    69
    -tag 'implSpec:a:Implementation Requirements:' \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    70
    -tag 'implNote:a:Implementation Note:' \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    71
    -tag param \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    72
    -tag return \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    73
    -tag throws \
44397
f932d6b9f7fe 8173303: Add module-subgraph images to main platform documentation
mchung
parents: 44071
diff changeset
    74
    -taglet build.tools.taglet.ModuleGraph \
42135
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    75
    -tag since \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    76
    -tag version \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    77
    -tag serialData \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    78
    -tag factory \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    79
    -tag see \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    80
    -tag 'jvms:a:See <cite>The Java&trade; Virtual Machine Specification</cite>:' \
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    81
    -tag 'jls:a:See <cite>The Java&trade; Language Specification</cite>:' \
44826
7a887996ee84 8178725: provide way to link to external documentation
ksrini
parents: 44734
diff changeset
    82
    -taglet build.tools.taglet.ExtLink \
43285
223c3eea12e4 8173354: javadoc warning notice for types in Incubator Modules
chegar
parents: 43171
diff changeset
    83
    -taglet build.tools.taglet.Incubating \
223c3eea12e4 8173354: javadoc warning notice for types in Incubator Modules
chegar
parents: 43171
diff changeset
    84
    -tagletpath $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
44827
56c57aa67d0c 8178042: Allow custom taglets
ihse
parents: 44826
diff changeset
    85
    $(CUSTOM_JAVADOC_TAGS) \
42135
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    86
    #
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
    87
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
    88
# Which doclint checks to ignore
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
    89
JAVADOC_DISABLED_DOCLINT := accessibility html missing syntax reference
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
    90
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
    91
# The initial set of options for javadoc
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
    92
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
    93
    -serialwarn -encoding ISO-8859-1 -breakiterator -splitIndex --system none \
44732
c43bf5c360d5 8175036: All API docs should be built for HTML 5
ihse
parents: 44726
diff changeset
    94
    -html5 --expand-requires transitive
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
    95
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
    96
# 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
    97
ifeq ($(VERSION_IS_GA), true)
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
    98
  IS_DRAFT := false
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
    99
else
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   100
  IS_DRAFT := true
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   101
endif
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   102
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   103
################################################################################
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   104
# General text snippets
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   105
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   106
FULL_COMPANY_NAME := Oracle and/or its affiliates
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   107
COMPANY_ADDRESS := 500 Oracle Parkway<br>Redwood Shores, CA 94065 USA
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   108
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   109
ifeq ($(IS_DRAFT), true)
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   110
  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
   111
  ifeq ($(VERSION_BUILD), 0)
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   112
    DRAFT_MARKER_TITLE := [ad-hoc build]
43047
28be7f773e4e 8172562: Changing log level on Javadoc causes total rebuild
ihse
parents: 43044
diff changeset
   113
  else
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   114
    DRAFT_MARKER_TITLE := [build $(VERSION_BUILD)]
43047
28be7f773e4e 8172562: Changing log level on Javadoc causes total rebuild
ihse
parents: 43044
diff changeset
   115
  endif
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   116
endif
42135
484c28d7fd1b 8170077: Properly parallelize javadoc generation
ihse
parents: 42134
diff changeset
   117
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   118
JAVADOC_WINDOW_TITLE := Java Platform SE $(VERSION_SPECIFICATION) \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   119
    $(DRAFT_MARKER_TITLE)
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   120
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   121
JAVADOC_HEADER_TITLE := $(subst $(SPACE),&nbsp;,$(strip \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   122
    <strong>Java&trade; Platform<br>Standard Ed. \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   123
    $(VERSION_SPECIFICATION)</strong>$(DRAFT_MARKER_STR)))
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_BOTTOM := \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   126
    <span style="font-size:smaller"> \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   127
    <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
   128
    For further API reference and developer documentation, see \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   129
    <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
   130
    Documentation</a>. That documentation contains more detailed, \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   131
    developer-targeted descriptions, with conceptual overviews, definitions \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   132
    of terms, workarounds, and working code examples.<br> \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   133
    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
   134
    the US and other countries.<br> \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   135
    <a href="$(COPYRIGHT_URL)">Copyright</a> \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   136
    &copy; 1993, $(COPYRIGHT_YEAR), $(FULL_COMPANY_NAME). \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   137
    $(COMPANY_ADDRESS). All rights reserved.$(DRAFT_MARKER_STR)</span>
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   138
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   139
JAVADOC_TOP := \
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   140
    <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
   141
    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
   142
    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
   143
    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
   144
    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
   145
    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
   146
    purpose of evaluation.</div></div>
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   147
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   148
################################################################################
44726
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   149
# JDK javadoc titles/text snippets
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   150
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   151
JDK_JAVADOC_DOC_TITLE := Java&trade; Platform, Standard Edition Development Kit \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   152
    (JDK&trade;) $(VERSION_SPECIFICATION)<br>API Specification
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   153
44726
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   154
################################################################################
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   155
# Java SE javadoc titles/text snippets
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   156
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   157
JAVASE_JAVADOC_DOC_TITLE := Java&trade; Platform, Standard Edition \
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   158
    $(VERSION_SPECIFICATION)<br>API Specification
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   159
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   160
################################################################################
44726
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   161
# Functions
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   162
44726
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   163
# 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
   164
# GenGraphs tool.
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   165
# param 1: SetupJavadocGeneration namespace ($1)
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   166
# param 2: module name
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   167
#
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   168
define setup_gengraph_dot_to_png
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   169
  $1_$2_DOT_SRC :=  $$($1_GENGRAPHS_DIR)/$2.dot
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   170
  $1_$2_PNG_TARGET := $$($1_TARGET_DIR)/$2-graph.png
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   171
44726
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   172
    # 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
   173
    # generated by the GenGraphs tool and store it in the target dir.
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   174
    $$($1_$2_PNG_TARGET): $$($1_GENGRAPHS_MARKER)
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   175
	$$(call MakeDir, $$(@D))
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   176
	$$(call ExecuteWithLog, $$($1_$2_DOT_SRC), \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   177
	    $$(DOT) -Tpng -o $$($1_$2_PNG_TARGET) $$($1_$2_DOT_SRC))
42427
2c48c5ffb581 8170648: Move java.net.http package out of Java SE to incubator namespace
michaelm
parents: 42290
diff changeset
   178
44726
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   179
  $1_MODULEGRAPH_TARGETS += $$($1_$2_PNG_TARGET)
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   180
endef
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   181
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   182
################################################################################
44726
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   183
# Setup make rules for creating the API documentation, using javadoc and other
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   184
# tools if needed.
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
# 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
   187
# 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
   188
# $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
   189
# 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
   190
#
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   191
# Remaining parameters are named arguments. These include:
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   192
#   MODULES - Modules to generate javadoc for
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   193
#   NAME - The name of the javadoc compilation, to be presented to the user
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   194
#   TARGET_DIR - Where to store the output
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   195
#   OVERVIEW - Path to an html overview file
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   196
#   DOC_TITLE - Title to use in -doctitle.
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   197
#   WINDOW_TITLE - Title to use in -windowtitle.
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   198
#   HEADER_TITLE - Title to use in -header.
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   199
#   BOTTOM_TEXT - Text to use in -bottom.
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   200
#   TOP_TEXT - Text to use in -top.
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   201
#
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   202
SetupApiDocsGeneration = $(NamedParamsMacroTemplate)
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   203
define SetupApiDocsGenerationBody
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   204
44726
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   205
  # Figure out all modules, both specified and transitive, that will be processed
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   206
  # by javadoc.
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   207
  $1_TRANSITIVE_MODULES := $$(call FindTransitiveDepsForModules, $$($1_MODULES))
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   208
  $1_ALL_MODULES := $$(sort $$($1_MODULES) $$($1_TRANSITIVE_MODULES))
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   209
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   210
  ifeq ($$(ENABLE_FULL_DOCS), true)
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   211
    # 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
   212
    # png files with module graphs.
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   213
    $1_JAVA_ARGS += -DenableModuleGraph=true
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   214
  endif
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   215
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   216
  # Always include tags and basic options
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   217
  $1_OPTIONS := $$(JAVADOC_TAGS) $$(JAVADOC_OPTIONS)
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   218
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   219
  $1_OPTIONS += -overview $$($1_OVERVIEW)
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   220
  $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
   221
  $1_OPTIONS += --module $$(call CommaList, $$($1_MODULES))
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   222
44726
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   223
  # 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
   224
  $1_OPTIONS += -Xdoclint:all,$$(call CommaList, $$(addprefix -, \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   225
      $$(JAVADOC_DISABLED_DOCLINT)))
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   226
44827
56c57aa67d0c 8178042: Allow custom taglets
ihse
parents: 44826
diff changeset
   227
  ifeq ($$($$DOCROOTPARENT_FLAG), TRUE)
44726
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   228
    $1_OPTIONS += -Xdocrootparent $$(JAVADOC_BASE_URL)
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   229
  endif
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   230
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   231
  $1_OPTIONS += -doctitle '$$($1_DOC_TITLE)'
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   232
  $1_OPTIONS += -windowtitle '$$($1_WINDOW_TITLE)'
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   233
  $1_OPTIONS += -header '$$($1_HEADER_TITLE)'
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   234
  $1_OPTIONS += -bottom '$$($1_BOTTOM_TEXT)'
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   235
  ifeq ($$(IS_DRAFT), true)
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   236
    $1_OPTIONS += -top '$$($1_TOP_TEXT)'
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   237
  endif
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   238
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   239
  # 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
   240
  ifneq ($$(LOG_LEVEL), trace)
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   241
    $1_LOG_OPTION += -quiet
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   242
  else
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   243
    $1_LOG_OPTION += -verbose
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   244
  endif
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   245
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   246
  $1_VARDEPS := $$($1_JAVA_ARGS) $$($1_OPTIONS) $$(MODULES_SOURCE_PATH) \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   247
      $$($1_ALL_MODULES)
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   248
  $1_VARDEPS_FILE := $$(call DependOnVariable, $1_VARDEPS, \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   249
      $$(SUPPORT_OUTPUTDIR)/docs/$1.vardeps)
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   250
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   251
  # Get a list of all files in all the source dirs for all included modules
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   252
  $1_SOURCE_DEPS := $$(call CacheFind, $$(wildcard $$(foreach module, \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   253
      $$($1_ALL_MODULES), $$(call FindModuleSrcDirs, $$(module)))))
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   254
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   255
  # Javadoc creates a lot of files but use index.html as a marker
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   256
  $$($1_TARGET_DIR)/index.html: $$(BUILD_TOOLS_JDK) $$($1_VARDEPS_FILE) \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   257
      $$($1_SOURCE_DEPS) $$($1_OVERVIEW)
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   258
	$$(call LogWarn, Generating $$($1_NAME) API javadoc for \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   259
	    $$(words $$($1_ALL_MODULES)) modules)
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   260
	$$(call LogInfo, Javadoc modules: $$($1_ALL_MODULES))
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   261
	$$(call MakeDir, $$($1_TARGET_DIR))
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   262
	$$(call ExecuteWithLog, $$(SUPPORT_OUTPUTDIR)/docs/$1, \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   263
	    $$(JAVA) -Djava.awt.headless=true $$($1_JAVA_ARGS) \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   264
	        $$(NEW_JAVADOC) -d $$($1_TARGET_DIR) \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   265
	        $$(JAVADOC_TAGS) $$($1_OPTIONS) $$($1_LOG_OPTION))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   266
44726
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   267
  $1_JAVADOC_TARGETS := $$($1_TARGET_DIR)/index.html
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   268
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   269
  ifeq ($$(ENABLE_FULL_DOCS), true)
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   270
    # 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
   271
    # produce the png files.
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   272
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   273
    # 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
   274
    $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
   275
      $$(if $$(shell $$(GREP) -e @moduleGraph \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   276
          $$(wildcard $$(addsuffix /module-info.java, \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   277
          $$(call FindModuleSrcDirs, $$m)))), \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   278
        $$m) \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   279
    ))
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   280
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   281
    # 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
   282
    # 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
   283
    GENGRAPHS_PROPS := \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   284
        $$(JDK_TOPDIR)/make/src/classes/build/tools/jigsaw/javadoc-graphs.properties
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   285
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   286
    $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
   287
    $1_GENGRAPHS_MARKER := $$($1_GENGRAPHS_DIR)/_gengraphs_run.marker
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   288
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   289
    $$($1_GENGRAPHS_MARKER): $$(BUILD_JIGSAW_TOOLS) $$(GENGRAPHS_PROPS)
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   290
	$$(call LogInfo, Running gengraphs for $$($1_NAME) API documentation)
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   291
	$$(call MakeDir, $$($1_GENGRAPHS_DIR))
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   292
	$$(call ExecuteWithLog, $$($1_GENGRAPHS_DIR)/gengraphs, \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   293
	    $$(TOOL_GENGRAPHS) --spec --output $$($1_GENGRAPHS_DIR) \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   294
	    --dot-attributes $$(GENGRAPHS_PROPS) && \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   295
	    $$(TOUCH) $$($1_GENGRAPHS_MARKER))
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
    # 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
   298
    # generated by the GenGraphs tool and store it in the target dir.
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   299
    # They will depend on $1_GENGRAPHS_MARKER, and will be added to $1.
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   300
    $$(foreach m, $$($1_MODULES_NEEDING_GRAPH), \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   301
      $$(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
   302
    )
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   303
  endif
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   304
endef
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   305
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   306
################################################################################
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   307
# Setup generation of the JDK API documentation (javadoc + modulegraph)
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   308
44726
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   309
# All modules to have docs generated by docs-jdk-api target
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   310
JDK_JAVADOC_MODULES := $(sort $(DOCS_MODULES))
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   311
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   312
JDK_JAVADOC_OVERVIEW := $(JDK_TOPDIR)/src/java.base/share/classes/overview-core.html
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   313
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   314
$(eval $(call SetupApiDocsGeneration, JDK_API, \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   315
    MODULES := $(JDK_JAVADOC_MODULES), \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   316
    NAME := JDK, \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   317
    TARGET_DIR := $(JAVADOC_OUTPUTDIR)/api, \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   318
    OVERVIEW := $(JDK_JAVADOC_OVERVIEW), \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   319
    DOC_TITLE := $(JDK_JAVADOC_DOC_TITLE), \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   320
    WINDOW_TITLE := $(JAVADOC_WINDOW_TITLE), \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   321
    HEADER_TITLE := $(JAVADOC_HEADER_TITLE), \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   322
    BOTTOM_TEXT := $(JAVADOC_BOTTOM), \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   323
    TOP_TEXT := $(JAVADOC_TOP), \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   324
))
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   325
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   326
# 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
   327
# JDK_API_MODULEGRAPH_TARGETS.
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   328
44726
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   329
################################################################################
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   330
# 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
   331
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   332
# The Java SE module scope is just java.se.ee and it's transitive modules.
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   333
JAVASE_JAVADOC_MODULES := java.se.ee
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   334
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   335
JAVASE_JAVADOC_OVERVIEW := $(JDK_TOPDIR)/src/java.base/share/classes/overview-core.html
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   336
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   337
$(eval $(call SetupApiDocsGeneration, JAVASE_API, \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   338
    MODULES := $(JAVASE_JAVADOC_MODULES), \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   339
    NAME := Java SE, \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   340
    TARGET_DIR := $(IMAGES_OUTPUTDIR)/javase-docs/api, \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   341
    OVERVIEW := $(JAVASE_JAVADOC_OVERVIEW), \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   342
    DOC_TITLE := $(JAVASE_JAVADOC_DOC_TITLE), \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   343
    WINDOW_TITLE := $(JAVADOC_WINDOW_TITLE), \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   344
    HEADER_TITLE := $(JAVADOC_HEADER_TITLE), \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   345
    BOTTOM_TEXT := $(JAVADOC_BOTTOM), \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   346
    TOP_TEXT := $(JAVADOC_TOP), \
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   347
))
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   348
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   349
# 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
   350
# JAVASE_API_MODULEGRAPH_TARGETS.
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   351
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   352
################################################################################
44733
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   353
# Copy JDK specs files
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   354
44733
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   355
# For all html documentation in $module/share/specs directories, copy it
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   356
# unmodified
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   357
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   358
ALL_MODULES := $(call FindAllModules)
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   359
COPY_SPEC_FILTER := %.html %.gif %.jpg %.mib
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   360
44733
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   361
$(foreach m, $(ALL_MODULES), \
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   362
  $(eval SPECS_$m := $(call FindModuleSpecsDirs, $m)) \
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   363
  $(if $(SPECS_$m), \
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   364
    $(eval $(call SetupCopyFiles, COPY_$m, \
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   365
        SRC := $(SPECS_$m), \
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   366
        FILES := $(filter $(COPY_SPEC_FILTER), $(call CacheFind, $(SPECS_$m))), \
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   367
        DEST := $(JAVADOC_OUTPUTDIR)/specs/, \
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   368
    )) \
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   369
    $(eval JDK_SPECS_TARGETS += $(COPY_$m)) \
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   370
  ) \
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   371
)
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   372
44734
70bbd6884287 8179022: Add serialization spec as markdown
ihse
parents: 44733
diff changeset
   373
ifeq ($(ENABLE_FULL_DOCS), true)
70bbd6884287 8179022: Add serialization spec as markdown
ihse
parents: 44733
diff changeset
   374
  # For all markdown files in $module/share/specs directories, convert them to
70bbd6884287 8179022: Add serialization spec as markdown
ihse
parents: 44733
diff changeset
   375
  # html.
70bbd6884287 8179022: Add serialization spec as markdown
ihse
parents: 44733
diff changeset
   376
  MARKDOWN_SPEC_FILTER := %.md
70bbd6884287 8179022: Add serialization spec as markdown
ihse
parents: 44733
diff changeset
   377
70bbd6884287 8179022: Add serialization spec as markdown
ihse
parents: 44733
diff changeset
   378
  # Macro for SetupCopyFiles that converts from markdown to html using pandoc.
70bbd6884287 8179022: Add serialization spec as markdown
ihse
parents: 44733
diff changeset
   379
  define markdown-to-html
70bbd6884287 8179022: Add serialization spec as markdown
ihse
parents: 44733
diff changeset
   380
	$(call MakeDir, $(@D))
70bbd6884287 8179022: Add serialization spec as markdown
ihse
parents: 44733
diff changeset
   381
	$(RM) $@
70bbd6884287 8179022: Add serialization spec as markdown
ihse
parents: 44733
diff changeset
   382
	$(PANDOC) -t html -s -o $@ $<
70bbd6884287 8179022: Add serialization spec as markdown
ihse
parents: 44733
diff changeset
   383
  endef
70bbd6884287 8179022: Add serialization spec as markdown
ihse
parents: 44733
diff changeset
   384
70bbd6884287 8179022: Add serialization spec as markdown
ihse
parents: 44733
diff changeset
   385
  rename-md-to-html = \
70bbd6884287 8179022: Add serialization spec as markdown
ihse
parents: 44733
diff changeset
   386
      $(patsubst %.md,%.html,$1)
70bbd6884287 8179022: Add serialization spec as markdown
ihse
parents: 44733
diff changeset
   387
70bbd6884287 8179022: Add serialization spec as markdown
ihse
parents: 44733
diff changeset
   388
  $(foreach m, $(ALL_MODULES), \
70bbd6884287 8179022: Add serialization spec as markdown
ihse
parents: 44733
diff changeset
   389
    $(eval SPECS_$m := $(call FindModuleSpecsDirs, $m)) \
70bbd6884287 8179022: Add serialization spec as markdown
ihse
parents: 44733
diff changeset
   390
    $(if $(SPECS_$m), \
70bbd6884287 8179022: Add serialization spec as markdown
ihse
parents: 44733
diff changeset
   391
      $(eval $(call SetupCopyFiles, CONVERT_MARKDOWN_$m, \
70bbd6884287 8179022: Add serialization spec as markdown
ihse
parents: 44733
diff changeset
   392
          SRC := $(SPECS_$m), \
70bbd6884287 8179022: Add serialization spec as markdown
ihse
parents: 44733
diff changeset
   393
          FILES := $(filter $(MARKDOWN_SPEC_FILTER), $(call CacheFind, $(SPECS_$m))), \
70bbd6884287 8179022: Add serialization spec as markdown
ihse
parents: 44733
diff changeset
   394
          DEST := $(JAVADOC_OUTPUTDIR)/specs/, \
70bbd6884287 8179022: Add serialization spec as markdown
ihse
parents: 44733
diff changeset
   395
          MACRO := markdown-to-html, \
70bbd6884287 8179022: Add serialization spec as markdown
ihse
parents: 44733
diff changeset
   396
          NAME_MACRO := rename-md-to-html, \
70bbd6884287 8179022: Add serialization spec as markdown
ihse
parents: 44733
diff changeset
   397
          LOG_ACTION := Converting from markdown, \
70bbd6884287 8179022: Add serialization spec as markdown
ihse
parents: 44733
diff changeset
   398
      )) \
70bbd6884287 8179022: Add serialization spec as markdown
ihse
parents: 44733
diff changeset
   399
      $(eval JDK_SPECS_TARGETS += $(CONVERT_MARKDOWN_$m)) \
70bbd6884287 8179022: Add serialization spec as markdown
ihse
parents: 44733
diff changeset
   400
    ) \
70bbd6884287 8179022: Add serialization spec as markdown
ihse
parents: 44733
diff changeset
   401
  )
70bbd6884287 8179022: Add serialization spec as markdown
ihse
parents: 44733
diff changeset
   402
70bbd6884287 8179022: Add serialization spec as markdown
ihse
parents: 44733
diff changeset
   403
endif
70bbd6884287 8179022: Add serialization spec as markdown
ihse
parents: 44733
diff changeset
   404
44733
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   405
# Special treatment for generated documentation
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   406
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   407
JDWP_PROTOCOL := $(SUPPORT_OUTPUTDIR)/gensrc/jdk.jdi/jdwp-protocol.html
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   408
$(eval $(call SetupCopyFiles, COPY_JDWP_PROTOCOL, \
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   409
    FILES := $(JDWP_PROTOCOL), \
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   410
    DEST := $(JAVADOC_OUTPUTDIR)/specs/jdwp, \
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   411
))
44733
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   412
JDK_SPECS_TARGETS += $(COPY_JDWP_PROTOCOL)
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   413
44733
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   414
# Get jvmti.html from the main jvm variant (all variants' jvmti.html are identical).
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   415
JVMTI_HTML := $(HOTSPOT_OUTPUTDIR)/variant-$(JVM_VARIANT_MAIN)/gensrc/jvmtifiles/jvmti.html
41260
4f71f07b30d1 8150736: Excessive disk space used by build system
erikj
parents: 41172
diff changeset
   416
$(eval $(call SetupCopyFiles, COPY_JVMTI_HTML, \
4f71f07b30d1 8150736: Excessive disk space used by build system
erikj
parents: 41172
diff changeset
   417
    FILES := $(JVMTI_HTML), \
44733
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   418
    DEST := $(JAVADOC_OUTPUTDIR)/specs, \
41260
4f71f07b30d1 8150736: Excessive disk space used by build system
erikj
parents: 41172
diff changeset
   419
))
44733
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   420
JDK_SPECS_TARGETS += $(COPY_JVMTI_HTML)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   421
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   422
################################################################################
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   423
# 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
   424
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   425
JAVADOC_ZIP_NAME := jdk-$(VERSION_STRING)-docs.zip
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   426
JAVADOC_ZIP_FILE := $(OUTPUT_ROOT)/bundles/$(JAVADOC_ZIP_NAME)
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   427
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   428
$(eval $(call SetupZipArchive, BUILD_JAVADOC_ZIP, \
44733
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   429
    SRC := $(JAVADOC_OUTPUTDIR), \
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   430
    ZIP := $(JAVADOC_ZIP_FILE), \
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   431
    EXTRA_DEPS := $(JDK_API_JAVADOC_TARGETS) $(JDK_API_MODULEGRAPH_TARGETS) \
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   432
        $(JDK_SPECS_TARGETS), \
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   433
))
37034
b63fd4af003e 8154313: Generated javadoc scattered all over the place
neugens
parents: 36792
diff changeset
   434
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   435
ZIP_TARGETS += $(BUILD_JAVADOC_ZIP)
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   436
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   437
################################################################################
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   438
44726
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   439
docs-jdk-api-javadoc: $(JDK_API_JAVADOC_TARGETS)
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   440
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   441
docs-jdk-api-modulegraph: $(JDK_API_MODULEGRAPH_TARGETS)
44397
f932d6b9f7fe 8173303: Add module-subgraph images to main platform documentation
mchung
parents: 44071
diff changeset
   442
44726
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   443
docs-javase-api-javadoc: $(JAVASE_API_JAVADOC_TARGETS)
44725
8747b14eb49c 8172312: Update docs target and image for new combined docs
ihse
parents: 44397
diff changeset
   444
44726
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   445
docs-javase-api-modulegraph: $(JAVASE_API_MODULEGRAPH_TARGETS)
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   446
44733
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   447
docs-jdk-specs: $(JDK_SPECS_TARGETS)
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   448
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   449
docs-zip: $(ZIP_TARGETS)
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   450
44726
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   451
all: docs-jdk-api-javadoc docs-jdk-api-modulegraph docs-javase-api-javadoc \
44733
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   452
    docs-javase-api-modulegraph docs-jdk-specs docs-zip
41652
a0664e2b49a1 8168772: Convert javadoc generation to build-infra standards
ihse
parents: 41260
diff changeset
   453
44726
04aa2c065f5c 8176785: Add build support to generate PNG file from .dot file
ihse
parents: 44725
diff changeset
   454
.PHONY: default all docs-jdk-api-javadoc docs-jdk-api-modulegraph \
44733
6505f00be6f2 8178038: Copy jdwp-protocol.html to proper location
ihse
parents: 44732
diff changeset
   455
    docs-javase-api-javadoc docs-javase-api-modulegraph docs-jdk-specs docs-zip