2018-02-26 21:38:13 +00:00
|
|
|
# Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
|
2012-09-18 18:29:16 +00:00
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
#
|
|
|
|
# This code is free software; you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU General Public License version 2 only, as
|
|
|
|
# published by the Free Software Foundation. Oracle designates this
|
|
|
|
# particular file as subject to the "Classpath" exception as provided
|
|
|
|
# by Oracle in the LICENSE file that accompanied this code.
|
|
|
|
#
|
|
|
|
# This code is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
# version 2 for more details (a copy is included in the LICENSE file that
|
|
|
|
# accompanied this code).
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License version
|
|
|
|
# 2 along with this work; if not, write to the Free Software Foundation,
|
|
|
|
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
#
|
|
|
|
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
|
|
# or visit www.oracle.com if you need additional information or have any
|
|
|
|
# questions.
|
|
|
|
#
|
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
default: all
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
include $(SPEC)
|
|
|
|
include MakeBase.gmk
|
2017-04-19 08:24:42 +00:00
|
|
|
include Modules.gmk
|
2018-12-11 14:18:57 +00:00
|
|
|
include ModuleTools.gmk
|
2017-05-03 06:46:37 +00:00
|
|
|
include ProcessMarkdown.gmk
|
2018-12-11 14:18:57 +00:00
|
|
|
include ToolsJdk.gmk
|
2017-04-19 08:24:42 +00:00
|
|
|
include ZipArchive.gmk
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2017-04-19 08:24:42 +00:00
|
|
|
# This is needed to properly setup DOCS_MODULES.
|
|
|
|
$(eval $(call ReadImportMetaData))
|
|
|
|
|
2017-04-26 12:34:09 +00:00
|
|
|
################################################################################
|
|
|
|
# Hook to include the corresponding custom file, if present.
|
2017-10-05 10:41:06 +00:00
|
|
|
$(eval $(call IncludeCustomExtension, Docs.gmk))
|
2017-04-26 12:34:09 +00:00
|
|
|
|
2017-05-29 07:18:10 +00:00
|
|
|
################################################################################
|
|
|
|
# This file generates all documentation for OpenJDK.
|
|
|
|
#
|
|
|
|
# We will generate API documentation for two different selections of the source
|
|
|
|
# code: "Java SE", which contains just the modules covered by the top-level
|
2018-02-10 12:06:16 +00:00
|
|
|
# module java.se and "JDK", which covers all of Java SE and also all
|
2017-05-29 07:18:10 +00:00
|
|
|
# other available modules that should be documented, including imported modules,
|
|
|
|
# if any.
|
|
|
|
#
|
|
|
|
# We will also generate separate, free-standing specifications from either
|
|
|
|
# markdown or existing html files.
|
|
|
|
#
|
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
################################################################################
|
2017-04-19 08:24:42 +00:00
|
|
|
# Javadoc settings
|
|
|
|
|
|
|
|
# On top of the sources that was used to compile the JDK, we need some
|
|
|
|
# extra java.rmi sources that are used just for javadoc.
|
2017-04-19 08:44:40 +00:00
|
|
|
MODULES_SOURCE_PATH := $(call PathList, $(call GetModuleSrcPath) \
|
2017-09-12 17:03:56 +00:00
|
|
|
$(SUPPORT_OUTPUTDIR)/rmic/* $(TOPDIR)/src/*/share/doc/stub)
|
2016-03-17 19:03:53 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
# URLs
|
2018-10-29 19:33:41 +00:00
|
|
|
JAVADOC_BASE_URL := https://docs.oracle.com/pls/topic/lookup?ctx=javase$(VERSION_NUMBER)&id=homepage
|
2018-10-26 00:06:40 +00:00
|
|
|
BUG_SUBMIT_URL := https://bugreport.java.com/bugreport/
|
2017-06-16 09:41:25 +00:00
|
|
|
COPYRIGHT_URL := {@docroot}/../legal/copyright.html
|
2018-10-26 00:06:40 +00:00
|
|
|
LICENSE_URL := https://www.oracle.com/technetwork/java/javase/terms/license/java$(VERSION_NUMBER)speclicense.html
|
|
|
|
REDISTRIBUTION_URL := https://www.oracle.com/technetwork/java/redist-137594.html
|
2017-05-08 12:02:22 +00:00
|
|
|
|
2016-11-22 12:44:41 +00:00
|
|
|
# In order to get a specific ordering it's necessary to specify the total
|
|
|
|
# ordering of tags as the tags are otherwise ordered in order of definition.
|
2017-04-19 08:24:42 +00:00
|
|
|
JAVADOC_TAGS := \
|
2016-11-22 12:44:41 +00:00
|
|
|
-tag beaninfo:X \
|
|
|
|
-tag revised:X \
|
|
|
|
-tag since.unbundled:X \
|
|
|
|
-tag spec:X \
|
|
|
|
-tag specdefault:X \
|
|
|
|
-tag Note:X \
|
|
|
|
-tag ToDo:X \
|
|
|
|
-tag 'apiNote:a:API Note:' \
|
|
|
|
-tag 'implSpec:a:Implementation Requirements:' \
|
|
|
|
-tag 'implNote:a:Implementation Note:' \
|
|
|
|
-tag param \
|
|
|
|
-tag return \
|
|
|
|
-tag throws \
|
2017-03-29 16:41:55 +00:00
|
|
|
-taglet build.tools.taglet.ModuleGraph \
|
2016-11-22 12:44:41 +00:00
|
|
|
-tag since \
|
|
|
|
-tag serialData \
|
|
|
|
-tag factory \
|
|
|
|
-tag see \
|
|
|
|
-tag 'jvms:a:See <cite>The Java™ Virtual Machine Specification</cite>:' \
|
|
|
|
-tag 'jls:a:See <cite>The Java™ Language Specification</cite>:' \
|
2017-04-25 14:54:11 +00:00
|
|
|
-taglet build.tools.taglet.ExtLink \
|
2017-01-25 14:10:43 +00:00
|
|
|
-taglet build.tools.taglet.Incubating \
|
|
|
|
-tagletpath $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
|
2017-04-26 12:34:09 +00:00
|
|
|
$(CUSTOM_JAVADOC_TAGS) \
|
2016-11-22 12:44:41 +00:00
|
|
|
#
|
|
|
|
|
2017-10-23 08:21:13 +00:00
|
|
|
# The reference tags must stay stable to allow for comparisons across the
|
|
|
|
# development cycle. If JAVADOC_TAGS needs to change, make sure that
|
|
|
|
# REFERENCE_TAGS remains unchanged, by copying and hardcoding, if necessary.
|
|
|
|
REFERENCE_TAGS := $(JAVADOC_TAGS)
|
|
|
|
|
2017-04-19 08:24:42 +00:00
|
|
|
# Which doclint checks to ignore
|
|
|
|
JAVADOC_DISABLED_DOCLINT := accessibility html missing syntax reference
|
|
|
|
|
|
|
|
# The initial set of options for javadoc
|
2017-08-04 17:59:28 +00:00
|
|
|
JAVADOC_OPTIONS := -use -keywords -notimestamp \
|
|
|
|
-serialwarn -encoding ISO-8859-1 -docencoding UTF-8 -breakiterator \
|
2018-03-27 04:30:33 +00:00
|
|
|
-splitIndex --system none -javafx --expand-requires transitive \
|
2017-10-20 18:42:36 +00:00
|
|
|
--override-methods=summary
|
2016-11-22 12:44:41 +00:00
|
|
|
|
2017-10-23 08:21:13 +00:00
|
|
|
# The reference options must stay stable to allow for comparisons across the
|
|
|
|
# development cycle.
|
|
|
|
REFERENCE_OPTIONS := -XDignore.symbol.file=true -use -keywords -notimestamp \
|
|
|
|
-serialwarn -encoding ISO-8859-1 -breakiterator -splitIndex --system none \
|
|
|
|
-html5 -javafx --expand-requires transitive
|
|
|
|
|
2017-04-19 08:24:42 +00:00
|
|
|
# Should we add DRAFT stamps to the generated javadoc?
|
|
|
|
ifeq ($(VERSION_IS_GA), true)
|
|
|
|
IS_DRAFT := false
|
|
|
|
else
|
|
|
|
IS_DRAFT := true
|
|
|
|
endif
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2017-04-19 08:24:42 +00:00
|
|
|
################################################################################
|
|
|
|
# General text snippets
|
2017-01-12 09:08:16 +00:00
|
|
|
|
2017-04-19 08:24:42 +00:00
|
|
|
FULL_COMPANY_NAME := Oracle and/or its affiliates
|
2017-06-19 16:20:42 +00:00
|
|
|
COMPANY_ADDRESS := 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
2016-10-26 14:00:26 +00:00
|
|
|
|
2017-06-19 16:20:42 +00:00
|
|
|
JAVA_PLATFORM := Java Platform
|
2017-05-29 07:18:10 +00:00
|
|
|
|
2017-04-19 08:24:42 +00:00
|
|
|
ifeq ($(IS_DRAFT), true)
|
|
|
|
DRAFT_MARKER_STR := <br><strong>DRAFT $(VERSION_STRING)</strong>
|
|
|
|
ifeq ($(VERSION_BUILD), 0)
|
|
|
|
DRAFT_MARKER_TITLE := [ad-hoc build]
|
2016-11-22 12:44:41 +00:00
|
|
|
else
|
2017-04-19 08:24:42 +00:00
|
|
|
DRAFT_MARKER_TITLE := [build $(VERSION_BUILD)]
|
2016-11-22 12:44:41 +00:00
|
|
|
endif
|
2017-06-19 16:20:42 +00:00
|
|
|
DRAFT_TEXT := This specification is not final and is subject to change. \
|
|
|
|
Use is subject to <a href="$(LICENSE_URL)">license terms</a>.
|
2017-10-23 08:21:13 +00:00
|
|
|
|
|
|
|
# Workaround stylesheet bug
|
|
|
|
HEADER_STYLE := style="margin-top: 9px;"
|
|
|
|
else
|
|
|
|
HEADER_STYLE := style="margin-top: 14px;"
|
2017-04-19 08:24:42 +00:00
|
|
|
endif
|
2016-11-22 12:44:41 +00:00
|
|
|
|
2017-04-19 08:24:42 +00:00
|
|
|
JAVADOC_BOTTOM := \
|
2017-06-19 16:20:42 +00:00
|
|
|
<a href="$(BUG_SUBMIT_URL)">Report a bug or suggest an enhancement</a><br> \
|
|
|
|
For further API reference and developer documentation see the \
|
2017-05-16 12:14:26 +00:00
|
|
|
<a href="$(JAVADOC_BASE_URL)" target="_blank">Java SE \
|
2017-06-19 16:20:42 +00:00
|
|
|
Documentation</a>, which contains more detailed, \
|
|
|
|
developer-targeted descriptions with conceptual overviews, definitions \
|
2017-04-19 08:24:42 +00:00
|
|
|
of terms, workarounds, and working code examples.<br> \
|
|
|
|
Java is a trademark or registered trademark of $(FULL_COMPANY_NAME) in \
|
|
|
|
the US and other countries.<br> \
|
|
|
|
<a href="$(COPYRIGHT_URL)">Copyright</a> \
|
2017-06-19 16:20:42 +00:00
|
|
|
© 1993, $(COPYRIGHT_YEAR), $(FULL_COMPANY_NAME), \
|
|
|
|
$(COMPANY_ADDRESS).<br>All rights reserved. \
|
|
|
|
Use is subject to <a href="$(LICENSE_URL)">license terms</a> and the \
|
2017-05-08 12:02:22 +00:00
|
|
|
<a href="$(REDISTRIBUTION_URL)">documentation redistribution policy</a>. \
|
2017-06-19 16:20:42 +00:00
|
|
|
$(DRAFT_MARKER_STR) <!-- Version $(VERSION_STRING) -->
|
|
|
|
|
2017-04-19 08:24:42 +00:00
|
|
|
JAVADOC_TOP := \
|
2017-06-19 16:20:42 +00:00
|
|
|
<div style="padding: 6px; text-align: center; font-size: 80%; \
|
|
|
|
font-family: DejaVu Sans, Arial, Helvetica, sans-serif; \
|
|
|
|
font-weight: normal;">$(DRAFT_TEXT)</div>
|
2016-10-26 14:00:26 +00:00
|
|
|
|
2017-10-23 08:21:13 +00:00
|
|
|
JDK_INDEX_CONTENT := \
|
|
|
|
<!DOCTYPE html> \
|
|
|
|
<html lang="en"> \
|
|
|
|
<head> \
|
|
|
|
<meta http-equiv="refresh" content="0;url=api/index.html"> \
|
|
|
|
</head> \
|
|
|
|
</html>
|
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
################################################################################
|
2017-04-19 08:44:40 +00:00
|
|
|
# JDK javadoc titles/text snippets
|
2016-10-26 14:00:26 +00:00
|
|
|
|
2017-06-19 16:20:42 +00:00
|
|
|
JDK_SHORT_NAME := Java SE $(VERSION_SPECIFICATION) & JDK $(VERSION_SPECIFICATION)
|
|
|
|
JDK_LONG_NAME := Java<sup>®</sup> Platform, Standard Edition \
|
2017-07-03 20:18:55 +00:00
|
|
|
& Java Development Kit
|
2017-04-19 08:44:40 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Java SE javadoc titles/text snippets
|
|
|
|
|
2017-06-19 16:20:42 +00:00
|
|
|
JAVASE_SHORT_NAME := Java SE $(VERSION_SPECIFICATION)
|
|
|
|
JAVASE_LONG_NAME := Java<sup>®</sup> Platform, Standard Edition
|
2016-10-26 14:00:26 +00:00
|
|
|
|
|
|
|
################################################################################
|
2017-04-19 08:44:40 +00:00
|
|
|
# Functions
|
2016-10-26 14:00:26 +00:00
|
|
|
|
2017-04-19 08:44:40 +00:00
|
|
|
# Helper function for creating a png file from a dot file generated by the
|
|
|
|
# GenGraphs tool.
|
|
|
|
# param 1: SetupJavadocGeneration namespace ($1)
|
|
|
|
# param 2: module name
|
|
|
|
#
|
|
|
|
define setup_gengraph_dot_to_png
|
|
|
|
$1_$2_DOT_SRC := $$($1_GENGRAPHS_DIR)/$2.dot
|
2018-02-07 19:28:23 +00:00
|
|
|
$1_$2_PNG_TARGET := $$($1_TARGET_DIR)/$2/module-graph.png
|
2016-10-26 14:00:26 +00:00
|
|
|
|
2017-04-19 08:44:40 +00:00
|
|
|
# For each module needing a graph, create a png file from the dot file
|
|
|
|
# generated by the GenGraphs tool and store it in the target dir.
|
|
|
|
$$($1_$2_PNG_TARGET): $$($1_GENGRAPHS_MARKER)
|
|
|
|
$$(call MakeDir, $$(@D))
|
|
|
|
$$(call ExecuteWithLog, $$($1_$2_DOT_SRC), \
|
|
|
|
$$(DOT) -Tpng -o $$($1_$2_PNG_TARGET) $$($1_$2_DOT_SRC))
|
2016-10-26 14:00:26 +00:00
|
|
|
|
2017-04-19 08:44:40 +00:00
|
|
|
$1_MODULEGRAPH_TARGETS += $$($1_$2_PNG_TARGET)
|
|
|
|
endef
|
2016-10-26 14:00:26 +00:00
|
|
|
|
2017-05-29 07:18:10 +00:00
|
|
|
# Helper function to create the overview.html file to use with the -overview
|
|
|
|
# javadoc option.
|
|
|
|
# Returns the filename as $1_OVERVIEW.
|
|
|
|
#
|
|
|
|
# param 1: SetupJavadocGeneration namespace ($1)
|
|
|
|
define create_overview_file
|
|
|
|
$1_OVERVIEW_TEXT := \
|
|
|
|
<!DOCTYPE html> \
|
|
|
|
<html><head></head><body> \
|
|
|
|
#
|
|
|
|
ifneq ($$($1_GROUPS),)
|
|
|
|
$1_OVERVIEW_TEXT += \
|
2017-06-19 16:20:42 +00:00
|
|
|
<p>This document is divided into \
|
|
|
|
$$(subst 2,two,$$(subst 3,three,$$(words $$($1_GROUPS)))) sections:</p> \
|
|
|
|
<blockquote><dl> \
|
|
|
|
#
|
2017-05-29 07:18:10 +00:00
|
|
|
$1_OVERVIEW_TEXT += $$(foreach g, $$($1_GROUPS), \
|
2018-10-22 04:46:34 +00:00
|
|
|
<dt style="margin-top: 8px;">$$($$g_GROUP_NAME)</dt> \
|
2017-07-03 20:18:55 +00:00
|
|
|
<dd style="margin-top: 8px;">$$($$g_GROUP_DESCRIPTION)</dd> \
|
2017-05-29 07:18:10 +00:00
|
|
|
)
|
|
|
|
$1_OVERVIEW_TEXT += \
|
2017-07-03 20:18:55 +00:00
|
|
|
</dl></blockquote> \
|
2017-05-29 07:18:10 +00:00
|
|
|
#
|
|
|
|
endif
|
|
|
|
$1_OVERVIEW_TEXT += \
|
|
|
|
</body></html> \
|
|
|
|
#
|
|
|
|
|
|
|
|
$1_OVERVIEW := $$(SUPPORT_OUTPUTDIR)/docs/$1-overview.html
|
|
|
|
|
|
|
|
$1_OVERVIEW_VARDEPS_FILE := $$(call DependOnVariable, $1_OVERVIEW_TEXT, \
|
|
|
|
$$($1_OVERVIEW).vardeps)
|
|
|
|
|
|
|
|
$$($1_OVERVIEW): $$($1_OVERVIEW_VARDEPS_FILE)
|
|
|
|
$$(call LogInfo, Creating overview.html for $1)
|
|
|
|
$$(call MakeDir, $$(@D))
|
|
|
|
$$(PRINTF) > $$@ '$$($1_OVERVIEW_TEXT)'
|
|
|
|
endef
|
|
|
|
|
2017-04-19 08:44:40 +00:00
|
|
|
################################################################################
|
2017-05-29 07:18:10 +00:00
|
|
|
# Setup make rules to create an API documentation collection, using javadoc and
|
|
|
|
# other tools if needed.
|
2017-04-19 08:44:40 +00:00
|
|
|
#
|
|
|
|
# Parameter 1 is the name of the rule. This name is used as variable prefix.
|
|
|
|
# Targets generated are returned as $1_JAVADOC_TARGETS and
|
|
|
|
# $1_MODULEGRAPH_TARGETS. Note that the index.html file will work as a "touch
|
|
|
|
# file" for all the magnitude of files that are generated by javadoc.
|
|
|
|
#
|
|
|
|
# Remaining parameters are named arguments. These include:
|
|
|
|
# MODULES - Modules to generate javadoc for
|
2017-05-29 07:18:10 +00:00
|
|
|
# GROUPS - Name of the groups to divide the modules into, if any
|
|
|
|
# SHORT_NAME - The short name of this documentation collection
|
|
|
|
# LONG_NAME - The long name of this documentation collection
|
2017-04-19 08:44:40 +00:00
|
|
|
# TARGET_DIR - Where to store the output
|
|
|
|
#
|
|
|
|
SetupApiDocsGeneration = $(NamedParamsMacroTemplate)
|
|
|
|
define SetupApiDocsGenerationBody
|
|
|
|
|
2017-05-22 07:47:31 +00:00
|
|
|
# Figure out all modules, both specified and transitive indirect exports, that
|
|
|
|
# will be processed by javadoc.
|
|
|
|
$1_INDIRECT_EXPORTS := $$(call FindTransitiveIndirectDepsForModules, $$($1_MODULES))
|
|
|
|
$1_ALL_MODULES := $$(sort $$($1_MODULES) $$($1_INDIRECT_EXPORTS))
|
2017-04-19 08:44:40 +00:00
|
|
|
|
2018-07-03 18:16:25 +00:00
|
|
|
$1_JAVA_ARGS := -Dextlink.spec.version=$$(VERSION_SPECIFICATION)
|
|
|
|
|
2017-04-19 08:44:40 +00:00
|
|
|
ifeq ($$(ENABLE_FULL_DOCS), true)
|
|
|
|
# Tell the ModuleGraph taglet to generate html links to soon-to-be-created
|
|
|
|
# png files with module graphs.
|
|
|
|
$1_JAVA_ARGS += -DenableModuleGraph=true
|
|
|
|
endif
|
|
|
|
|
2017-10-23 08:21:13 +00:00
|
|
|
# Start with basic options and tags
|
|
|
|
ifeq ($$($1_OPTIONS), )
|
|
|
|
$1_OPTIONS := $$(JAVADOC_OPTIONS)
|
|
|
|
endif
|
|
|
|
ifeq ($$($1_TAGS), )
|
|
|
|
$1_TAGS := $$(JAVADOC_TAGS)
|
|
|
|
endif
|
|
|
|
$1_OPTIONS += $$($1_TAGS)
|
2017-04-19 08:44:40 +00:00
|
|
|
|
|
|
|
$1_OPTIONS += --module-source-path $$(MODULES_SOURCE_PATH)
|
|
|
|
$1_OPTIONS += --module $$(call CommaList, $$($1_MODULES))
|
|
|
|
|
|
|
|
# Create a string like "-Xdoclint:all,-syntax,-html,..."
|
|
|
|
$1_OPTIONS += -Xdoclint:all,$$(call CommaList, $$(addprefix -, \
|
|
|
|
$$(JAVADOC_DISABLED_DOCLINT)))
|
|
|
|
|
2017-10-23 08:21:13 +00:00
|
|
|
$1_DOC_TITLE := $$($1_LONG_NAME)<br>Version $$(VERSION_SPECIFICATION) API \
|
|
|
|
Specification
|
|
|
|
$1_WINDOW_TITLE := $$(subst &,&,$$($1_SHORT_NAME)) $$(DRAFT_MARKER_TITLE)
|
|
|
|
$1_HEADER_TITLE := <div $$(HEADER_STYLE)><strong>$$($1_SHORT_NAME)</strong> \
|
2017-06-19 16:20:42 +00:00
|
|
|
$$(DRAFT_MARKER_STR)</div>
|
2017-05-29 07:18:10 +00:00
|
|
|
|
2017-04-19 08:44:40 +00:00
|
|
|
$1_OPTIONS += -doctitle '$$($1_DOC_TITLE)'
|
|
|
|
$1_OPTIONS += -windowtitle '$$($1_WINDOW_TITLE)'
|
|
|
|
$1_OPTIONS += -header '$$($1_HEADER_TITLE)'
|
2017-05-29 07:18:10 +00:00
|
|
|
$1_OPTIONS += -bottom '$$(JAVADOC_BOTTOM)'
|
2017-04-19 08:44:40 +00:00
|
|
|
ifeq ($$(IS_DRAFT), true)
|
2017-05-29 07:18:10 +00:00
|
|
|
$1_OPTIONS += -top '$$(JAVADOC_TOP)'
|
2017-04-19 08:44:40 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Do not store debug level options in VARDEPS.
|
|
|
|
ifneq ($$(LOG_LEVEL), trace)
|
|
|
|
$1_LOG_OPTION += -quiet
|
|
|
|
else
|
|
|
|
$1_LOG_OPTION += -verbose
|
|
|
|
endif
|
2016-10-26 14:00:26 +00:00
|
|
|
|
2017-05-29 07:18:10 +00:00
|
|
|
# Generate the overview.html file. This will return the filename in
|
|
|
|
# $1_OVERVIEW.
|
|
|
|
$$(eval $$(call create_overview_file,$1))
|
|
|
|
$1_OPTIONS += -overview $$($1_OVERVIEW)
|
|
|
|
|
|
|
|
$$(foreach g, $$($1_GROUPS), \
|
|
|
|
$$(eval $1_OPTIONS += -group "$$($$g_GROUP_NAME)" "$$($$g_GROUP_MODULES)") \
|
|
|
|
)
|
|
|
|
|
2017-10-23 08:21:13 +00:00
|
|
|
ifeq ($$($1_JAVADOC_CMD), )
|
2018-07-03 18:16:25 +00:00
|
|
|
$1_JAVADOC_CMD := $$(JAVA) -Djava.awt.headless=true $$($1_JAVA_ARGS) \
|
2017-10-23 08:21:13 +00:00
|
|
|
$$(NEW_JAVADOC)
|
2018-07-03 18:16:25 +00:00
|
|
|
else
|
2018-11-28 09:00:41 +00:00
|
|
|
$1_OPTIONS += $$(addprefix -J, $$($1_JAVA_ARGS))
|
2017-10-23 08:21:13 +00:00
|
|
|
endif
|
|
|
|
|
2017-04-19 08:44:40 +00:00
|
|
|
$1_VARDEPS := $$($1_JAVA_ARGS) $$($1_OPTIONS) $$(MODULES_SOURCE_PATH) \
|
2017-10-23 08:21:13 +00:00
|
|
|
$$($1_ALL_MODULES) $$($1_JAVADOC_CMD)
|
2017-04-19 08:44:40 +00:00
|
|
|
$1_VARDEPS_FILE := $$(call DependOnVariable, $1_VARDEPS, \
|
|
|
|
$$(SUPPORT_OUTPUTDIR)/docs/$1.vardeps)
|
|
|
|
|
|
|
|
# Get a list of all files in all the source dirs for all included modules
|
|
|
|
$1_SOURCE_DEPS := $$(call CacheFind, $$(wildcard $$(foreach module, \
|
|
|
|
$$($1_ALL_MODULES), $$(call FindModuleSrcDirs, $$(module)))))
|
|
|
|
|
|
|
|
# Javadoc creates a lot of files but use index.html as a marker
|
|
|
|
$$($1_TARGET_DIR)/index.html: $$(BUILD_TOOLS_JDK) $$($1_VARDEPS_FILE) \
|
|
|
|
$$($1_SOURCE_DEPS) $$($1_OVERVIEW)
|
2017-05-29 07:18:10 +00:00
|
|
|
$$(call LogWarn, Generating $1 javadoc for \
|
2017-04-19 08:44:40 +00:00
|
|
|
$$(words $$($1_ALL_MODULES)) modules)
|
|
|
|
$$(call LogInfo, Javadoc modules: $$($1_ALL_MODULES))
|
|
|
|
$$(call MakeDir, $$($1_TARGET_DIR))
|
|
|
|
$$(call ExecuteWithLog, $$(SUPPORT_OUTPUTDIR)/docs/$1, \
|
2017-10-23 08:21:13 +00:00
|
|
|
$$($1_JAVADOC_CMD) -d $$($1_TARGET_DIR) \
|
|
|
|
$$($1_OPTIONS) $$($1_LOG_OPTION))
|
2017-04-19 08:44:40 +00:00
|
|
|
|
|
|
|
$1_JAVADOC_TARGETS := $$($1_TARGET_DIR)/index.html
|
|
|
|
|
|
|
|
ifeq ($$(ENABLE_FULL_DOCS), true)
|
|
|
|
# We have asked ModuleGraph to generate links to png files. Now we must
|
|
|
|
# produce the png files.
|
|
|
|
|
|
|
|
# Locate which modules has the @moduleGraph tag in their module-info.java
|
|
|
|
$1_MODULES_NEEDING_GRAPH := $$(strip $$(foreach m, $$($1_ALL_MODULES), \
|
|
|
|
$$(if $$(shell $$(GREP) -e @moduleGraph \
|
|
|
|
$$(wildcard $$(addsuffix /module-info.java, \
|
|
|
|
$$(call FindModuleSrcDirs, $$m)))), \
|
|
|
|
$$m) \
|
|
|
|
))
|
|
|
|
|
|
|
|
# First we run the GenGraph tool. It will query the module structure of the
|
|
|
|
# running JVM and output .dot files for all existing modules.
|
|
|
|
GENGRAPHS_PROPS := \
|
2017-09-12 17:03:56 +00:00
|
|
|
$$(TOPDIR)/make/jdk/src/classes/build/tools/jigsaw/javadoc-graphs.properties
|
2017-04-19 08:44:40 +00:00
|
|
|
|
|
|
|
$1_GENGRAPHS_DIR := $$(SUPPORT_OUTPUTDIR)/docs/$1-gengraphs
|
|
|
|
$1_GENGRAPHS_MARKER := $$($1_GENGRAPHS_DIR)/_gengraphs_run.marker
|
|
|
|
|
|
|
|
$$($1_GENGRAPHS_MARKER): $$(BUILD_JIGSAW_TOOLS) $$(GENGRAPHS_PROPS)
|
2017-05-29 07:18:10 +00:00
|
|
|
$$(call LogInfo, Running gengraphs for $1 documentation)
|
2017-04-19 08:44:40 +00:00
|
|
|
$$(call MakeDir, $$($1_GENGRAPHS_DIR))
|
|
|
|
$$(call ExecuteWithLog, $$($1_GENGRAPHS_DIR)/gengraphs, \
|
|
|
|
$$(TOOL_GENGRAPHS) --spec --output $$($1_GENGRAPHS_DIR) \
|
|
|
|
--dot-attributes $$(GENGRAPHS_PROPS) && \
|
|
|
|
$$(TOUCH) $$($1_GENGRAPHS_MARKER))
|
|
|
|
|
|
|
|
# For each module needing a graph, create a png file from the dot file
|
|
|
|
# generated by the GenGraphs tool and store it in the target dir.
|
|
|
|
# They will depend on $1_GENGRAPHS_MARKER, and will be added to $1.
|
|
|
|
$$(foreach m, $$($1_MODULES_NEEDING_GRAPH), \
|
|
|
|
$$(eval $$(call setup_gengraph_dot_to_png,$1,$$m)) \
|
|
|
|
)
|
|
|
|
endif
|
|
|
|
endef
|
2017-04-19 08:24:42 +00:00
|
|
|
|
|
|
|
################################################################################
|
2017-04-19 08:44:40 +00:00
|
|
|
# Setup generation of the JDK API documentation (javadoc + modulegraph)
|
|
|
|
|
2017-05-29 07:18:10 +00:00
|
|
|
# Define the groups of the JDK API documentation
|
|
|
|
JavaSE_GROUP_NAME := Java SE
|
2018-02-10 12:06:16 +00:00
|
|
|
JavaSE_GROUP_MODULES := $(call ColonList, $(sort java.se \
|
|
|
|
$(call FindTransitiveIndirectDepsForModules, java.se)))
|
2017-05-29 07:18:10 +00:00
|
|
|
JavaSE_GROUP_DESCRIPTION := \
|
2017-06-19 16:20:42 +00:00
|
|
|
The Java Platform, Standard Edition (Java SE) APIs define the core Java \
|
|
|
|
platform for general-purpose computing. These APIs are in modules whose \
|
|
|
|
names start with {@code java}. \
|
2017-05-29 07:18:10 +00:00
|
|
|
#
|
|
|
|
JDK_GROUPS += JavaSE
|
|
|
|
|
|
|
|
JDK_GROUP_NAME := JDK
|
|
|
|
JDK_GROUP_MODULES := jdk.*
|
|
|
|
JDK_GROUP_DESCRIPTION := \
|
2017-06-19 16:20:42 +00:00
|
|
|
The Java Development Kit (JDK) APIs are specific to the JDK and will not \
|
|
|
|
necessarily be available in all implementations of the Java SE Platform. \
|
|
|
|
These APIs are in modules whose names start with {@code jdk}. \
|
2017-05-29 07:18:10 +00:00
|
|
|
#
|
|
|
|
JDK_GROUPS += JDK
|
|
|
|
|
|
|
|
# If we are importing JavaFX, we need a JavaFX group. In an ideal world, this
|
|
|
|
# would have been abstracted away to a more proper generic handling of imported
|
|
|
|
# modules.
|
|
|
|
ifneq ($(findstring javafx., $(IMPORTED_MODULES)), )
|
|
|
|
JavaFX_GROUP_NAME := JavaFX
|
|
|
|
JavaFX_GROUP_MODULES := javafx.*
|
|
|
|
JavaFX_GROUP_DESCRIPTION := \
|
2017-06-19 16:20:42 +00:00
|
|
|
The JavaFX APIs define a set of user-interface controls, graphics, \
|
2017-05-29 07:18:10 +00:00
|
|
|
media, and web packages for developing rich client applications. These \
|
2017-06-19 16:20:42 +00:00
|
|
|
APIs are in modules whose names start with {@code javafx}. \
|
2017-05-29 07:18:10 +00:00
|
|
|
#
|
|
|
|
JDK_GROUPS += JavaFX
|
|
|
|
endif
|
2017-04-19 08:44:40 +00:00
|
|
|
|
2017-05-29 07:18:10 +00:00
|
|
|
# All modules to have docs generated by docs-jdk-api target
|
2018-04-27 16:57:16 +00:00
|
|
|
JDK_MODULES := $(sort $(filter-out $(MODULES_FILTER), $(DOCS_MODULES)))
|
2017-04-19 08:44:40 +00:00
|
|
|
|
|
|
|
$(eval $(call SetupApiDocsGeneration, JDK_API, \
|
2017-05-29 07:18:10 +00:00
|
|
|
MODULES := $(JDK_MODULES), \
|
|
|
|
GROUPS := $(JDK_GROUPS), \
|
|
|
|
SHORT_NAME := $(JDK_SHORT_NAME), \
|
|
|
|
LONG_NAME := $(JDK_LONG_NAME), \
|
2017-05-12 17:09:50 +00:00
|
|
|
TARGET_DIR := $(DOCS_OUTPUTDIR)/api, \
|
2017-04-19 08:44:40 +00:00
|
|
|
))
|
2017-04-19 08:24:42 +00:00
|
|
|
|
2017-04-19 08:44:40 +00:00
|
|
|
# Targets generated are returned in JDK_API_JAVADOC_TARGETS and
|
|
|
|
# JDK_API_MODULEGRAPH_TARGETS.
|
2017-04-19 08:24:42 +00:00
|
|
|
|
2017-04-19 08:44:40 +00:00
|
|
|
################################################################################
|
|
|
|
# Setup generation of the Java SE API documentation (javadoc + modulegraph)
|
|
|
|
|
2018-02-13 19:41:54 +00:00
|
|
|
# The Java SE module scope is just java.se and its transitive indirect
|
2017-05-22 07:47:31 +00:00
|
|
|
# exports.
|
2018-02-13 19:41:54 +00:00
|
|
|
JAVASE_MODULES := java.se
|
2017-04-19 08:44:40 +00:00
|
|
|
|
|
|
|
$(eval $(call SetupApiDocsGeneration, JAVASE_API, \
|
2017-05-29 07:18:10 +00:00
|
|
|
MODULES := $(JAVASE_MODULES), \
|
|
|
|
SHORT_NAME := $(JAVASE_SHORT_NAME), \
|
|
|
|
LONG_NAME := $(JAVASE_LONG_NAME), \
|
2017-04-19 08:44:40 +00:00
|
|
|
TARGET_DIR := $(IMAGES_OUTPUTDIR)/javase-docs/api, \
|
|
|
|
))
|
2016-10-26 14:00:26 +00:00
|
|
|
|
2017-04-19 08:44:40 +00:00
|
|
|
# Targets generated are returned in JAVASE_API_JAVADOC_TARGETS and
|
|
|
|
# JAVASE_API_MODULEGRAPH_TARGETS.
|
2016-10-26 14:00:26 +00:00
|
|
|
|
2017-05-12 20:29:22 +00:00
|
|
|
################################################################################
|
2017-10-23 08:21:13 +00:00
|
|
|
# Setup generation of the reference Java SE API documentation (javadoc + modulegraph)
|
2017-05-12 20:29:22 +00:00
|
|
|
|
2017-10-23 08:21:13 +00:00
|
|
|
# The reference javadoc is just the same as javase, but using the BootJDK javadoc
|
2018-11-28 09:00:41 +00:00
|
|
|
# and a stable set of javadoc options. Typically it is used for generating
|
2018-07-03 18:16:25 +00:00
|
|
|
# diffs between the reference javadoc and a javadoc bundle of a specific build
|
|
|
|
# generated in the same way.
|
2017-06-13 17:44:11 +00:00
|
|
|
|
2017-10-23 08:21:13 +00:00
|
|
|
$(eval $(call SetupApiDocsGeneration, REFERENCE_API, \
|
|
|
|
MODULES := $(JAVASE_MODULES), \
|
|
|
|
SHORT_NAME := $(JAVASE_SHORT_NAME), \
|
|
|
|
LONG_NAME := $(JAVASE_LONG_NAME), \
|
|
|
|
TARGET_DIR := $(IMAGES_OUTPUTDIR)/reference-docs/api, \
|
|
|
|
JAVADOC_CMD := $(JAVADOC), \
|
|
|
|
OPTIONS := $(REFERENCE_OPTIONS), \
|
|
|
|
TAGS := $(REFERENCE_TAGS), \
|
|
|
|
))
|
|
|
|
|
|
|
|
# Targets generated are returned in REFERENCE_API_JAVADOC_TARGETS and
|
|
|
|
# REFERENCE_API_MODULEGRAPH_TARGETS.
|
|
|
|
|
|
|
|
################################################################################
|
2017-06-13 17:44:11 +00:00
|
|
|
|
2017-10-23 08:21:13 +00:00
|
|
|
JDK_INDEX_HTML := $(DOCS_OUTPUTDIR)/index.html
|
|
|
|
|
|
|
|
$(JDK_INDEX_HTML):
|
2017-06-13 17:44:11 +00:00
|
|
|
$(ECHO) '$(JDK_INDEX_CONTENT)' > $@
|
2017-05-12 20:29:22 +00:00
|
|
|
|
2017-06-16 09:41:25 +00:00
|
|
|
JDK_INDEX_TARGETS += $(JDK_INDEX_HTML)
|
2017-05-18 07:23:55 +00:00
|
|
|
|
|
|
|
# Copy the global resources
|
2017-09-12 17:03:56 +00:00
|
|
|
GLOBAL_SPECS_RESOURCES_DIR := $(TOPDIR)/make/data/docs-resources/
|
2017-05-18 07:23:55 +00:00
|
|
|
$(eval $(call SetupCopyFiles, COPY_GLOBAL_RESOURCES, \
|
|
|
|
SRC := $(GLOBAL_SPECS_RESOURCES_DIR), \
|
|
|
|
FILES := $(call CacheFind, $(GLOBAL_SPECS_RESOURCES_DIR)), \
|
|
|
|
DEST := $(DOCS_OUTPUTDIR), \
|
|
|
|
))
|
|
|
|
JDK_INDEX_TARGETS += $(COPY_GLOBAL_RESOURCES)
|
2017-05-12 20:29:22 +00:00
|
|
|
|
2017-06-19 19:25:37 +00:00
|
|
|
# Copy the legal notices distributed with the docs bundle
|
|
|
|
$(eval $(call SetupCopyFiles, COPY_DOCS_LEGAL_NOTICES, \
|
2017-09-12 17:03:56 +00:00
|
|
|
SRC := $(TOPDIR)/src/jdk.javadoc/share/legal, \
|
2018-07-09 21:21:33 +00:00
|
|
|
FILES := $(wildcard $(TOPDIR)/src/jdk.javadoc/share/legal/*), \
|
2017-06-19 19:25:37 +00:00
|
|
|
DEST := $(DOCS_OUTPUTDIR)/legal, \
|
|
|
|
))
|
|
|
|
JDK_INDEX_TARGETS += $(COPY_DOCS_LEGAL_NOTICES)
|
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
################################################################################
|
2017-04-23 19:10:32 +00:00
|
|
|
# Copy JDK specs files
|
|
|
|
|
|
|
|
# For all html documentation in $module/share/specs directories, copy it
|
|
|
|
# unmodified
|
|
|
|
|
|
|
|
ALL_MODULES := $(call FindAllModules)
|
2017-05-03 06:46:37 +00:00
|
|
|
COPY_SPEC_FILTER := %.html %.gif %.jpg %.mib %.css
|
2017-04-23 19:10:32 +00:00
|
|
|
|
|
|
|
$(foreach m, $(ALL_MODULES), \
|
|
|
|
$(eval SPECS_$m := $(call FindModuleSpecsDirs, $m)) \
|
2017-05-10 07:02:51 +00:00
|
|
|
$(foreach d, $(SPECS_$m), \
|
|
|
|
$(if $(filter $(COPY_SPEC_FILTER), $(call CacheFind, $d)), \
|
|
|
|
$(eval $(call SetupCopyFiles, COPY_$m, \
|
|
|
|
SRC := $d, \
|
|
|
|
FILES := $(filter $(COPY_SPEC_FILTER), $(call CacheFind, $d)), \
|
2017-05-12 17:09:50 +00:00
|
|
|
DEST := $(DOCS_OUTPUTDIR)/specs/, \
|
2017-05-10 07:02:51 +00:00
|
|
|
)) \
|
|
|
|
$(eval JDK_SPECS_TARGETS += $(COPY_$m)) \
|
|
|
|
) \
|
2017-04-23 19:10:32 +00:00
|
|
|
) \
|
|
|
|
)
|
|
|
|
|
2017-04-23 19:34:02 +00:00
|
|
|
ifeq ($(ENABLE_FULL_DOCS), true)
|
|
|
|
# For all markdown files in $module/share/specs directories, convert them to
|
|
|
|
# html.
|
|
|
|
|
2017-05-18 07:23:55 +00:00
|
|
|
GLOBAL_SPECS_DEFAULT_CSS_FILE := $(DOCS_OUTPUTDIR)/resources/jdk-default.css
|
2017-04-23 19:34:02 +00:00
|
|
|
|
|
|
|
$(foreach m, $(ALL_MODULES), \
|
|
|
|
$(eval SPECS_$m := $(call FindModuleSpecsDirs, $m)) \
|
2017-05-03 06:46:37 +00:00
|
|
|
$(foreach d, $(SPECS_$m), \
|
|
|
|
$(if $(filter %.md, $(call CacheFind, $d)), \
|
2018-11-28 09:00:41 +00:00
|
|
|
$(eval $m_$d_NAME := SPECS_TO_HTML_$m_$(strip $(call RelativePath, $d, $(TOPDIR)))) \
|
2017-09-12 17:03:56 +00:00
|
|
|
$(eval $(call SetupProcessMarkdown, $($m_$d_NAME), \
|
2017-05-03 06:46:37 +00:00
|
|
|
SRC := $d, \
|
|
|
|
FILES := $(filter %.md, $(call CacheFind, $d)), \
|
2017-05-12 17:09:50 +00:00
|
|
|
DEST := $(DOCS_OUTPUTDIR)/specs/, \
|
2017-05-03 06:46:37 +00:00
|
|
|
CSS := $(GLOBAL_SPECS_DEFAULT_CSS_FILE), \
|
|
|
|
)) \
|
2017-09-12 17:03:56 +00:00
|
|
|
$(eval JDK_SPECS_TARGETS += $($($m_$d_NAME))) \
|
2017-05-03 06:46:37 +00:00
|
|
|
) \
|
2017-04-23 19:34:02 +00:00
|
|
|
) \
|
|
|
|
)
|
2018-11-28 09:00:41 +00:00
|
|
|
|
|
|
|
# For all markdown files in $module/share/man directories, convert them to
|
|
|
|
# html.
|
2018-12-11 14:18:57 +00:00
|
|
|
|
|
|
|
# Create dynamic man pages from markdown using pandoc. We need
|
|
|
|
# PANDOC_HTML_MANPAGE_FILTER, a wrapper around
|
|
|
|
# PANDOC_HTML_MANPAGE_FILTER_JAVASCRIPT. This is created by buildtools-jdk.
|
|
|
|
|
|
|
|
# We should also depend on the source javascript filter
|
|
|
|
PANDOC_HTML_MANPAGE_FILTER_JAVASCRIPT := \
|
|
|
|
$(TOPDIR)/make/scripts/pandoc-html-manpage-filter.js
|
|
|
|
|
2018-11-28 09:00:41 +00:00
|
|
|
$(foreach m, $(ALL_MODULES), \
|
|
|
|
$(eval MAN_$m := $(call FindModuleManDirs, $m)) \
|
|
|
|
$(foreach d, $(MAN_$m), \
|
|
|
|
$(if $(filter %.md, $(call CacheFind, $d)), \
|
|
|
|
$(eval $m_$d_NAME := MAN_TO_HTML_$m_$(strip $(call RelativePath, $d, $(TOPDIR)))) \
|
|
|
|
$(eval $(call SetupProcessMarkdown, $($m_$d_NAME), \
|
|
|
|
SRC := $d, \
|
|
|
|
FILES := $(filter %.md, $(call CacheFind, $d)), \
|
|
|
|
DEST := $(DOCS_OUTPUTDIR)/specs/man, \
|
2018-12-11 14:18:57 +00:00
|
|
|
FILTER := $(PANDOC_HTML_MANPAGE_FILTER), \
|
2018-11-28 09:00:41 +00:00
|
|
|
CSS := $(GLOBAL_SPECS_DEFAULT_CSS_FILE), \
|
|
|
|
REPLACEMENTS := @@VERSION_SHORT@@ => $(VERSION_SHORT), \
|
2018-12-11 14:18:57 +00:00
|
|
|
EXTRA_DEPS := $(PANDOC_HTML_MANPAGE_FILTER) \
|
|
|
|
$(PANDOC_HTML_MANPAGE_FILTER_JAVASCRIPT), \
|
2018-11-28 09:00:41 +00:00
|
|
|
)) \
|
|
|
|
$(eval JDK_SPECS_TARGETS += $($($m_$d_NAME))) \
|
|
|
|
) \
|
|
|
|
) \
|
|
|
|
)
|
|
|
|
|
|
|
|
# The html generated from markdown also needs the css file
|
|
|
|
JDK_SPECS_TARGETS += $(COPY_GLOBAL_RESOURCES)
|
2017-04-23 19:34:02 +00:00
|
|
|
endif
|
|
|
|
|
2017-04-23 19:10:32 +00:00
|
|
|
# Special treatment for generated documentation
|
|
|
|
|
|
|
|
JDWP_PROTOCOL := $(SUPPORT_OUTPUTDIR)/gensrc/jdk.jdi/jdwp-protocol.html
|
|
|
|
$(eval $(call SetupCopyFiles, COPY_JDWP_PROTOCOL, \
|
|
|
|
FILES := $(JDWP_PROTOCOL), \
|
2017-05-12 17:09:50 +00:00
|
|
|
DEST := $(DOCS_OUTPUTDIR)/specs/jdwp, \
|
2016-10-26 14:00:26 +00:00
|
|
|
))
|
2017-04-23 19:10:32 +00:00
|
|
|
JDK_SPECS_TARGETS += $(COPY_JDWP_PROTOCOL)
|
2016-10-26 14:00:26 +00:00
|
|
|
|
2017-04-23 19:10:32 +00:00
|
|
|
# Get jvmti.html from the main jvm variant (all variants' jvmti.html are identical).
|
2018-04-30 16:49:08 +00:00
|
|
|
JVMTI_HTML ?= $(HOTSPOT_OUTPUTDIR)/variant-$(JVM_VARIANT_MAIN)/gensrc/jvmtifiles/jvmti.html
|
2016-10-26 14:00:26 +00:00
|
|
|
$(eval $(call SetupCopyFiles, COPY_JVMTI_HTML, \
|
|
|
|
FILES := $(JVMTI_HTML), \
|
2017-05-12 17:09:50 +00:00
|
|
|
DEST := $(DOCS_OUTPUTDIR)/specs, \
|
2016-10-26 14:00:26 +00:00
|
|
|
))
|
2017-04-23 19:10:32 +00:00
|
|
|
JDK_SPECS_TARGETS += $(COPY_JVMTI_HTML)
|
2016-10-26 14:00:26 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Optional target which bundles all generated javadocs into a zip archive.
|
2016-04-15 12:57:53 +00:00
|
|
|
|
2017-04-19 08:24:42 +00:00
|
|
|
JAVADOC_ZIP_NAME := jdk-$(VERSION_STRING)-docs.zip
|
2017-09-25 08:32:00 +00:00
|
|
|
JAVADOC_ZIP_FILE := $(OUTPUTDIR)/bundles/$(JAVADOC_ZIP_NAME)
|
2017-04-19 08:24:42 +00:00
|
|
|
|
|
|
|
$(eval $(call SetupZipArchive, BUILD_JAVADOC_ZIP, \
|
2017-05-12 17:09:50 +00:00
|
|
|
SRC := $(DOCS_OUTPUTDIR), \
|
2017-04-23 19:10:32 +00:00
|
|
|
ZIP := $(JAVADOC_ZIP_FILE), \
|
|
|
|
EXTRA_DEPS := $(JDK_API_JAVADOC_TARGETS) $(JDK_API_MODULEGRAPH_TARGETS) \
|
|
|
|
$(JDK_SPECS_TARGETS), \
|
2017-04-19 08:24:42 +00:00
|
|
|
))
|
|
|
|
|
|
|
|
ZIP_TARGETS += $(BUILD_JAVADOC_ZIP)
|
2016-07-08 06:55:54 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2017-05-12 17:09:50 +00:00
|
|
|
docs-jdk-api-javadoc: $(JDK_API_JAVADOC_TARGETS) $(JDK_API_CUSTOM_TARGETS)
|
2017-04-19 08:44:40 +00:00
|
|
|
|
|
|
|
docs-jdk-api-modulegraph: $(JDK_API_MODULEGRAPH_TARGETS)
|
2017-04-19 08:24:42 +00:00
|
|
|
|
2017-05-12 17:09:50 +00:00
|
|
|
docs-javase-api-javadoc: $(JAVASE_API_JAVADOC_TARGETS) $(JAVASE_API_CUSTOM_TARGETS)
|
2017-03-29 16:41:55 +00:00
|
|
|
|
2017-04-19 08:44:40 +00:00
|
|
|
docs-javase-api-modulegraph: $(JAVASE_API_MODULEGRAPH_TARGETS)
|
2016-10-26 14:00:26 +00:00
|
|
|
|
2017-10-23 08:21:13 +00:00
|
|
|
docs-reference-api-javadoc: $(REFERENCE_API_JAVADOC_TARGETS) $(REFERENCE_API_CUSTOM_TARGETS)
|
|
|
|
|
|
|
|
docs-reference-api-modulegraph: $(REFERENCE_API_MODULEGRAPH_TARGETS)
|
|
|
|
|
2017-04-23 19:10:32 +00:00
|
|
|
docs-jdk-specs: $(JDK_SPECS_TARGETS)
|
2016-10-26 14:00:26 +00:00
|
|
|
|
2017-05-18 07:23:55 +00:00
|
|
|
docs-jdk-index: $(JDK_INDEX_TARGETS)
|
2017-05-12 20:29:22 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
docs-zip: $(ZIP_TARGETS)
|
|
|
|
|
2017-04-19 08:44:40 +00:00
|
|
|
all: docs-jdk-api-javadoc docs-jdk-api-modulegraph docs-javase-api-javadoc \
|
2017-10-23 08:21:13 +00:00
|
|
|
docs-javase-api-modulegraph docs-reference-api-javadoc \
|
|
|
|
docs-reference-api-modulegraph docs-jdk-specs docs-jdk-index docs-zip
|
2016-10-26 14:00:26 +00:00
|
|
|
|
2017-04-19 08:44:40 +00:00
|
|
|
.PHONY: default all docs-jdk-api-javadoc docs-jdk-api-modulegraph \
|
2017-10-23 08:21:13 +00:00
|
|
|
docs-javase-api-javadoc docs-javase-api-modulegraph \
|
|
|
|
docs-reference-api-javadoc docs-reference-api-modulegraph docs-jdk-specs \
|
2017-05-12 20:29:22 +00:00
|
|
|
docs-jdk-index docs-zip
|