2016-03-17 19:03:53 +00:00
|
|
|
# Copyright (c) 1997, 2016, 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.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(SPEC)
|
|
|
|
include MakeBase.gmk
|
|
|
|
|
2014-04-23 12:23:50 +00:00
|
|
|
#################################################################
|
|
|
|
#
|
|
|
|
# CORE_PKGS environment variable has been moved to the following file
|
|
|
|
#
|
|
|
|
include CORE_PKGS.gmk
|
|
|
|
#
|
|
|
|
# Load environment variables for API package names that are not part of
|
|
|
|
# the Java SE platform
|
|
|
|
#
|
|
|
|
include NON_CORE_PKGS.gmk
|
|
|
|
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
.SUFFIXES: # Delete the default suffixes
|
|
|
|
.SUFFIXES: .java
|
|
|
|
|
|
|
|
#
|
2014-08-17 14:51:37 +00:00
|
|
|
# Definitions for directories
|
2012-09-18 18:29:16 +00:00
|
|
|
#
|
|
|
|
|
2016-05-04 13:29:01 +00:00
|
|
|
DOCSDIR := $(DOCS_IMAGE_DIR)
|
2014-12-03 14:20:21 +00:00
|
|
|
DOCSTMPDIR = $(SUPPORT_OUTPUTDIR)/docs
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
HOTSPOT_DOCS_IMPORT_PATH=$(HOTSPOT_OUTPUTDIR)/docs
|
|
|
|
|
2013-01-31 13:00:09 +00:00
|
|
|
JAVADOC_CMD = $(JAVA) \
|
2013-10-10 12:58:19 +00:00
|
|
|
-Djava.awt.headless=true \
|
2014-12-18 00:36:21 +00:00
|
|
|
$(NEW_JAVADOC)
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2015-03-05 09:29:36 +00:00
|
|
|
JAVADOC_CMD_SMALL = $(JAVA_SMALL) \
|
|
|
|
-Djava.awt.headless=true \
|
|
|
|
$(NEW_JAVADOC)
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
# Copyright year for beginning of Java and some of the apis
|
2013-10-10 12:58:19 +00:00
|
|
|
# (Needed when creating the javadocs)
|
|
|
|
FIRST_COPYRIGHT_YEAR = 1993
|
|
|
|
DOMAPI_FIRST_COPYRIGHT_YEAR = 2005
|
|
|
|
MIRROR_FIRST_COPYRIGHT_YEAR = 2004
|
|
|
|
DOCLETAPI_FIRST_COPYRIGHT_YEAR = 1993
|
|
|
|
TAGLETAPI_FIRST_COPYRIGHT_YEAR = 1993
|
|
|
|
JDI_FIRST_COPYRIGHT_YEAR = 1999
|
|
|
|
JAAS_FIRST_COPYRIGHT_YEAR = 1998
|
|
|
|
JGSS_FIRST_COPYRIGHT_YEAR = 2000
|
|
|
|
SMARTCARDIO_FIRST_COPYRIGHT_YEAR = 2005
|
|
|
|
HTTPSERVER_FIRST_COPYRIGHT_YEAR = 2005
|
|
|
|
MGMT_FIRST_COPYRIGHT_YEAR = 2003
|
|
|
|
ATTACH_FIRST_COPYRIGHT_YEAR = 2005
|
|
|
|
JCONSOLE_FIRST_COPYRIGHT_YEAR = 2006
|
|
|
|
SCTPAPI_FIRST_COPYRIGHT_YEAR = 2009
|
|
|
|
TRACING_FIRST_COPYRIGHT_YEAR = 2008
|
2016-04-08 09:51:53 +00:00
|
|
|
JSHELLAPI_FIRST_COPYRIGHT_YEAR = 2015
|
2013-10-10 12:58:19 +00:00
|
|
|
TREEAPI_FIRST_COPYRIGHT_YEAR = 2005
|
2014-11-28 13:01:05 +00:00
|
|
|
NASHORNAPI_FIRST_COPYRIGHT_YEAR = 2014
|
2016-01-29 18:55:53 +00:00
|
|
|
DYNALINKAPI_FIRST_COPYRIGHT_YEAR = 2015
|
2013-10-10 12:58:19 +00:00
|
|
|
JNLP_FIRST_COPYRIGHT_YEAR = 1998
|
|
|
|
PLUGIN2_FIRST_COPYRIGHT_YEAR = 2007
|
2014-04-12 19:05:42 +00:00
|
|
|
JDKNET_FIRST_COPYRIGHT_YEAR = 2014
|
2015-03-27 20:48:08 +00:00
|
|
|
JACCESSAPI_FIRST_COPYRIGHT_YEAR = 2002
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# Oracle name
|
|
|
|
FULL_COMPANY_NAME = Oracle and/or its affiliates
|
|
|
|
|
|
|
|
# Copyright address
|
|
|
|
COMPANY_ADDRESS = 500 Oracle Parkway<br>Redwood Shores, CA 94065 USA.
|
|
|
|
|
|
|
|
# The trademark symbol
|
|
|
|
TRADEMARK = ™
|
|
|
|
|
|
|
|
# Common copyright lines used
|
2013-10-10 12:58:19 +00:00
|
|
|
# The word "Copyright" might optionally be a link to the file cpyr.html.
|
|
|
|
# The first year of copyright may vary or not be available.
|
|
|
|
# The address to the company might be optional.
|
2012-09-18 18:29:16 +00:00
|
|
|
COMMA:= ,
|
|
|
|
EMPTY:=
|
|
|
|
SPACE:=$(EMPTY) $(EMPTY)
|
|
|
|
COPYRIGHT_SYMBOL = &\#x00a9;
|
|
|
|
# Macro to construct the copyright line
|
2013-10-10 12:58:19 +00:00
|
|
|
# (The GNU make 3.78.1 "if" conditional is broken, fixed in GNU make 3.81)
|
2012-09-18 18:29:16 +00:00
|
|
|
define CopyrightLine # optionalurl optionalfirstyear optionaladdress
|
|
|
|
$(if $(strip $1),<a href="$(strip $1)">Copyright</a>,Copyright) \
|
|
|
|
$(COPYRIGHT_SYMBOL) $(if $2,$2${COMMA},) $(COPYRIGHT_YEAR),\
|
|
|
|
$(FULL_COMPANY_NAME). $3 All rights reserved.
|
|
|
|
endef
|
|
|
|
|
|
|
|
# Url to root of documents
|
|
|
|
DOCSDIR_URL = {@docroot}/$(GET2DOCSDIR)
|
|
|
|
|
|
|
|
# Url to copyright html file
|
2014-05-06 09:43:14 +00:00
|
|
|
COPYRIGHT_URL = $(DOCSDIR_URL)/legal/cpyr.html
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# Url to bug filing site
|
2014-06-30 21:27:37 +00:00
|
|
|
BUG_SUBMIT_URL = http://bugreport.java.com/bugreport/
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# Common line for how to submit a bug or rfe
|
|
|
|
BUG_SUBMIT_LINE = <a href="$(BUG_SUBMIT_URL)">Submit a bug or feature</a>
|
|
|
|
|
|
|
|
# Url to devdocs page
|
2015-06-10 22:21:56 +00:00
|
|
|
DOCS_BASE_URL = http://docs.oracle.com/javase/$(VERSION_SPECIFICATION)/docs
|
|
|
|
DEV_DOCS_URL = $(DOCS_BASE_URL)/index.html
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# Common Java trademark line
|
|
|
|
JAVA_TRADEMARK_LINE = Java is a trademark or registered trademark of \
|
|
|
|
$(FULL_COMPANY_NAME) in the US and other countries.
|
|
|
|
|
|
|
|
#################################################################
|
|
|
|
# Macros:
|
|
|
|
|
|
|
|
|
|
|
|
# List of all possible directories for javadoc to look for sources
|
2013-10-10 12:58:19 +00:00
|
|
|
# NOTE: Quotes are required around sourcepath argument only on Windows.
|
|
|
|
# Otherwise, you get "No packages or classes specified." due
|
|
|
|
# to $(PATH_SEP) being interpreted as an end of
|
|
|
|
# command (newline or shell ; character)
|
2014-08-17 14:51:37 +00:00
|
|
|
ALL_SOURCE_DIRS := $(wildcard \
|
2016-03-17 19:03:53 +00:00
|
|
|
$(SUPPORT_OUTPUTDIR)/gensrc/j* \
|
|
|
|
$(if $(IMPORT_MODULES_SRC), $(IMPORT_MODULES_SRC)/*) \
|
2014-11-21 15:05:46 +00:00
|
|
|
$(JDK_TOPDIR)/src/*/$(OPENJDK_TARGET_OS)/classes \
|
|
|
|
$(JDK_TOPDIR)/src/*/$(OPENJDK_TARGET_OS_TYPE)/classes \
|
2016-03-17 19:03:53 +00:00
|
|
|
$(JDK_TOPDIR)/src/*/share/classes \
|
|
|
|
$(HOTSPOT_TOPDIR)/src/*/share/classes \
|
2014-08-17 14:51:37 +00:00
|
|
|
$(LANGTOOLS_TOPDIR)/src/*/share/classes \
|
2014-11-28 13:01:05 +00:00
|
|
|
$(NASHORN_TOPDIR)/src/*/share/classes \
|
2014-08-17 14:51:37 +00:00
|
|
|
$(CORBA_TOPDIR)/src/*/share/classes \
|
|
|
|
$(JAXP_TOPDIR)/src/*/share/classes \
|
|
|
|
$(JAXWS_TOPDIR)/src/*/share/classes \
|
2014-12-03 14:20:21 +00:00
|
|
|
$(SUPPORT_OUTPUTDIR)/rmic/j* \
|
2014-08-17 14:51:37 +00:00
|
|
|
$(JDK_TOPDIR)/src/*/share/doc/stub \
|
|
|
|
) \
|
|
|
|
#
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2016-03-17 19:03:53 +00:00
|
|
|
ALL_MODULE_SOURCE_DIRS := \
|
|
|
|
$(SUPPORT_OUTPUTDIR)/gensrc/* \
|
|
|
|
$(if $(IMPORT_MODULES_SRC), $(IMPORT_MODULES_SRC)/*) \
|
|
|
|
$(JDK_TOPDIR)/src/*/$(OPENJDK_TARGET_OS)/classes \
|
|
|
|
$(JDK_TOPDIR)/src/*/$(OPENJDK_TARGET_OS_TYPE)/classes \
|
|
|
|
$(JDK_TOPDIR)/src/*/share/classes \
|
|
|
|
$(HOTSPOT_TOPDIR)/src/*/share/classes \
|
|
|
|
$(LANGTOOLS_TOPDIR)/src/*/share/classes \
|
|
|
|
$(NASHORN_TOPDIR)/src/*/share/classes \
|
|
|
|
$(CORBA_TOPDIR)/src/*/share/classes \
|
|
|
|
$(JAXP_TOPDIR)/src/*/share/classes \
|
|
|
|
$(JAXWS_TOPDIR)/src/*/share/classes \
|
|
|
|
$(SUPPORT_OUTPUTDIR)/rmic/* \
|
|
|
|
$(JDK_TOPDIR)/src/*/share/doc/stub \
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
# List with classpath separator between them
|
|
|
|
EMPTY:=
|
|
|
|
SPACE:= $(EMPTY) $(EMPTY)
|
|
|
|
RELEASEDOCS_SOURCEPATH = \
|
2012-12-27 19:55:53 +00:00
|
|
|
$(subst $(SPACE),$(PATH_SEP),$(strip $(ALL_SOURCE_DIRS)))
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2016-03-17 19:03:53 +00:00
|
|
|
RELEASEDOCS_MODULESOURCEPATH = \
|
|
|
|
$(subst $(SPACE),$(PATH_SEP),$(strip $(ALL_MODULE_SOURCE_DIRS)))
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
define prep-target
|
2013-10-10 12:58:19 +00:00
|
|
|
$(MKDIR) -p $(@D)
|
|
|
|
$(RM) $@
|
2012-09-18 18:29:16 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
# Prep for javadoc creation, assumes $@ is an index.html file
|
|
|
|
define prep-javadoc
|
2013-10-10 12:58:19 +00:00
|
|
|
@if [ -f "$@" -a "$?" != "" ] ; then \
|
|
|
|
$(ECHO) "# Dependencies have changed: $?"; \
|
|
|
|
fi
|
|
|
|
$(RM) -r $(@D)
|
|
|
|
$(MKDIR) -p $(@D)
|
2012-09-18 18:29:16 +00:00
|
|
|
endef
|
|
|
|
|
2014-04-23 12:23:50 +00:00
|
|
|
$(eval $(call FillCacheFind, $(ALL_SOURCE_DIRS)))
|
|
|
|
define PackageDependencies
|
2014-08-17 14:51:37 +00:00
|
|
|
$(call CacheFind, $(wildcard $(foreach p, $(subst .,/,$1), $(addsuffix /$p, $(ALL_SOURCE_DIRS)))))
|
2012-09-18 18:29:16 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
# Given a list of packages, add packages that exist to $@, print summary
|
|
|
|
define PackageFilter # packages
|
2013-10-10 12:58:19 +00:00
|
|
|
@if [ "$1" != "" ] ; then \
|
|
|
|
for p in $1 ; do \
|
|
|
|
pd=`$(ECHO) $${p} | $(SED) -e 's@[.]@/@g'`; \
|
|
|
|
found="false"; \
|
|
|
|
for cp in $(ALL_SOURCE_DIRS) ; do \
|
|
|
|
if [ -d $${cp}/$${pd} ] ; then \
|
|
|
|
$(ECHO) "$${p}" >> $@; \
|
|
|
|
found="true"; \
|
|
|
|
break; \
|
|
|
|
fi; \
|
|
|
|
done; \
|
|
|
|
if [ "$${found}" = "false" ] ; then \
|
|
|
|
$(ECHO) "WARNING: Package not found: $${p}"; \
|
|
|
|
fi; \
|
|
|
|
done; \
|
|
|
|
fi
|
2012-09-18 18:29:16 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
# Print out a summary of the javadoc command about to be run
|
|
|
|
define JavadocSummary # optionsfile packagesfile
|
2014-04-23 12:23:50 +00:00
|
|
|
@$(ECHO) "# Running javadoc for $(patsubst $(OUTPUT_ROOT)/%,%,$@)" $(LOG_WARN)
|
|
|
|
@($(ECHO) "# Options (`$(BASENAME) $1`):"; $(SED) -e 's@^@# @' $1) $(LOG_DEBUG)
|
|
|
|
@($(ECHO) "# Packages (`$(BASENAME) $2`):";$(SED) -e 's@^@# @' $2) $(LOG_DEBUG)
|
2012-09-18 18:29:16 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
#
|
|
|
|
# Different api directories created from root directory
|
|
|
|
#
|
2013-10-10 12:58:19 +00:00
|
|
|
COREAPI_DOCSDIR = $(DOCSDIR)/api
|
|
|
|
JDK_API_DOCSDIR = $(DOCSDIR)/jdk/api
|
|
|
|
JRE_API_DOCSDIR = $(DOCSDIR)/jre/api
|
|
|
|
PLATFORM_DOCSDIR = $(DOCSDIR)/platform
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2016-04-15 12:57:53 +00:00
|
|
|
JAVADOC_ARCHIVE_NAME := jdk-$(VERSION_STRING)-docs.zip
|
|
|
|
JAVADOC_ARCHIVE_ASSEMBLY_DIR := $(DOCSTMPDIR)/zip-docs
|
|
|
|
JAVADOC_ARCHIVE_DIR := $(OUTPUT_ROOT)/bundles
|
|
|
|
JAVADOC_ARCHIVE := $(JAVADOC_ARCHIVE_DIR)/$(JAVADOC_ARCHIVE_NAME)
|
|
|
|
|
2016-02-17 16:03:08 +00:00
|
|
|
# The core api index file is the target for the core api javadocs rule
|
|
|
|
# and needs to be defined early so that all other javadoc rules may
|
|
|
|
# depend on it.
|
|
|
|
COREAPI_INDEX_FILE = $(COREAPI_DOCSDIR)/index.html
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
# The non-core api javadocs need to be able to access the root of the core
|
2013-10-10 12:58:19 +00:00
|
|
|
# api directory, so for jdk/api or jre/api to get to the core api/
|
|
|
|
# directory we would use this:
|
|
|
|
JDKJRE2COREAPI = ../../api
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# Common bottom argument
|
|
|
|
define CommonBottom # year
|
|
|
|
<font size="-1"><br> $(call CopyrightLine,,$1,)</font>
|
|
|
|
endef
|
|
|
|
|
|
|
|
# Common trademark bottom argument (Not sure why this is used sometimes)
|
|
|
|
define CommonTrademarkBottom # year
|
|
|
|
<font size="-1">\
|
|
|
|
$(BUG_SUBMIT_LINE)<br>$(JAVA_TRADEMARK_LINE)<br>\
|
|
|
|
$(call CopyrightLine,,$1,$(COMPANY_ADDRESS))\
|
|
|
|
</font>
|
|
|
|
endef
|
|
|
|
|
|
|
|
# Common echo of option
|
|
|
|
define OptionOnly # opt
|
2014-12-16 10:28:34 +00:00
|
|
|
if [ "$(strip $1)" != "" ] ; then \
|
|
|
|
$(PRINTF) "%s\n" "$(strip $1)"; \
|
2014-07-22 04:34:29 +00:00
|
|
|
fi
|
2012-09-18 18:29:16 +00:00
|
|
|
endef
|
2014-07-22 04:34:29 +00:00
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
define OptionPair # opt arg
|
2014-12-16 10:28:34 +00:00
|
|
|
$(PRINTF) "%s '%s'\n" "$(strip $1)" '$(strip $2)'
|
2012-09-18 18:29:16 +00:00
|
|
|
endef
|
2014-07-22 04:34:29 +00:00
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
define OptionTrip # opt arg arg
|
2014-12-16 10:28:34 +00:00
|
|
|
$(PRINTF) "%s '%s' '%s'\n" "$(strip $1)" '$(strip $2)' '$(strip $3)'
|
2012-09-18 18:29:16 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
# Core api bottom argument (with special sauce)
|
|
|
|
COREAPI_BOTTOM = <font size="-1"> $(BUG_SUBMIT_LINE)\
|
|
|
|
<br>For further API reference and developer documentation, \
|
|
|
|
see <a href="$(DEV_DOCS_URL)" target="_blank">Java SE Documentation</a>. \
|
|
|
|
That documentation contains more detailed, developer-targeted descriptions, \
|
|
|
|
with conceptual overviews, definitions of terms, workarounds, \
|
|
|
|
and working code examples.<br>\
|
|
|
|
$(call CopyrightLine,$(COPYRIGHT_URL),$(FIRST_COPYRIGHT_YEAR),)\
|
|
|
|
</font>
|
|
|
|
|
2014-07-22 04:34:29 +00:00
|
|
|
# Common javadoc options used by all bundles
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
ifdef OPENJDK
|
2013-10-10 12:58:19 +00:00
|
|
|
ADDITIONAL_JAVADOCFLAGS = \
|
|
|
|
-Xdocrootparent $(DOCS_BASE_URL)
|
2012-09-18 18:29:16 +00:00
|
|
|
else
|
|
|
|
ADDITIONAL_JAVADOCFLAGS =
|
|
|
|
endif
|
|
|
|
|
2014-07-22 04:34:29 +00:00
|
|
|
define COMMON_JAVADOCFLAGS
|
|
|
|
$(call OptionOnly,-XDignore.symbol.file=true) ; \
|
|
|
|
$(call OptionOnly,-quiet) ; \
|
|
|
|
$(call OptionOnly,-use) ; \
|
|
|
|
$(call OptionOnly,-keywords) ; \
|
|
|
|
$(call OptionOnly,$(ADDITIONAL_JAVADOCFLAGS))
|
|
|
|
endef
|
|
|
|
|
|
|
|
# Common javadoc tags used by all bundles
|
|
|
|
|
|
|
|
# Java language specification cite
|
|
|
|
TAG_JLS = jls:a:See <cite> \
|
|
|
|
The Java™ Language Specification</cite>:
|
|
|
|
|
|
|
|
# Java virtual machine specification cite
|
|
|
|
TAG_JVMS = jvms:a:See <cite> \
|
|
|
|
The Java™ Virtual Machine Specification</cite>:
|
|
|
|
|
|
|
|
# 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.
|
|
|
|
define COMMON_JAVADOCTAGS
|
|
|
|
$(call OptionPair,-tag,beaninfo:X) ; \
|
|
|
|
$(call OptionPair,-tag,revised:X) ; \
|
|
|
|
$(call OptionPair,-tag,since.unbundled:X) ; \
|
|
|
|
$(call OptionPair,-tag,spec:X) ; \
|
|
|
|
$(call OptionPair,-tag,specdefault:X) ; \
|
|
|
|
$(call OptionPair,-tag,Note:X) ; \
|
|
|
|
$(call OptionPair,-tag,ToDo:X) ; \
|
|
|
|
$(call OptionPair,-tag,apiNote:a:API Note:) ; \
|
|
|
|
$(call OptionPair,-tag,implSpec:a:Implementation Requirements:) ; \
|
|
|
|
$(call OptionPair,-tag,implNote:a:Implementation Note:) ; \
|
|
|
|
$(call OptionPair,-tag,param) ; \
|
|
|
|
$(call OptionPair,-tag,return) ; \
|
|
|
|
$(call OptionPair,-tag,throws) ; \
|
|
|
|
$(call OptionPair,-tag,since) ; \
|
|
|
|
$(call OptionPair,-tag,version) ; \
|
|
|
|
$(call OptionPair,-tag,serialData) ; \
|
|
|
|
$(call OptionPair,-tag,factory) ; \
|
|
|
|
$(call OptionPair,-tag,see) ; \
|
|
|
|
$(call OptionPair,-tag,$(TAG_JVMS)) ; \
|
|
|
|
$(call OptionPair,-tag,$(TAG_JLS))
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-06-26 08:09:55 +00:00
|
|
|
# Assume we need a draft format when the version string is not a GA version.
|
|
|
|
ifeq ($(VERSION_IS_GA), false)
|
2015-06-10 22:21:56 +00:00
|
|
|
DRAFT_HEADER := <br><strong>DRAFT $(VERSION_STRING)</strong>
|
|
|
|
DRAFT_BOTTOM := <br><strong>DRAFT $(VERSION_STRING)</strong>
|
|
|
|
DRAFT_WINTITLE := $(VERSION_BUILD)
|
2013-10-10 12:58:19 +00:00
|
|
|
# Early access top text (not used in FCS releases)
|
2015-06-10 22:21:56 +00:00
|
|
|
COREAPI_TOP_EARLYACCESS := \
|
2012-09-18 18:29:16 +00:00
|
|
|
<div style="background-color: \#EEEEEE"> \
|
|
|
|
<div style="padding: 6px; margin-top: 2px; margin-bottom: 6px; \
|
|
|
|
margin-left: 6px; margin-right: 6px; text-align: justify; \
|
|
|
|
font-size: 80%; font-family: Helvetica, Arial, sans-serif; \
|
|
|
|
font-weight: normal;"> \
|
|
|
|
Please note that the specifications and other information \
|
|
|
|
contained herein are not final and are subject to change. \
|
|
|
|
The information is being made available to you solely for purpose of \
|
|
|
|
evaluation. \
|
|
|
|
</div> </div>
|
2015-06-10 22:21:56 +00:00
|
|
|
else
|
|
|
|
DRAFT_HEADER :=
|
|
|
|
DRAFT_BOTTOM :=
|
|
|
|
DRAFT_WINTITLE :=
|
|
|
|
COREAPI_TOP_EARLYACCESS :=
|
2012-09-18 18:29:16 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
#################################################################
|
|
|
|
|
2014-10-31 15:23:03 +00:00
|
|
|
#
|
|
|
|
# Load custom Javadoc rules
|
|
|
|
#
|
|
|
|
|
|
|
|
$(eval $(call IncludeCustomExtension, , Javadoc.gmk))
|
|
|
|
|
|
|
|
#################################################################
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
#
|
|
|
|
# Default target is same as docs target, create core api and all others it can
|
|
|
|
#
|
|
|
|
|
|
|
|
all: docs
|
|
|
|
docs: coredocs otherdocs
|
|
|
|
|
2016-04-15 12:57:53 +00:00
|
|
|
#
|
|
|
|
# Optional target which bundles all generated javadocs into a zip archive.
|
|
|
|
# The dependency on docs is handled in Main.gmk.
|
|
|
|
#
|
|
|
|
|
|
|
|
zip-docs: $(JAVADOC_ARCHIVE)
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# coredocs
|
|
|
|
#
|
2013-10-10 12:58:19 +00:00
|
|
|
COREAPI_DOCTITLE = Java$(TRADEMARK) Platform, Standard Edition \
|
2015-06-10 22:21:56 +00:00
|
|
|
$(VERSION_SPECIFICATION)<br>API Specification
|
|
|
|
COREAPI_WINDOWTITLE = Java Platform SE $(VERSION_SPECIFICATION)
|
2012-09-18 18:29:16 +00:00
|
|
|
COREAPI_HEADER = \
|
2015-06-10 22:21:56 +00:00
|
|
|
<strong>Java$(TRADEMARK) Platform<br>Standard Ed. $(VERSION_SPECIFICATION)</strong>
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# Overview file for core apis
|
2014-08-17 14:51:37 +00:00
|
|
|
COREAPI_OVERVIEW = $(JDK_TOPDIR)/src/java.base/share/classes/overview-core.html
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2016-02-17 16:03:08 +00:00
|
|
|
# The options and packages files
|
2013-10-10 12:58:19 +00:00
|
|
|
COREAPI_OPTIONS_FILE = $(DOCSTMPDIR)/coredocs.options
|
2012-09-18 18:29:16 +00:00
|
|
|
COREAPI_PACKAGES_FILE = $(DOCSTMPDIR)/coredocs.packages
|
|
|
|
|
2016-03-17 19:03:53 +00:00
|
|
|
# The modules required to be documented
|
|
|
|
COREAPI_MODULES = java.se.ee
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
coredocs: $(COREAPI_INDEX_FILE)
|
|
|
|
|
|
|
|
# Set relative location to core api document root
|
|
|
|
$(COREAPI_INDEX_FILE): GET2DOCSDIR=..
|
|
|
|
|
|
|
|
# Run javadoc if the index file is out of date or missing
|
|
|
|
$(COREAPI_INDEX_FILE): $(COREAPI_OPTIONS_FILE) $(COREAPI_PACKAGES_FILE)
|
|
|
|
$(prep-javadoc)
|
|
|
|
$(call JavadocSummary,$(COREAPI_OPTIONS_FILE),$(COREAPI_PACKAGES_FILE))
|
|
|
|
$(JAVADOC_CMD) -d $(@D) \
|
2013-10-10 12:58:19 +00:00
|
|
|
@$(COREAPI_OPTIONS_FILE) @$(COREAPI_PACKAGES_FILE)
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# Create file with javadoc options in it
|
|
|
|
$(COREAPI_OPTIONS_FILE): $(COREAPI_OVERVIEW)
|
|
|
|
$(prep-target)
|
2014-07-22 04:34:29 +00:00
|
|
|
@($(call COMMON_JAVADOCFLAGS) ; \
|
|
|
|
$(call COMMON_JAVADOCTAGS) ; \
|
2015-07-13 16:29:01 +00:00
|
|
|
$(call OptionOnly,-Xdoclint:reference) ; \
|
|
|
|
$(call OptionOnly,-Xdoclint/package:-org.omg.*) ; \
|
2016-03-17 19:03:53 +00:00
|
|
|
$(call OptionPair,-system,none) ; \
|
|
|
|
$(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
|
|
|
|
$(call OptionPair,-addmods,$(COREAPI_MODULES)) ; \
|
2013-10-10 12:58:19 +00:00
|
|
|
$(call OptionPair,-encoding,ISO-8859-1) ; \
|
|
|
|
$(call OptionOnly,-splitIndex) ; \
|
|
|
|
$(call OptionPair,-overview,$(COREAPI_OVERVIEW)) ; \
|
|
|
|
$(call OptionPair,-doctitle,$(COREAPI_DOCTITLE)) ; \
|
|
|
|
$(call OptionPair,-windowtitle,$(COREAPI_WINDOWTITLE) $(DRAFT_WINTITLE)) ; \
|
|
|
|
$(call OptionPair,-header,$(COREAPI_HEADER)$(DRAFT_HEADER)) ; \
|
|
|
|
$(call OptionPair,-bottom,$(COREAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
|
|
|
|
) >> $@
|
|
|
|
ifdef COREAPI_TOP_EARLYACCESS
|
|
|
|
@$(call OptionPair,-top,$(COREAPI_TOP_EARLYACCESS)) >> $@
|
|
|
|
endif
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# Create a file with the package names in it
|
2014-04-23 12:23:50 +00:00
|
|
|
$(COREAPI_PACKAGES_FILE): $(call PackageDependencies,$(CORE_PKGS))
|
2012-09-18 18:29:16 +00:00
|
|
|
$(prep-target)
|
|
|
|
$(call PackageFilter,$(CORE_PKGS))
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# docletapidocs
|
|
|
|
#
|
|
|
|
|
|
|
|
ALL_OTHER_TARGETS += docletapidocs
|
|
|
|
|
2013-10-10 12:58:19 +00:00
|
|
|
DOCLETAPI_DOCDIR := $(JDK_API_DOCSDIR)/javadoc/doclet
|
|
|
|
DOCLETAPI2COREAPI := ../../$(JDKJRE2COREAPI)
|
|
|
|
DOCLETAPI_DOCTITLE := Doclet API
|
|
|
|
DOCLETAPI_WINDOWTITLE := Doclet API
|
|
|
|
DOCLETAPI_HEADER := <strong>Doclet API</strong>
|
|
|
|
DOCLETAPI_BOTTOM := $(call CommonTrademarkBottom,$(DOCLETAPI_FIRST_COPYRIGHT_YEAR))
|
|
|
|
DOCLETAPI_GROUPNAME := Packages
|
2016-06-23 00:20:53 +00:00
|
|
|
DOCLETAPI_REGEXP := jdk.javadoc.doclet*
|
2012-09-18 18:29:16 +00:00
|
|
|
# DOCLETAPI_PKGS is located in NON_CORE_PKGS.gmk
|
|
|
|
|
|
|
|
# The index.html, options, and packages files
|
2013-10-10 12:58:19 +00:00
|
|
|
DOCLETAPI_INDEX_FILE = $(DOCLETAPI_DOCDIR)/index.html
|
|
|
|
DOCLETAPI_OPTIONS_FILE = $(DOCSTMPDIR)/docletapi.options
|
2012-09-18 18:29:16 +00:00
|
|
|
DOCLETAPI_PACKAGES_FILE = $(DOCSTMPDIR)/docletapi.packages
|
|
|
|
|
2016-03-17 19:03:53 +00:00
|
|
|
# The modules required to be documented
|
|
|
|
DOCLETAPI_MODULES = jdk.javadoc
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
docletapidocs: $(DOCLETAPI_INDEX_FILE)
|
|
|
|
|
|
|
|
# Set relative location to core api document root
|
|
|
|
$(DOCLETAPI_INDEX_FILE): GET2DOCSDIR=$(DOCLETAPI2COREAPI)/..
|
|
|
|
|
|
|
|
# Run javadoc if the index file is out of date or missing
|
2014-04-23 12:23:50 +00:00
|
|
|
$(DOCLETAPI_INDEX_FILE): $(DOCLETAPI_OPTIONS_FILE) $(DOCLETAPI_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
|
2012-09-18 18:29:16 +00:00
|
|
|
$(prep-javadoc)
|
|
|
|
$(call JavadocSummary,$(DOCLETAPI_OPTIONS_FILE),$(DOCLETAPI_PACKAGES_FILE))
|
2015-03-05 09:29:36 +00:00
|
|
|
$(JAVADOC_CMD_SMALL) -d $(@D) \
|
2013-10-10 12:58:19 +00:00
|
|
|
@$(DOCLETAPI_OPTIONS_FILE) @$(DOCLETAPI_PACKAGES_FILE)
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# Create file with javadoc options in it
|
|
|
|
$(DOCLETAPI_OPTIONS_FILE):
|
|
|
|
$(prep-target)
|
2014-07-22 04:34:29 +00:00
|
|
|
@($(call COMMON_JAVADOCFLAGS) ; \
|
|
|
|
$(call COMMON_JAVADOCTAGS) ; \
|
2014-06-30 21:27:37 +00:00
|
|
|
$(call OptionOnly,-Xdoclint:all) ; \
|
2016-03-17 19:03:53 +00:00
|
|
|
$(call OptionPair,-system,none) ; \
|
|
|
|
$(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
|
|
|
|
$(call OptionPair,-addmods,$(DOCLETAPI_MODULES)) ; \
|
2013-10-10 12:58:19 +00:00
|
|
|
$(call OptionPair,-encoding,ascii) ; \
|
|
|
|
$(call OptionOnly,-breakiterator) ; \
|
|
|
|
$(call OptionPair,-doctitle,$(DOCLETAPI_DOCTITLE)) ; \
|
|
|
|
$(call OptionPair,-windowtitle,$(DOCLETAPI_WINDOWTITLE) $(DRAFT_WINTITLE)); \
|
|
|
|
$(call OptionPair,-header,$(DOCLETAPI_HEADER)$(DRAFT_HEADER)) ; \
|
|
|
|
$(call OptionPair,-bottom,$(DOCLETAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
|
2012-09-18 18:29:16 +00:00
|
|
|
$(call OptionTrip,-group,$(DOCLETAPI_GROUPNAME),$(DOCLETAPI_REGEXP)); \
|
|
|
|
$(call OptionTrip,-linkoffline,$(DOCLETAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
|
2013-10-10 12:58:19 +00:00
|
|
|
) >> $@
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# Create a file with the package names in it
|
2014-11-27 14:41:56 +00:00
|
|
|
$(DOCLETAPI_PACKAGES_FILE): $(call PackageDependencies,$(DOCLETAPI_PKGS))
|
2012-09-18 18:29:16 +00:00
|
|
|
$(prep-target)
|
|
|
|
$(call PackageFilter,$(DOCLETAPI_PKGS))
|
|
|
|
|
2015-11-12 21:26:07 +00:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# old docletapidocs
|
|
|
|
#
|
|
|
|
|
|
|
|
ALL_OTHER_TARGETS += olddocletapidocs
|
|
|
|
|
|
|
|
OLD_DOCLET_DIR := $(JDK_API_DOCSDIR)/javadoc/old
|
|
|
|
OLD_DOCLETAPI_DOCDIR := $(OLD_DOCLET_DIR)/doclet
|
|
|
|
OLD_DOCLETAPI2COREAPI := ../../../$(JDKJRE2COREAPI)
|
|
|
|
OLD_DOCLETAPI_DOCTITLE := Doclet API
|
|
|
|
OLD_DOCLETAPI_WINDOWTITLE := Doclet API
|
|
|
|
OLD_DOCLETAPI_HEADER := <strong>Doclet API</strong>
|
|
|
|
OLD_DOCLETAPI_BOTTOM := $(call CommonTrademarkBottom,$(DOCLETAPI_FIRST_COPYRIGHT_YEAR))
|
|
|
|
OLD_DOCLETAPI_GROUPNAME := Packages
|
|
|
|
OLD_DOCLETAPI_REGEXP := com.sun.javadoc
|
|
|
|
# OLD_DOCLETAPI_PKGS is located in NON_CORE_PKGS.gmk
|
|
|
|
|
|
|
|
# The index.html, options, and packages files
|
|
|
|
OLD_DOCLETAPI_INDEX_FILE = $(OLD_DOCLETAPI_DOCDIR)/index.html
|
|
|
|
OLD_DOCLETAPI_OPTIONS_FILE = $(DOCSTMPDIR)/old-docletapi.options
|
|
|
|
OLD_DOCLETAPI_PACKAGES_FILE = $(DOCSTMPDIR)/old-docletapi.packages
|
|
|
|
|
2016-03-17 19:03:53 +00:00
|
|
|
# The modules required to be documented
|
|
|
|
OLD_DOCLETAPI_MODULES = jdk.javadoc
|
|
|
|
|
2015-11-12 21:26:07 +00:00
|
|
|
olddocletapidocs: $(OLD_DOCLETAPI_INDEX_FILE)
|
|
|
|
|
|
|
|
# Set relative location to core api document root
|
|
|
|
$(OLD_DOCLETAPI_INDEX_FILE): GET2DOCSDIR=$(OLD_DOCLETAPI2COREAPI)/..
|
|
|
|
|
|
|
|
# Run javadoc if the index file is out of date or missing
|
|
|
|
$(OLD_DOCLETAPI_INDEX_FILE): $(OLD_DOCLETAPI_OPTIONS_FILE) $(OLD_DOCLETAPI_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
|
|
|
|
$(prep-javadoc)
|
|
|
|
$(call JavadocSummary,$(OLD_DOCLETAPI_OPTIONS_FILE),$(OLD_DOCLETAPI_PACKAGES_FILE))
|
|
|
|
$(JAVADOC_CMD_SMALL) -d $(@D) \
|
|
|
|
@$(OLD_DOCLETAPI_OPTIONS_FILE) @$(OLD_DOCLETAPI_PACKAGES_FILE)
|
|
|
|
|
|
|
|
# Create file with javadoc options in it
|
|
|
|
$(OLD_DOCLETAPI_OPTIONS_FILE):
|
|
|
|
$(prep-target)
|
|
|
|
@($(call COMMON_JAVADOCFLAGS) ; \
|
|
|
|
$(call COMMON_JAVADOCTAGS) ; \
|
|
|
|
$(call OptionOnly,-Xdoclint:all) ; \
|
2016-03-17 19:03:53 +00:00
|
|
|
$(call OptionPair,-system,none) ; \
|
|
|
|
$(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
|
|
|
|
$(call OptionPair,-addmods,$(OLD_DOCLETAPI_MODULES)) ; \
|
2015-11-12 21:26:07 +00:00
|
|
|
$(call OptionPair,-encoding,ascii) ; \
|
|
|
|
$(call OptionOnly,-breakiterator) ; \
|
|
|
|
$(call OptionPair,-doctitle,$(OLD_DOCLETAPI_DOCTITLE)) ; \
|
|
|
|
$(call OptionPair,-windowtitle,$(OLD_DOCLETAPI_WINDOWTITLE) $(DRAFT_WINTITLE)); \
|
|
|
|
$(call OptionPair,-header,$(OLD_DOCLETAPI_HEADER)$(DRAFT_HEADER)) ; \
|
|
|
|
$(call OptionPair,-bottom,$(OLD_DOCLETAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
|
|
|
|
$(call OptionTrip,-group,$(OLD_DOCLETAPI_GROUPNAME),$(OLD_DOCLETAPI_REGEXP)); \
|
|
|
|
$(call OptionTrip,-linkoffline,$(OLD_DOCLETAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
|
|
|
|
) >> $@
|
|
|
|
|
|
|
|
# Create a file with the package names in it
|
|
|
|
$(OLD_DOCLETAPI_PACKAGES_FILE): $(call PackageDependencies,$(OLD_DOCLETAPI_PKGS))
|
|
|
|
$(prep-target)
|
|
|
|
$(call PackageFilter,$(OLD_DOCLETAPI_PKGS))
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# tagletapidocs
|
|
|
|
#
|
|
|
|
|
|
|
|
ALL_OTHER_TARGETS += tagletapidocs
|
2015-11-12 21:26:07 +00:00
|
|
|
TAGLETAPI_DOCDIR := $(OLD_DOCLET_DIR)/taglet
|
|
|
|
TAGLETAPI2COREAPI := ../../../$(JDKJRE2COREAPI)
|
2013-10-10 12:58:19 +00:00
|
|
|
TAGLETAPI_BOTTOM := $(call CommonTrademarkBottom,$(TAGLETAPI_FIRST_COPYRIGHT_YEAR))
|
2012-09-18 18:29:16 +00:00
|
|
|
# TAGLETAPI_FILE is located in NON_CORE_PKGS.gmk
|
|
|
|
|
|
|
|
# Temporary directory (special generation rules)
|
2013-10-10 12:58:19 +00:00
|
|
|
TAGLETAPI_TEMPDIR = $(DOCSTMPDIR)/taglets_temp
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# The index.html, options, and packages files
|
2014-04-23 12:23:50 +00:00
|
|
|
TAGLETAPI_INDEX_FILE = $(TAGLETAPI_DOCDIR)/com/sun/tools/doclets/Taglet.html
|
2013-10-10 12:58:19 +00:00
|
|
|
TAGLETAPI_OPTIONS_FILE = $(DOCSTMPDIR)/tagletapi.options
|
2012-09-18 18:29:16 +00:00
|
|
|
TAGLETAPI_PACKAGES_FILE = $(DOCSTMPDIR)/tagletapi.packages
|
|
|
|
|
2016-03-17 19:03:53 +00:00
|
|
|
# The modules required to be documented
|
|
|
|
TAGLETAPI_MODULES = jdk.javadoc
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
tagletapidocs: $(TAGLETAPI_INDEX_FILE)
|
|
|
|
|
|
|
|
# Set relative location to core api document root
|
|
|
|
$(TAGLETAPI_INDEX_FILE): GET2DOCSDIR=$(TAGLETAPI2COREAPI)/..
|
|
|
|
|
|
|
|
# Run javadoc if the index file is out of date or missing
|
2014-04-23 12:23:50 +00:00
|
|
|
$(TAGLETAPI_INDEX_FILE): $(TAGLETAPI_OPTIONS_FILE) $(TAGLETAPI_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
|
2012-09-18 18:29:16 +00:00
|
|
|
$(prep-javadoc)
|
|
|
|
$(RM) -r $(TAGLETAPI_TEMPDIR)
|
|
|
|
$(MKDIR) -p $(TAGLETAPI_TEMPDIR)
|
|
|
|
$(call JavadocSummary,$(TAGLETAPI_OPTIONS_FILE),$(TAGLETAPI_PACKAGES_FILE))
|
2015-03-05 09:29:36 +00:00
|
|
|
$(JAVADOC_CMD_SMALL) -d $(TAGLETAPI_TEMPDIR) \
|
2013-10-10 12:58:19 +00:00
|
|
|
@$(TAGLETAPI_OPTIONS_FILE) @$(TAGLETAPI_PACKAGES_FILE)
|
2014-04-23 12:23:50 +00:00
|
|
|
cp -r $(TAGLETAPI_TEMPDIR)/com $(TAGLETAPI_DOCDIR)
|
|
|
|
cp $(TAGLETAPI_TEMPDIR)/stylesheet.css $(TAGLETAPI_DOCDIR)
|
2012-09-18 18:29:16 +00:00
|
|
|
$(RM) -r $(TAGLETAPI_TEMPDIR)
|
|
|
|
|
|
|
|
# Create file with javadoc options in it
|
|
|
|
$(TAGLETAPI_OPTIONS_FILE):
|
|
|
|
$(prep-target)
|
2014-07-22 04:34:29 +00:00
|
|
|
@($(call COMMON_JAVADOCFLAGS) ; \
|
|
|
|
$(call COMMON_JAVADOCTAGS) ; \
|
2014-06-30 21:27:37 +00:00
|
|
|
$(call OptionOnly,-Xdoclint:all) ; \
|
2016-03-17 19:03:53 +00:00
|
|
|
$(call OptionPair,-system,none) ; \
|
|
|
|
$(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
|
|
|
|
$(call OptionPair,-addmods,$(TAGLETAPI_MODULES)) ; \
|
2013-10-10 12:58:19 +00:00
|
|
|
$(call OptionPair,-encoding,ascii) ; \
|
|
|
|
$(call OptionOnly,-nonavbar) ; \
|
|
|
|
$(call OptionOnly,-noindex) ; \
|
|
|
|
$(call OptionPair,-bottom,$(TAGLETAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
|
2012-09-18 18:29:16 +00:00
|
|
|
$(call OptionTrip,-linkoffline,$(TAGLETAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
|
2013-10-10 12:58:19 +00:00
|
|
|
) >> $@
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# Create a file with the package names in it
|
2014-04-23 12:23:50 +00:00
|
|
|
$(TAGLETAPI_PACKAGES_FILE): $(call PackageDependencies,$(TAGLETAPI_PKGS))
|
2012-09-18 18:29:16 +00:00
|
|
|
$(prep-target)
|
2014-08-17 14:51:37 +00:00
|
|
|
@($(ECHO) "$(LANGTOOLS_TOPDIR)/src/jdk.javadoc/share/classes/$(TAGLETAPI_FILE)" ) > $@
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# domapidocs
|
|
|
|
#
|
|
|
|
|
|
|
|
ALL_OTHER_TARGETS += domapidocs
|
|
|
|
|
2013-10-10 12:58:19 +00:00
|
|
|
DOMAPI_DOCDIR := $(JRE_API_DOCSDIR)/plugin/dom
|
|
|
|
DOMAPI2COREAPI := ../../$(JDKJRE2COREAPI)
|
|
|
|
DOMAPI_DOCTITLE := Common DOM API
|
|
|
|
DOMAPI_WINDOWTITLE := Common DOM API
|
|
|
|
DOMAPI_HEADER := <strong>Common DOM API</strong>
|
|
|
|
DOMAPI_BOTTOM := $(call CommonTrademarkBottom,$(DOMAPI_FIRST_COPYRIGHT_YEAR))
|
|
|
|
DOMAPI_GROUPNAME := Packages
|
2014-06-20 20:35:56 +00:00
|
|
|
DOMAPI_REGEXP := org.w3c.dom*
|
2012-09-18 18:29:16 +00:00
|
|
|
# DOMAPI_PKGS is located in NON_CORE_PKGS.gmk
|
|
|
|
|
|
|
|
# The index.html, options, and packages files
|
2013-10-10 12:58:19 +00:00
|
|
|
DOMAPI_INDEX_FILE = $(DOMAPI_DOCDIR)/index.html
|
|
|
|
DOMAPI_OPTIONS_FILE = $(DOCSTMPDIR)/domapi.options
|
2012-09-18 18:29:16 +00:00
|
|
|
DOMAPI_PACKAGES_FILE = $(DOCSTMPDIR)/domapi.packages
|
|
|
|
|
2016-03-17 19:03:53 +00:00
|
|
|
# The modules required to be documented
|
|
|
|
DOMAPI_MODULES = java.xml,jdk.xml.dom
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
domapidocs: $(DOMAPI_INDEX_FILE)
|
|
|
|
|
|
|
|
# Set relative location to core api document root
|
|
|
|
$(DOMAPI_INDEX_FILE): GET2DOCSDIR=$(DOMAPI2COREAPI)/..
|
|
|
|
|
|
|
|
# Run javadoc if the index file is out of date or missing
|
2014-04-23 12:23:50 +00:00
|
|
|
$(DOMAPI_INDEX_FILE): $(DOMAPI_OPTIONS_FILE) $(DOMAPI_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
|
2012-09-18 18:29:16 +00:00
|
|
|
$(prep-javadoc)
|
|
|
|
$(call JavadocSummary,$(DOMAPI_OPTIONS_FILE),$(DOMAPI_PACKAGES_FILE))
|
2015-03-05 09:29:36 +00:00
|
|
|
$(JAVADOC_CMD_SMALL) -d $(@D) \
|
2013-10-10 12:58:19 +00:00
|
|
|
@$(DOMAPI_OPTIONS_FILE) @$(DOMAPI_PACKAGES_FILE)
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# Create file with javadoc options in it
|
|
|
|
$(DOMAPI_OPTIONS_FILE):
|
|
|
|
$(prep-target)
|
2014-07-22 04:34:29 +00:00
|
|
|
@($(call COMMON_JAVADOCFLAGS) ; \
|
|
|
|
$(call COMMON_JAVADOCTAGS) ; \
|
2014-01-03 17:37:34 +00:00
|
|
|
$(call OptionOnly,-Xdoclint:none) ; \
|
2016-03-17 19:03:53 +00:00
|
|
|
$(call OptionPair,-system,none) ; \
|
|
|
|
$(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
|
|
|
|
$(call OptionPair,-addmods,$(DOMAPI_MODULES)) ; \
|
2013-10-10 12:58:19 +00:00
|
|
|
$(call OptionPair,-encoding,ascii) ; \
|
|
|
|
$(call OptionOnly,-splitIndex) ; \
|
|
|
|
$(call OptionPair,-doctitle,$(DOMAPI_DOCTITLE)) ; \
|
|
|
|
$(call OptionPair,-windowtitle,$(DOMAPI_WINDOWTITLE) $(DRAFT_WINTITLE)); \
|
|
|
|
$(call OptionPair,-header,$(DOMAPI_HEADER)$(DRAFT_HEADER)) ; \
|
|
|
|
$(call OptionPair,-bottom,$(DOMAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
|
2012-09-18 18:29:16 +00:00
|
|
|
$(call OptionTrip,-group,$(DOMAPI_GROUPNAME),$(DOMAPI_REGEXP)); \
|
|
|
|
$(call OptionTrip,-linkoffline,$(DOMAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
|
2013-10-10 12:58:19 +00:00
|
|
|
) >> $@
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# Create a file with the package names in it
|
2014-04-23 12:23:50 +00:00
|
|
|
$(DOMAPI_PACKAGES_FILE): $(call PackageDependencies,$(DOMAPI_PKGS))
|
2012-09-18 18:29:16 +00:00
|
|
|
$(prep-target)
|
|
|
|
$(call PackageFilter,$(DOMAPI_PKGS))
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# jpdadocs
|
|
|
|
#
|
|
|
|
|
|
|
|
ALL_OTHER_TARGETS += jpdadocs
|
|
|
|
|
|
|
|
jpdadocs: jdidocs jdwpdocs jvmtidocs
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# jdidocs
|
|
|
|
#
|
|
|
|
|
|
|
|
ALL_OTHER_TARGETS += jdidocs
|
|
|
|
|
2013-10-10 12:58:19 +00:00
|
|
|
JDI_DOCDIR := $(JDK_API_DOCSDIR)/jpda/jdi
|
|
|
|
JDI2COREAPI := ../../$(JDKJRE2COREAPI)
|
|
|
|
JDI_DOCTITLE := Java$(TRADEMARK) Debug Interface
|
2012-09-18 18:29:16 +00:00
|
|
|
JDI_WINDOWTITLE := Java Debug Interface
|
2013-10-10 12:58:19 +00:00
|
|
|
JDI_HEADER := <strong>Java Debug Interface</strong>
|
|
|
|
JDI_BOTTOM := $(call CommonBottom,$(JDI_FIRST_COPYRIGHT_YEAR))
|
2014-08-17 14:51:37 +00:00
|
|
|
JDI_OVERVIEW := $(JDK_TOPDIR)/src/jdk.jdi/share/classes/jdi-overview.html
|
2012-09-18 18:29:16 +00:00
|
|
|
# JDI_PKGS is located in NON_CORE_PKGS.gmk
|
|
|
|
|
|
|
|
# The index.html, options, and packages files
|
2013-10-10 12:58:19 +00:00
|
|
|
JDI_INDEX_FILE = $(JDI_DOCDIR)/index.html
|
|
|
|
JDI_OPTIONS_FILE = $(DOCSTMPDIR)/jdi.options
|
2012-09-18 18:29:16 +00:00
|
|
|
JDI_PACKAGES_FILE = $(DOCSTMPDIR)/jdi.packages
|
|
|
|
|
2016-03-17 19:03:53 +00:00
|
|
|
# The modules required to be documented
|
|
|
|
JDI_MODULES = jdk.jdi
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
jdidocs: $(JDI_INDEX_FILE)
|
|
|
|
|
|
|
|
# Set relative location to core api document root
|
|
|
|
$(JDI_INDEX_FILE): GET2DOCSDIR=$(JDI2COREAPI)/..
|
|
|
|
|
|
|
|
# Run javadoc if the index file is out of date or missing
|
2014-04-23 12:23:50 +00:00
|
|
|
$(JDI_INDEX_FILE): $(JDI_OPTIONS_FILE) $(JDI_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
|
2012-09-18 18:29:16 +00:00
|
|
|
$(prep-javadoc)
|
|
|
|
$(call JavadocSummary,$(JDI_OPTIONS_FILE),$(JDI_PACKAGES_FILE))
|
2015-03-05 09:29:36 +00:00
|
|
|
$(JAVADOC_CMD_SMALL) -d $(@D) \
|
2013-10-10 12:58:19 +00:00
|
|
|
@$(JDI_OPTIONS_FILE) @$(JDI_PACKAGES_FILE)
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# Create file with javadoc options in it
|
|
|
|
$(JDI_OPTIONS_FILE): $(JDI_OVERVIEW)
|
|
|
|
$(prep-target)
|
2014-07-22 04:34:29 +00:00
|
|
|
@($(call COMMON_JAVADOCFLAGS) ; \
|
|
|
|
$(call COMMON_JAVADOCTAGS) ; \
|
2014-01-03 17:37:34 +00:00
|
|
|
$(call OptionOnly,-Xdoclint:none) ; \
|
2016-03-17 19:03:53 +00:00
|
|
|
$(call OptionPair,-system,none) ; \
|
|
|
|
$(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
|
|
|
|
$(call OptionPair,-addmods,$(JDI_MODULES)) ; \
|
2013-10-10 12:58:19 +00:00
|
|
|
$(call OptionPair,-encoding,ascii) ; \
|
|
|
|
$(call OptionPair,-overview,$(JDI_OVERVIEW)) ; \
|
|
|
|
$(call OptionPair,-doctitle,$(JDI_DOCTITLE)) ; \
|
2012-09-18 18:29:16 +00:00
|
|
|
$(call OptionPair,-windowtitle,$(JDI_WINDOWTITLE) $(DRAFT_WINTITLE)); \
|
2013-10-10 12:58:19 +00:00
|
|
|
$(call OptionPair,-header,$(JDI_HEADER)$(DRAFT_HEADER)) ; \
|
|
|
|
$(call OptionPair,-bottom,$(JDI_BOTTOM)$(DRAFT_BOTTOM)) ; \
|
2012-09-18 18:29:16 +00:00
|
|
|
$(call OptionTrip,-linkoffline,$(JDI2COREAPI),$(COREAPI_DOCSDIR)/); \
|
2013-10-10 12:58:19 +00:00
|
|
|
) >> $@
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# Create a file with the package names in it
|
2014-04-23 12:23:50 +00:00
|
|
|
$(JDI_PACKAGES_FILE): $(call PackageDependencies,$(JDI_PKGS))
|
2012-09-18 18:29:16 +00:00
|
|
|
$(prep-target)
|
|
|
|
$(call PackageFilter,$(JDI_PKGS))
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# jdwpdocs
|
|
|
|
#
|
|
|
|
|
|
|
|
ALL_OTHER_TARGETS += jdwpdocs
|
|
|
|
|
2013-10-10 12:58:19 +00:00
|
|
|
JDWP_DOCDIR = $(PLATFORM_DOCSDIR)/jpda/jdwp
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
jdwpdocs: $(JDWP_DOCDIR)/jdwp-protocol.html
|
2014-12-03 14:20:21 +00:00
|
|
|
$(JDWP_DOCDIR)/jdwp-protocol.html : $(SUPPORT_OUTPUTDIR)/gensrc/jdk.jdi/jdwp-protocol.html
|
2012-09-18 18:29:16 +00:00
|
|
|
$(MKDIR) -p $(@D)
|
|
|
|
$(RM) $@
|
|
|
|
$(CP) $< $@
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# jvmtidocs
|
|
|
|
#
|
|
|
|
|
|
|
|
ALL_OTHER_TARGETS += jvmtidocs
|
|
|
|
|
2013-10-10 12:58:19 +00:00
|
|
|
JVMTI_DOCDIR = $(PLATFORM_DOCSDIR)/jvmti
|
|
|
|
JVMTI_HTML = $(HOTSPOT_DIST)/docs/platform/jvmti/jvmti.html
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2013-10-10 12:58:19 +00:00
|
|
|
jvmtidocs: $(JVMTI_DOCDIR)/jvmti.html
|
2012-09-18 18:29:16 +00:00
|
|
|
$(JVMTI_DOCDIR)/jvmti.html:
|
|
|
|
@$(prep-javadoc)
|
2013-10-10 12:58:19 +00:00
|
|
|
@if [ -f $(JVMTI_HTML) ] ; then \
|
|
|
|
$(CP) $(JVMTI_HTML) $@; \
|
|
|
|
else \
|
2012-09-18 18:29:16 +00:00
|
|
|
$(ECHO) "WARNING: Generated file does not exist: $(JVMTI_HTML)"; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# jaasdocs
|
|
|
|
#
|
|
|
|
|
|
|
|
ALL_OTHER_TARGETS += jaasdocs
|
|
|
|
|
2013-10-10 12:58:19 +00:00
|
|
|
JAAS_DOCDIR := $(JRE_API_DOCSDIR)/security/jaas/spec
|
|
|
|
JAAS2COREAPI := ../../../$(JDKJRE2COREAPI)
|
|
|
|
JAAS_DOCTITLE := Java$(TRADEMARK) Authentication and Authorization Service
|
2012-09-18 18:29:16 +00:00
|
|
|
JAAS_WINDOWTITLE := Java Authentication and Authorization Service
|
2013-10-10 12:58:19 +00:00
|
|
|
JAAS_HEADER := <strong>Java Authentication and Authorization Service</strong>
|
|
|
|
JAAS_BOTTOM := $(call CommonBottom,$(JAAS_FIRST_COPYRIGHT_YEAR))
|
2012-09-18 18:29:16 +00:00
|
|
|
# JAAS_PKGS is located in NON_CORE_PKGS.gmk
|
2014-08-17 14:51:37 +00:00
|
|
|
JAAS_OVERVIEW := $(JDK_TOPDIR)/src/jdk.security.auth/share/classes/jaas-overview.html
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# The index.html, options, and packages files
|
2013-10-10 12:58:19 +00:00
|
|
|
JAAS_INDEX_FILE = $(JAAS_DOCDIR)/index.html
|
|
|
|
JAAS_OPTIONS_FILE = $(DOCSTMPDIR)/jaas.options
|
2012-09-18 18:29:16 +00:00
|
|
|
JAAS_PACKAGES_FILE = $(DOCSTMPDIR)/jaas.packages
|
|
|
|
|
2016-03-17 19:03:53 +00:00
|
|
|
# The modules required to be documented
|
|
|
|
JAAS_MODULES = jdk.security.auth
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
jaasdocs: $(JAAS_INDEX_FILE)
|
|
|
|
|
|
|
|
# Set relative location to core api document root
|
|
|
|
$(JAAS_INDEX_FILE): GET2DOCSDIR=$(JAAS2COREAPI)/..
|
|
|
|
|
|
|
|
# Run javadoc if the index file is out of date or missing
|
2014-04-23 12:23:50 +00:00
|
|
|
$(JAAS_INDEX_FILE): $(JAAS_OPTIONS_FILE) $(JAAS_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
|
2012-09-18 18:29:16 +00:00
|
|
|
$(prep-javadoc)
|
|
|
|
$(call JavadocSummary,$(JAAS_OPTIONS_FILE),$(JAAS_PACKAGES_FILE))
|
2015-03-05 09:29:36 +00:00
|
|
|
$(JAVADOC_CMD_SMALL) -d $(@D) \
|
2013-10-10 12:58:19 +00:00
|
|
|
@$(JAAS_OPTIONS_FILE) @$(JAAS_PACKAGES_FILE)
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# Create file with javadoc options in it
|
|
|
|
$(JAAS_OPTIONS_FILE): $(JAAS_OVERVIEW)
|
|
|
|
$(prep-target)
|
2014-07-22 04:34:29 +00:00
|
|
|
@($(call COMMON_JAVADOCFLAGS) ; \
|
|
|
|
$(call COMMON_JAVADOCTAGS) ; \
|
2014-01-03 17:37:34 +00:00
|
|
|
$(call OptionOnly,-Xdoclint:none) ; \
|
2016-03-17 19:03:53 +00:00
|
|
|
$(call OptionPair,-system,none) ; \
|
|
|
|
$(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
|
|
|
|
$(call OptionPair,-addmods,$(JAAS_MODULES)) ; \
|
2013-10-10 12:58:19 +00:00
|
|
|
$(call OptionPair,-encoding,ascii) ; \
|
|
|
|
$(call OptionPair,-overview,$(JAAS_OVERVIEW)) ; \
|
|
|
|
$(call OptionPair,-doctitle,$(JAAS_DOCTITLE)) ; \
|
2012-09-18 18:29:16 +00:00
|
|
|
$(call OptionPair,-windowtitle,$(JAAS_WINDOWTITLE) $(DRAFT_WINTITLE)); \
|
2013-10-10 12:58:19 +00:00
|
|
|
$(call OptionPair,-header,$(JAAS_HEADER)$(DRAFT_HEADER)) ; \
|
|
|
|
$(call OptionPair,-bottom,$(JAAS_BOTTOM)$(DRAFT_BOTTOM)) ; \
|
2012-09-18 18:29:16 +00:00
|
|
|
$(call OptionTrip,-linkoffline,$(JAAS2COREAPI),$(COREAPI_DOCSDIR)/); \
|
2013-10-10 12:58:19 +00:00
|
|
|
) >> $@
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# Create a file with the package names in it
|
2014-04-23 12:23:50 +00:00
|
|
|
$(JAAS_PACKAGES_FILE): $(call PackageDependencies,$(JAAS_PKGS))
|
2012-09-18 18:29:16 +00:00
|
|
|
$(prep-target)
|
|
|
|
$(call PackageFilter,$(JAAS_PKGS))
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# jgssdocs
|
|
|
|
#
|
|
|
|
|
|
|
|
ALL_OTHER_TARGETS += jgssdocs
|
|
|
|
|
2013-10-10 12:58:19 +00:00
|
|
|
JGSS_DOCDIR := $(JRE_API_DOCSDIR)/security/jgss/spec
|
|
|
|
JGSS2COREAPI := ../../../$(JDKJRE2COREAPI)
|
|
|
|
JGSS_DOCTITLE := Java$(TRADEMARK) GSS-API Utilities
|
2012-09-18 18:29:16 +00:00
|
|
|
JGSS_WINDOWTITLE := Java GSS-API Utilities
|
2013-10-10 12:58:19 +00:00
|
|
|
JGSS_HEADER := <strong>Java GSS-API Utilities</strong>
|
|
|
|
JGSS_BOTTOM := $(call CommonBottom,$(JGSS_FIRST_COPYRIGHT_YEAR))
|
2014-08-17 14:51:37 +00:00
|
|
|
JGSS_OVERVIEW := $(JDK_TOPDIR)/src/java.security.jgss/share/classes/jgss-overview.html
|
2012-09-18 18:29:16 +00:00
|
|
|
# JGSS_PKGS is located in NON_CORE_PKGS.gmk
|
|
|
|
|
|
|
|
# The index.html, options, and packages files
|
2013-10-10 12:58:19 +00:00
|
|
|
JGSS_INDEX_FILE = $(JGSS_DOCDIR)/index.html
|
|
|
|
JGSS_OPTIONS_FILE = $(DOCSTMPDIR)/jgss.options
|
2012-09-18 18:29:16 +00:00
|
|
|
JGSS_PACKAGES_FILE = $(DOCSTMPDIR)/jgss.packages
|
|
|
|
|
2016-03-17 19:03:53 +00:00
|
|
|
# The modules required to be documented
|
|
|
|
JGSS_MODULES = jdk.security.jgss
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
jgssdocs: $(JGSS_INDEX_FILE)
|
|
|
|
|
|
|
|
# Set relative location to core api document root
|
|
|
|
$(JGSS_INDEX_FILE): GET2DOCSDIR=$(JGSS2COREAPI)/..
|
|
|
|
|
|
|
|
# Run javadoc if the index file is out of date or missing
|
2014-04-23 12:23:50 +00:00
|
|
|
$(JGSS_INDEX_FILE): $(JGSS_OPTIONS_FILE) $(JGSS_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
|
2012-09-18 18:29:16 +00:00
|
|
|
$(prep-javadoc)
|
|
|
|
$(call JavadocSummary,$(JGSS_OPTIONS_FILE),$(JGSS_PACKAGES_FILE))
|
2015-03-05 09:29:36 +00:00
|
|
|
$(JAVADOC_CMD_SMALL) -d $(@D) \
|
2013-10-10 12:58:19 +00:00
|
|
|
@$(JGSS_OPTIONS_FILE) @$(JGSS_PACKAGES_FILE)
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# Create file with javadoc options in it
|
|
|
|
$(JGSS_OPTIONS_FILE): $(JGSS_OVERVIEW)
|
|
|
|
$(prep-target)
|
2014-07-22 04:34:29 +00:00
|
|
|
@($(call COMMON_JAVADOCFLAGS) ; \
|
|
|
|
$(call COMMON_JAVADOCTAGS) ; \
|
2014-01-03 17:37:34 +00:00
|
|
|
$(call OptionOnly,-Xdoclint:none) ; \
|
2016-03-17 19:03:53 +00:00
|
|
|
$(call OptionPair,-system,none) ; \
|
|
|
|
$(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
|
|
|
|
$(call OptionPair,-addmods,$(JGSS_MODULES)) ; \
|
2013-10-10 12:58:19 +00:00
|
|
|
$(call OptionPair,-encoding,ascii) ; \
|
|
|
|
$(call OptionOnly,-nodeprecatedlist) ; \
|
|
|
|
$(call OptionPair,-overview,$(JGSS_OVERVIEW)) ; \
|
|
|
|
$(call OptionPair,-doctitle,$(JGSS_DOCTITLE)) ; \
|
2012-09-18 18:29:16 +00:00
|
|
|
$(call OptionPair,-windowtitle,$(JGSS_WINDOWTITLE) $(DRAFT_WINTITLE)); \
|
2013-10-10 12:58:19 +00:00
|
|
|
$(call OptionPair,-header,$(JGSS_HEADER)$(DRAFT_HEADER)) ; \
|
|
|
|
$(call OptionPair,-bottom,$(JGSS_BOTTOM)$(DRAFT_BOTTOM)) ; \
|
2012-09-18 18:29:16 +00:00
|
|
|
$(call OptionTrip,-linkoffline,$(JGSS2COREAPI),$(COREAPI_DOCSDIR)/); \
|
2013-10-10 12:58:19 +00:00
|
|
|
) >> $@
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# Create a file with the package names in it
|
2014-04-23 12:23:50 +00:00
|
|
|
$(JGSS_PACKAGES_FILE): $(call PackageDependencies,$(JGSS_PKGS))
|
2012-09-18 18:29:16 +00:00
|
|
|
$(prep-target)
|
|
|
|
$(call PackageFilter,$(JGSS_PKGS))
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# smartcardiodocs
|
|
|
|
#
|
|
|
|
|
|
|
|
ALL_OTHER_TARGETS += smartcardiodocs
|
|
|
|
|
2013-10-10 12:58:19 +00:00
|
|
|
SMARTCARDIO_DOCDIR := $(JRE_API_DOCSDIR)/security/smartcardio/spec
|
|
|
|
SMARTCARDIO2COREAPI := ../../../$(JDKJRE2COREAPI)
|
|
|
|
SMARTCARDIO_DOCTITLE := Java$(TRADEMARK) Smart Card I/O
|
2012-09-18 18:29:16 +00:00
|
|
|
SMARTCARDIO_WINDOWTITLE := Java Smart Card I/O
|
2013-10-10 12:58:19 +00:00
|
|
|
SMARTCARDIO_HEADER := <strong>Java Smart Card I/O</strong>
|
|
|
|
SMARTCARDIO_BOTTOM := $(call CommonBottom,$(SMARTCARDIO_FIRST_COPYRIGHT_YEAR))
|
2012-09-18 18:29:16 +00:00
|
|
|
# SMARTCARDIO_PKGS is located in NON_CORE_PKGS.gmk
|
|
|
|
|
|
|
|
# The index.html, options, and packages files
|
2013-10-10 12:58:19 +00:00
|
|
|
SMARTCARDIO_INDEX_FILE = $(SMARTCARDIO_DOCDIR)/index.html
|
|
|
|
SMARTCARDIO_OPTIONS_FILE = $(DOCSTMPDIR)/smartcardio.options
|
2012-09-18 18:29:16 +00:00
|
|
|
SMARTCARDIO_PACKAGES_FILE = $(DOCSTMPDIR)/smartcardio.packages
|
|
|
|
|
2016-03-17 19:03:53 +00:00
|
|
|
# The modules required to be documented
|
|
|
|
SMARTCARDIO_MODULES = java.smartcardio
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
smartcardiodocs: $(SMARTCARDIO_INDEX_FILE)
|
|
|
|
|
|
|
|
# Set relative location to core api document root
|
|
|
|
$(SMARTCARDIO_INDEX_FILE): GET2DOCSDIR=$(SMARTCARDIO2COREAPI)/..
|
|
|
|
|
|
|
|
# Run javadoc if the index file is out of date or missing
|
2014-04-23 12:23:50 +00:00
|
|
|
$(SMARTCARDIO_INDEX_FILE): $(SMARTCARDIO_OPTIONS_FILE) $(SMARTCARDIO_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
|
2012-09-18 18:29:16 +00:00
|
|
|
$(prep-javadoc)
|
|
|
|
$(call JavadocSummary,$(SMARTCARDIO_OPTIONS_FILE),$(SMARTCARDIO_PACKAGES_FILE))
|
2015-03-05 09:29:36 +00:00
|
|
|
$(JAVADOC_CMD_SMALL) -d $(@D) \
|
2013-10-10 12:58:19 +00:00
|
|
|
@$(SMARTCARDIO_OPTIONS_FILE) @$(SMARTCARDIO_PACKAGES_FILE)
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# Create file with javadoc options in it
|
|
|
|
$(SMARTCARDIO_OPTIONS_FILE):
|
|
|
|
$(prep-target)
|
2014-07-22 04:34:29 +00:00
|
|
|
@($(call COMMON_JAVADOCFLAGS) ; \
|
|
|
|
$(call COMMON_JAVADOCTAGS) ; \
|
2014-01-03 17:37:34 +00:00
|
|
|
$(call OptionOnly,-Xdoclint:none) ; \
|
2016-03-17 19:03:53 +00:00
|
|
|
$(call OptionPair,-system,none) ; \
|
|
|
|
$(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
|
|
|
|
$(call OptionPair,-addmods,$(SMARTCARDIO_MODULES)) ; \
|
2013-10-10 12:58:19 +00:00
|
|
|
$(call OptionPair,-encoding,ascii) ; \
|
|
|
|
$(call OptionOnly,-nodeprecatedlist) ; \
|
|
|
|
$(call OptionPair,-doctitle,$(SMARTCARDIO_DOCTITLE)) ; \
|
|
|
|
$(call OptionPair,-windowtitle,$(SMARTCARDIO_WINDOWTITLE) $(DRAFT_WINTITLE)); \
|
2012-09-18 18:29:16 +00:00
|
|
|
$(call OptionPair,-header,$(SMARTCARDIO_HEADER)$(DRAFT_HEADER)); \
|
|
|
|
$(call OptionPair,-bottom,$(SMARTCARDIO_BOTTOM)$(DRAFT_BOTTOM)); \
|
|
|
|
$(call OptionTrip,-linkoffline,$(SMARTCARDIO2COREAPI),$(COREAPI_DOCSDIR)/); \
|
2013-10-10 12:58:19 +00:00
|
|
|
) >> $@
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# Create a file with the package names in it
|
2014-04-23 12:23:50 +00:00
|
|
|
$(SMARTCARDIO_PACKAGES_FILE): $(call PackageDependencies,$(SMARTCARDIO_PKGS))
|
2012-09-18 18:29:16 +00:00
|
|
|
$(prep-target)
|
|
|
|
$(call PackageFilter,$(SMARTCARDIO_PKGS))
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# httpserverdocs
|
|
|
|
#
|
|
|
|
|
|
|
|
ALL_OTHER_TARGETS += httpserverdocs
|
|
|
|
|
2013-10-10 12:58:19 +00:00
|
|
|
HTTPSERVER_DOCDIR := $(JRE_API_DOCSDIR)/net/httpserver/spec
|
|
|
|
HTTPSERVER2COREAPI := ../../../$(JDKJRE2COREAPI)
|
|
|
|
HTTPSERVER_DOCTITLE := Java$(TRADEMARK) HTTP Server
|
2012-09-18 18:29:16 +00:00
|
|
|
HTTPSERVER_WINDOWTITLE := Java HTTP Server
|
2013-10-10 12:58:19 +00:00
|
|
|
HTTPSERVER_HEADER := <strong>Java HTTP Server</strong>
|
|
|
|
HTTPSERVER_BOTTOM := $(call CommonBottom,$(HTTPSERVER_FIRST_COPYRIGHT_YEAR))
|
2012-09-18 18:29:16 +00:00
|
|
|
# HTTPSERVER_PKGS is located in NON_CORE_PKGS.gmk
|
|
|
|
|
2013-10-10 12:58:19 +00:00
|
|
|
HTTPSERVER_INDEX_HTML = $(HTTPSERVER_DOCDIR)/index.html
|
|
|
|
HTTPSERVER_OPTIONS_FILE = $(DOCSTMPDIR)/httpserver.options
|
2012-09-18 18:29:16 +00:00
|
|
|
HTTPSERVER_PACKAGES_FILE = $(DOCSTMPDIR)/httpserver.packages
|
|
|
|
|
2016-03-17 19:03:53 +00:00
|
|
|
# The modules required to be documented
|
|
|
|
HTTPSERVER_MODULES = jdk.httpserver
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
httpserverdocs: $(HTTPSERVER_INDEX_HTML)
|
|
|
|
|
|
|
|
# Set relative location to core api document root
|
|
|
|
$(HTTPSERVER_INDEX_HTML): GET2DOCSDIR=$(HTTPSERVER2COREAPI)/..
|
|
|
|
|
|
|
|
# Run javadoc if the index file is out of date or missing
|
2014-04-23 12:23:50 +00:00
|
|
|
$(HTTPSERVER_INDEX_HTML): $(HTTPSERVER_OPTIONS_FILE) $(HTTPSERVER_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
|
2012-09-18 18:29:16 +00:00
|
|
|
$(prep-javadoc)
|
|
|
|
$(call JavadocSummary,$(HTTPSERVER_OPTIONS_FILE),$(HTTPSERVER_PACKAGES_FILE))
|
2015-03-05 09:29:36 +00:00
|
|
|
$(JAVADOC_CMD_SMALL) -d $(@D) \
|
2013-10-10 12:58:19 +00:00
|
|
|
@$(HTTPSERVER_OPTIONS_FILE) @$(HTTPSERVER_PACKAGES_FILE)
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# Create file with javadoc options in it
|
|
|
|
$(HTTPSERVER_OPTIONS_FILE):
|
|
|
|
$(prep-target)
|
2014-07-22 04:34:29 +00:00
|
|
|
@($(call COMMON_JAVADOCFLAGS) ; \
|
|
|
|
$(call COMMON_JAVADOCTAGS) ; \
|
2014-01-03 17:37:34 +00:00
|
|
|
$(call OptionOnly,-Xdoclint:none) ; \
|
2016-03-17 19:03:53 +00:00
|
|
|
$(call OptionPair,-system,none) ; \
|
|
|
|
$(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
|
|
|
|
$(call OptionPair,-addmods,$(HTTPSERVER_MODULES)) ; \
|
2013-10-10 12:58:19 +00:00
|
|
|
$(call OptionPair,-encoding,ascii) ; \
|
|
|
|
$(call OptionOnly,-nodeprecatedlist) ; \
|
|
|
|
$(call OptionPair,-doctitle,$(HTTPSERVER_DOCTITLE)) ; \
|
|
|
|
$(call OptionPair,-windowtitle,$(HTTPSERVER_WINDOWTITLE) $(DRAFT_WINTITLE)); \
|
2012-09-18 18:29:16 +00:00
|
|
|
$(call OptionPair,-header,$(HTTPSERVER_HEADER)$(DRAFT_HEADER)); \
|
|
|
|
$(call OptionPair,-bottom,$(HTTPSERVER_BOTTOM)$(DRAFT_BOTTOM)); \
|
|
|
|
$(call OptionTrip,-linkoffline,$(HTTPSERVER2COREAPI),$(COREAPI_DOCSDIR)/); \
|
2013-10-10 12:58:19 +00:00
|
|
|
) >> $@
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# Create a file with the package names in it
|
2014-04-23 12:23:50 +00:00
|
|
|
$(HTTPSERVER_PACKAGES_FILE): $(call PackageDependencies,$(HTTPSERVER_PKGS))
|
2012-09-18 18:29:16 +00:00
|
|
|
$(prep-target)
|
|
|
|
$(call PackageFilter,$(HTTPSERVER_PKGS))
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# mgmtdocs
|
|
|
|
#
|
|
|
|
|
|
|
|
ALL_OTHER_TARGETS += mgmtdocs
|
|
|
|
|
2013-10-10 12:58:19 +00:00
|
|
|
MGMT_DOCDIR := $(JRE_API_DOCSDIR)/management/extension
|
|
|
|
MGMT2COREAPI := ../../$(JDKJRE2COREAPI)
|
|
|
|
JVM_MIB_NAME := JVM-MANAGEMENT-MIB.mib
|
2014-08-17 14:51:37 +00:00
|
|
|
JVM_MIB_SRC := $(JDK_TOPDIR)/src/closed/jdk.snmp/share/classes/sun/management/snmp/$(JVM_MIB_NAME)
|
2013-10-10 12:58:19 +00:00
|
|
|
MGMT_DOCTITLE := Monitoring and Management Interface for the Java$(TRADEMARK) Platform
|
2012-09-18 18:29:16 +00:00
|
|
|
MGMT_WINDOWTITLE := Monitoring and Management Interface for the Java Platform
|
2013-10-10 12:58:19 +00:00
|
|
|
MGMT_HEADER := <strong>Monitoring and Management Interface for the Java Platform</strong>
|
|
|
|
MGMT_BOTTOM := $(call CommonBottom,$(MGMT_FIRST_COPYRIGHT_YEAR))
|
2014-08-17 14:51:37 +00:00
|
|
|
MGMT_OVERVIEW := $(JDK_TOPDIR)/src/java.management/share/classes/mgmt-overview.html
|
2012-09-18 18:29:16 +00:00
|
|
|
# MGMT_PKGS is located in NON_CORE_PKGS.gmk
|
|
|
|
|
|
|
|
# The index.html, options, and packages files
|
2013-10-10 12:58:19 +00:00
|
|
|
MGMT_INDEX_FILE = $(MGMT_DOCDIR)/index.html
|
|
|
|
MGMT_OPTIONS_FILE = $(DOCSTMPDIR)/mgmt.options
|
2012-09-18 18:29:16 +00:00
|
|
|
MGMT_PACKAGES_FILE = $(DOCSTMPDIR)/mgmt.packages
|
|
|
|
|
2016-03-17 19:03:53 +00:00
|
|
|
# The modules required to be documented
|
|
|
|
MGMT_MODULES = jdk.management
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
mgmtdocs: $(MGMT_INDEX_FILE)
|
|
|
|
|
|
|
|
# Set relative location to core api document root
|
|
|
|
$(MGMT_INDEX_FILE): GET2DOCSDIR=$(MGMT2COREAPI)/..
|
|
|
|
|
|
|
|
# Run javadoc if the index file is out of date or missing
|
2014-04-23 12:23:50 +00:00
|
|
|
$(MGMT_INDEX_FILE): $(MGMT_OPTIONS_FILE) $(MGMT_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
|
2012-09-18 18:29:16 +00:00
|
|
|
$(prep-javadoc)
|
2013-10-10 12:58:19 +00:00
|
|
|
@if [ -f $(JVM_MIB_SRC) ] ; then \
|
|
|
|
$(CP) $(JVM_MIB_SRC) $(@D)/.. ; \
|
|
|
|
else \
|
|
|
|
$(ECHO) "WARNING: File $(JVM_MIB_NAME) not available."; \
|
2012-09-18 18:29:16 +00:00
|
|
|
fi
|
|
|
|
$(call JavadocSummary,$(MGMT_OPTIONS_FILE),$(MGMT_PACKAGES_FILE))
|
2015-03-05 09:29:36 +00:00
|
|
|
$(JAVADOC_CMD_SMALL) -d $(@D) \
|
2013-10-10 12:58:19 +00:00
|
|
|
@$(MGMT_OPTIONS_FILE) @$(MGMT_PACKAGES_FILE)
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# Create file with javadoc options in it
|
|
|
|
$(MGMT_OPTIONS_FILE): $(MGMT_OVERVIEW)
|
|
|
|
$(prep-target)
|
2014-07-22 04:34:29 +00:00
|
|
|
@($(call COMMON_JAVADOCFLAGS) ; \
|
|
|
|
$(call COMMON_JAVADOCTAGS) ; \
|
2014-01-03 17:37:34 +00:00
|
|
|
$(call OptionOnly,-Xdoclint:none) ; \
|
2016-03-17 19:03:53 +00:00
|
|
|
$(call OptionPair,-system,none) ; \
|
|
|
|
$(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
|
|
|
|
$(call OptionPair,-addmods,$(MGMT_MODULES)) ; \
|
2013-10-10 12:58:19 +00:00
|
|
|
$(call OptionPair,-encoding,ascii) ; \
|
|
|
|
$(call OptionOnly,-nodeprecatedlist) ; \
|
|
|
|
$(call OptionPair,-overview,$(MGMT_OVERVIEW)) ; \
|
|
|
|
$(call OptionPair,-doctitle,$(MGMT_DOCTITLE)) ; \
|
2012-09-18 18:29:16 +00:00
|
|
|
$(call OptionPair,-windowtitle,$(MGMT_WINDOWTITLE) $(DRAFT_WINTITLE)); \
|
2013-10-10 12:58:19 +00:00
|
|
|
$(call OptionPair,-header,$(MGMT_HEADER)$(DRAFT_HEADER)) ; \
|
|
|
|
$(call OptionPair,-bottom,$(MGMT_BOTTOM)$(DRAFT_BOTTOM)) ; \
|
2012-09-18 18:29:16 +00:00
|
|
|
$(call OptionTrip,-linkoffline,$(MGMT2COREAPI),$(COREAPI_DOCSDIR)/); \
|
2013-10-10 12:58:19 +00:00
|
|
|
) >> $@
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# Create a file with the package names in it
|
2014-04-23 12:23:50 +00:00
|
|
|
$(MGMT_PACKAGES_FILE): $(call PackageDependencies,$(MGMT_PKGS))
|
2012-09-18 18:29:16 +00:00
|
|
|
$(prep-target)
|
|
|
|
$(call PackageFilter,$(MGMT_PKGS))
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# attachdocs
|
|
|
|
#
|
|
|
|
|
|
|
|
ALL_OTHER_TARGETS += attachdocs
|
|
|
|
|
2013-10-10 12:58:19 +00:00
|
|
|
ATTACH_DOCDIR := $(JDK_API_DOCSDIR)/attach/spec
|
|
|
|
ATTACH2COREAPI := ../../$(JDKJRE2COREAPI)
|
|
|
|
ATTACH_DOCTITLE := Attach API
|
2012-09-18 18:29:16 +00:00
|
|
|
ATTACH_WINDOWTITLE := Attach API
|
2013-10-10 12:58:19 +00:00
|
|
|
ATTACH_HEADER := <strong>Attach API</strong>
|
|
|
|
ATTACH_BOTTOM := $(call CommonBottom,$(ATTACH_FIRST_COPYRIGHT_YEAR))
|
2012-09-18 18:29:16 +00:00
|
|
|
# ATTACH_PKGS is located in NON_CORE_PKGS.gmk
|
|
|
|
|
2013-10-10 12:58:19 +00:00
|
|
|
ATTACH_INDEX_HTML = $(ATTACH_DOCDIR)/index.html
|
|
|
|
ATTACH_OPTIONS_FILE = $(DOCSTMPDIR)/attach.options
|
2012-09-18 18:29:16 +00:00
|
|
|
ATTACH_PACKAGES_FILE = $(DOCSTMPDIR)/attach.packages
|
|
|
|
|
2016-03-17 19:03:53 +00:00
|
|
|
# The modules required to be documented
|
|
|
|
ATTACH_MODULES = jdk.attach
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
attachdocs: $(ATTACH_INDEX_HTML)
|
|
|
|
|
|
|
|
# Set relative location to core api document root
|
|
|
|
$(ATTACH_INDEX_HTML): GET2DOCSDIR=$(ATTACH2COREAPI)/..
|
|
|
|
|
|
|
|
# Run javadoc if the index file is out of date or missing
|
2014-04-23 12:23:50 +00:00
|
|
|
$(ATTACH_INDEX_HTML): $(ATTACH_OPTIONS_FILE) $(ATTACH_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
|
2012-09-18 18:29:16 +00:00
|
|
|
$(prep-javadoc)
|
|
|
|
$(call JavadocSummary,$(ATTACH_OPTIONS_FILE),$(ATTACH_PACKAGES_FILE))
|
2015-03-05 09:29:36 +00:00
|
|
|
$(JAVADOC_CMD_SMALL) -d $(@D) \
|
2013-10-10 12:58:19 +00:00
|
|
|
@$(ATTACH_OPTIONS_FILE) @$(ATTACH_PACKAGES_FILE)
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# Create file with javadoc options in it
|
|
|
|
$(ATTACH_OPTIONS_FILE):
|
|
|
|
$(prep-target)
|
2014-07-22 04:34:29 +00:00
|
|
|
@($(call COMMON_JAVADOCFLAGS) ; \
|
|
|
|
$(call COMMON_JAVADOCTAGS) ; \
|
2014-01-03 17:37:34 +00:00
|
|
|
$(call OptionOnly,-Xdoclint:none) ; \
|
2016-03-17 19:03:53 +00:00
|
|
|
$(call OptionPair,-system,none) ; \
|
|
|
|
$(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
|
|
|
|
$(call OptionPair,-addmods,$(ATTACH_MODULES)) ; \
|
2013-10-10 12:58:19 +00:00
|
|
|
$(call OptionPair,-encoding,ascii) ; \
|
|
|
|
$(call OptionOnly,-nodeprecatedlist) ; \
|
|
|
|
$(call OptionPair,-doctitle,$(ATTACH_DOCTITLE)) ; \
|
|
|
|
$(call OptionPair,-windowtitle,$(ATTACH_WINDOWTITLE) $(DRAFT_WINTITLE)); \
|
|
|
|
$(call OptionPair,-header,$(ATTACH_HEADER)$(DRAFT_HEADER)) ; \
|
|
|
|
$(call OptionPair,-bottom,$(ATTACH_BOTTOM)$(DRAFT_BOTTOM)) ; \
|
2012-09-18 18:29:16 +00:00
|
|
|
$(call OptionTrip,-linkoffline,$(ATTACH2COREAPI),$(COREAPI_DOCSDIR)/); \
|
2013-10-10 12:58:19 +00:00
|
|
|
) >> $@
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# Create a file with the package names in it
|
2014-04-23 12:23:50 +00:00
|
|
|
$(ATTACH_PACKAGES_FILE): $(call PackageDependencies,$(ATTACH_PKGS))
|
2012-09-18 18:29:16 +00:00
|
|
|
$(prep-target)
|
|
|
|
$(call PackageFilter,$(ATTACH_PKGS))
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# jconsoledocs
|
|
|
|
#
|
|
|
|
|
|
|
|
ALL_OTHER_TARGETS += jconsoledocs
|
|
|
|
|
2013-10-10 12:58:19 +00:00
|
|
|
JCONSOLE_DOCDIR := $(JDK_API_DOCSDIR)/jconsole/spec
|
|
|
|
JCONSOLE2COREAPI := ../../$(JDKJRE2COREAPI)
|
|
|
|
JCONSOLE_DOCTITLE := JConsole API
|
2012-09-18 18:29:16 +00:00
|
|
|
JCONSOLE_WINDOWTITLE := JConsole API
|
2013-10-10 12:58:19 +00:00
|
|
|
JCONSOLE_HEADER := <strong>JConsole API</strong>
|
|
|
|
JCONSOLE_BOTTOM := $(call CommonBottom,$(JCONSOLE_FIRST_COPYRIGHT_YEAR))
|
2012-09-18 18:29:16 +00:00
|
|
|
# JCONSOLE_PKGS is located in NON_CORE_PKGS.gmk
|
|
|
|
|
2013-10-10 12:58:19 +00:00
|
|
|
JCONSOLE_INDEX_HTML = $(JCONSOLE_DOCDIR)/index.html
|
|
|
|
JCONSOLE_OPTIONS_FILE = $(DOCSTMPDIR)/jconsole.options
|
2012-09-18 18:29:16 +00:00
|
|
|
JCONSOLE_PACKAGES_FILE = $(DOCSTMPDIR)/jconsole.packages
|
|
|
|
|
2016-03-17 19:03:53 +00:00
|
|
|
# The modules required to be documented
|
|
|
|
JCONSOLE_MODULES = jdk.jconsole
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
jconsoledocs: $(JCONSOLE_INDEX_HTML)
|
|
|
|
|
|
|
|
# Set relative location to core api document root
|
|
|
|
$(JCONSOLE_INDEX_HTML): GET2DOCSDIR=$(JCONSOLE2COREAPI)/..
|
|
|
|
|
|
|
|
# Run javadoc if the index file is out of date or missing
|
2014-04-23 12:23:50 +00:00
|
|
|
$(JCONSOLE_INDEX_HTML): $(JCONSOLE_OPTIONS_FILE) $(JCONSOLE_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
|
2012-09-18 18:29:16 +00:00
|
|
|
$(prep-javadoc)
|
|
|
|
$(call JavadocSummary,$(JCONSOLE_OPTIONS_FILE),$(JCONSOLE_PACKAGES_FILE))
|
2015-03-05 09:29:36 +00:00
|
|
|
$(JAVADOC_CMD_SMALL) -d $(@D) \
|
2013-10-10 12:58:19 +00:00
|
|
|
@$(JCONSOLE_OPTIONS_FILE) @$(JCONSOLE_PACKAGES_FILE)
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# Create file with javadoc options in it
|
|
|
|
$(JCONSOLE_OPTIONS_FILE):
|
|
|
|
$(prep-target)
|
2014-07-22 04:34:29 +00:00
|
|
|
@($(call COMMON_JAVADOCFLAGS) ; \
|
|
|
|
$(call COMMON_JAVADOCTAGS) ; \
|
2014-01-03 17:37:34 +00:00
|
|
|
$(call OptionOnly,-Xdoclint:none) ; \
|
2016-03-17 19:03:53 +00:00
|
|
|
$(call OptionPair,-system,none) ; \
|
|
|
|
$(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
|
|
|
|
$(call OptionPair,-addmods,$(JCONSOLE_MODULES)) ; \
|
2013-10-10 12:58:19 +00:00
|
|
|
$(call OptionPair,-encoding,ascii) ; \
|
|
|
|
$(call OptionOnly,-nodeprecatedlist) ; \
|
|
|
|
$(call OptionPair,-doctitle,$(JCONSOLE_DOCTITLE)) ; \
|
|
|
|
$(call OptionPair,-windowtitle,$(JCONSOLE_WINDOWTITLE) $(DRAFT_WINTITLE)); \
|
|
|
|
$(call OptionPair,-header,$(JCONSOLE_HEADER)$(DRAFT_HEADER)) ; \
|
|
|
|
$(call OptionPair,-bottom,$(JCONSOLE_BOTTOM)$(DRAFT_BOTTOM)) ; \
|
2012-09-18 18:29:16 +00:00
|
|
|
$(call OptionTrip,-linkoffline,$(JCONSOLE2COREAPI),$(COREAPI_DOCSDIR)/); \
|
2013-10-10 12:58:19 +00:00
|
|
|
) >> $@
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# Create a file with the package names in it
|
2014-04-23 12:23:50 +00:00
|
|
|
$(JCONSOLE_PACKAGES_FILE): $(call PackageDependencies,$(JCONSOLE_PKGS))
|
2012-09-18 18:29:16 +00:00
|
|
|
$(prep-target)
|
|
|
|
$(call PackageFilter,$(JCONSOLE_PKGS))
|
|
|
|
|
2016-04-08 09:51:53 +00:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# jshellapidocs
|
|
|
|
#
|
|
|
|
|
|
|
|
ALL_OTHER_TARGETS += jshellapidocs
|
|
|
|
|
|
|
|
JSHELLAPI_DOCDIR := $(JDK_API_DOCSDIR)/jshell
|
|
|
|
JSHELLAPI2COREAPI := ../../$(JDKJRE2COREAPI)
|
|
|
|
JSHELLAPI_DOCTITLE := JShell API
|
|
|
|
JSHELLAPI_WINDOWTITLE := JShell API
|
|
|
|
JSHELLAPI_HEADER := <strong>JSHELL API</strong>
|
|
|
|
JSHELLAPI_BOTTOM := $(call CommonBottom,$(JSHELLAPI_FIRST_COPYRIGHT_YEAR))
|
|
|
|
JSHELLAPI_GROUPNAME := Packages
|
|
|
|
JSHELLAPI_REGEXP := jdk.jshell.*
|
|
|
|
# JSHELLAPI_PKGS is located in NON_CORE_PKGS.gmk
|
|
|
|
|
|
|
|
JSHELLAPI_INDEX_HTML = $(JSHELLAPI_DOCDIR)/index.html
|
|
|
|
JSHELLAPI_OPTIONS_FILE = $(DOCSTMPDIR)/jshellapi.options
|
|
|
|
JSHELLAPI_PACKAGES_FILE = $(DOCSTMPDIR)/jshellapi.packages
|
|
|
|
|
|
|
|
# The modules required to be documented
|
|
|
|
JSHELLAPI_MODULES = jdk.jshell
|
|
|
|
|
|
|
|
jshellapidocs: $(JSHELLAPI_INDEX_HTML)
|
|
|
|
|
|
|
|
# Set relative location to core api document root
|
|
|
|
$(JSHELLAPI_INDEX_HTML): GET2DOCSDIR=$(JSHELLAPI2COREAPI)/..
|
|
|
|
|
|
|
|
# Run javadoc if the index file is out of date or missing
|
|
|
|
$(JSHELLAPI_INDEX_HTML): $(JSHELLAPI_OPTIONS_FILE) $(JSHELLAPI_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
|
|
|
|
$(prep-javadoc)
|
|
|
|
$(call JavadocSummary,$(JSHELLAPI_OPTIONS_FILE),$(JSHELLAPI_PACKAGES_FILE))
|
|
|
|
$(JAVADOC_CMD_SMALL) -d $(@D) \
|
|
|
|
@$(JSHELLAPI_OPTIONS_FILE) @$(JSHELLAPI_PACKAGES_FILE)
|
|
|
|
|
|
|
|
# Create file with javadoc options in it
|
|
|
|
$(JSHELLAPI_OPTIONS_FILE):
|
|
|
|
$(prep-target)
|
|
|
|
@($(call COMMON_JAVADOCFLAGS) ; \
|
|
|
|
$(call COMMON_JAVADOCTAGS) ; \
|
|
|
|
$(call OptionOnly,-Xdoclint:all) ; \
|
|
|
|
$(call OptionPair,-system,none) ; \
|
|
|
|
$(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
|
|
|
|
$(call OptionPair,-addmods,$(JSHELLAPI_MODULES)) ; \
|
|
|
|
$(call OptionPair,-encoding,ascii) ; \
|
|
|
|
$(call OptionPair,-doctitle,$(JSHELLAPI_DOCTITLE)) ; \
|
|
|
|
$(call OptionPair,-windowtitle,$(JSHELLAPI_WINDOWTITLE) $(DRAFT_WINTITLE)); \
|
|
|
|
$(call OptionPair,-header,$(JSHELLAPI_HEADER)$(DRAFT_HEADER)) ; \
|
|
|
|
$(call OptionPair,-bottom,$(JSHELLAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
|
|
|
|
$(call OptionTrip,-group,$(JSHELLAPI_GROUPNAME),$(JSHELLAPI_REGEXP)); \
|
|
|
|
$(call OptionTrip,-linkoffline,$(JSHELLAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
|
|
|
|
) >> $@
|
|
|
|
|
|
|
|
# Create a file with the package names in it
|
|
|
|
$(JSHELLAPI_PACKAGES_FILE): $(call PackageDependencies,$(JSHELLAPI_PKGS))
|
|
|
|
$(prep-target)
|
|
|
|
$(call PackageFilter,$(JSHELLAPI_PKGS))
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# treeapidocs
|
|
|
|
#
|
|
|
|
|
|
|
|
ALL_OTHER_TARGETS += treeapidocs
|
|
|
|
|
2013-10-10 12:58:19 +00:00
|
|
|
TREEAPI_DOCDIR := $(JDK_API_DOCSDIR)/javac/tree
|
|
|
|
TREEAPI2COREAPI := ../../$(JDKJRE2COREAPI)
|
|
|
|
TREEAPI_DOCTITLE := Compiler Tree API
|
|
|
|
TREEAPI_WINDOWTITLE := Compiler Tree API
|
|
|
|
TREEAPI_HEADER := <strong>Compiler Tree API</strong>
|
|
|
|
TREEAPI_BOTTOM := $(call CommonBottom,$(TREEAPI_FIRST_COPYRIGHT_YEAR))
|
|
|
|
TREEAPI_GROUPNAME := Packages
|
|
|
|
TREEAPI_REGEXP := com.sun.source.*
|
2012-09-18 18:29:16 +00:00
|
|
|
# TREEAPI_PKGS is located in NON_CORE_PKGS.gmk
|
|
|
|
|
2013-10-10 12:58:19 +00:00
|
|
|
TREEAPI_INDEX_HTML = $(TREEAPI_DOCDIR)/index.html
|
|
|
|
TREEAPI_OPTIONS_FILE = $(DOCSTMPDIR)/treeapi.options
|
2012-09-18 18:29:16 +00:00
|
|
|
TREEAPI_PACKAGES_FILE = $(DOCSTMPDIR)/treeapi.packages
|
|
|
|
|
2016-03-17 19:03:53 +00:00
|
|
|
# The modules required to be documented
|
|
|
|
TREEAPI_MODULES = jdk.compiler
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
treeapidocs: $(TREEAPI_INDEX_HTML)
|
|
|
|
|
|
|
|
# Set relative location to core api document root
|
|
|
|
$(TREEAPI_INDEX_HTML): GET2DOCSDIR=$(TREEAPI2COREAPI)/..
|
|
|
|
|
|
|
|
# Run javadoc if the index file is out of date or missing
|
2014-04-23 12:23:50 +00:00
|
|
|
$(TREEAPI_INDEX_HTML): $(TREEAPI_OPTIONS_FILE) $(TREEAPI_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
|
2012-09-18 18:29:16 +00:00
|
|
|
$(prep-javadoc)
|
|
|
|
$(call JavadocSummary,$(TREEAPI_OPTIONS_FILE),$(TREEAPI_PACKAGES_FILE))
|
2015-03-05 09:29:36 +00:00
|
|
|
$(JAVADOC_CMD_SMALL) -d $(@D) \
|
2013-10-10 12:58:19 +00:00
|
|
|
@$(TREEAPI_OPTIONS_FILE) @$(TREEAPI_PACKAGES_FILE)
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# Create file with javadoc options in it
|
|
|
|
$(TREEAPI_OPTIONS_FILE):
|
|
|
|
$(prep-target)
|
2014-07-22 04:34:29 +00:00
|
|
|
@($(call COMMON_JAVADOCFLAGS) ; \
|
|
|
|
$(call COMMON_JAVADOCTAGS) ; \
|
2014-06-30 21:27:37 +00:00
|
|
|
$(call OptionOnly,-Xdoclint:all) ; \
|
2016-03-17 19:03:53 +00:00
|
|
|
$(call OptionPair,-system,none) ; \
|
|
|
|
$(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
|
|
|
|
$(call OptionPair,-addmods,$(TREEAPI_MODULES)) ; \
|
2013-10-10 12:58:19 +00:00
|
|
|
$(call OptionPair,-encoding,ascii) ; \
|
|
|
|
$(call OptionPair,-doctitle,$(TREEAPI_DOCTITLE)) ; \
|
|
|
|
$(call OptionPair,-windowtitle,$(TREEAPI_WINDOWTITLE) $(DRAFT_WINTITLE)); \
|
|
|
|
$(call OptionPair,-header,$(TREEAPI_HEADER)$(DRAFT_HEADER)) ; \
|
|
|
|
$(call OptionPair,-bottom,$(TREEAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
|
2012-09-18 18:29:16 +00:00
|
|
|
$(call OptionTrip,-group,$(TREEAPI_GROUPNAME),$(TREEAPI_REGEXP)); \
|
|
|
|
$(call OptionTrip,-linkoffline,$(TREEAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
|
2013-10-10 12:58:19 +00:00
|
|
|
) >> $@
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# Create a file with the package names in it
|
2014-04-23 12:23:50 +00:00
|
|
|
$(TREEAPI_PACKAGES_FILE): $(call PackageDependencies,$(TREEAPI_PKGS))
|
2012-09-18 18:29:16 +00:00
|
|
|
$(prep-target)
|
|
|
|
$(call PackageFilter,$(TREEAPI_PKGS))
|
|
|
|
|
|
|
|
#############################################################
|
2014-11-28 13:01:05 +00:00
|
|
|
#
|
|
|
|
# nashornapidocs
|
|
|
|
#
|
|
|
|
|
|
|
|
ALL_OTHER_TARGETS += nashornapidocs
|
|
|
|
|
|
|
|
NASHORNAPI_DOCDIR := $(JDK_API_DOCSDIR)/nashorn
|
|
|
|
NASHORNAPI2COREAPI := ../$(JDKJRE2COREAPI)
|
|
|
|
NASHORNAPI_DOCTITLE := Nashorn API
|
|
|
|
NASHORNAPI_WINDOWTITLE := Nashorn API
|
|
|
|
NASHORNAPI_HEADER := <strong>Nashorn API</strong>
|
|
|
|
NASHORNAPI_BOTTOM := $(call CommonBottom,$(NASHORNAPI_FIRST_COPYRIGHT_YEAR))
|
|
|
|
NASHORNAPI_GROUPNAME := Packages
|
2015-05-11 11:09:31 +00:00
|
|
|
NASHORNAPI_REGEXP := jdk.nashorn.api.*
|
2014-11-28 13:01:05 +00:00
|
|
|
# NASHORNAPI_PKGS is located in NON_CORE_PKGS.gmk
|
|
|
|
|
|
|
|
NASHORNAPI_INDEX_HTML = $(NASHORNAPI_DOCDIR)/index.html
|
|
|
|
NASHORNAPI_OPTIONS_FILE = $(DOCSTMPDIR)/nashornapi.options
|
|
|
|
NASHORNAPI_PACKAGES_FILE = $(DOCSTMPDIR)/nashornapi.packages
|
|
|
|
|
2016-03-17 19:03:53 +00:00
|
|
|
# The modules required to be documented
|
|
|
|
NASHORNAPI_MODULES = jdk.scripting.nashorn
|
|
|
|
|
2014-11-28 13:01:05 +00:00
|
|
|
nashornapidocs: $(NASHORNAPI_INDEX_HTML)
|
|
|
|
|
|
|
|
# Set relative location to core api document root
|
|
|
|
$(NASHORNAPI_INDEX_HTML): GET2DOCSDIR=$(NASHORNAPI2COREAPI)/..
|
|
|
|
|
|
|
|
# Run javadoc if the index file is out of date or missing
|
|
|
|
$(NASHORNAPI_INDEX_HTML): $(NASHORNAPI_OPTIONS_FILE) $(NASHORNAPI_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
|
|
|
|
$(prep-javadoc)
|
|
|
|
$(call JavadocSummary,$(NASHORNAPI_OPTIONS_FILE),$(NASHORNAPI_PACKAGES_FILE))
|
2015-03-05 09:29:36 +00:00
|
|
|
$(JAVADOC_CMD_SMALL) -d $(@D) \
|
2014-11-28 13:01:05 +00:00
|
|
|
@$(NASHORNAPI_OPTIONS_FILE) @$(NASHORNAPI_PACKAGES_FILE)
|
|
|
|
|
|
|
|
# Create file with javadoc options in it
|
|
|
|
$(NASHORNAPI_OPTIONS_FILE):
|
|
|
|
$(prep-target)
|
|
|
|
@($(call COMMON_JAVADOCFLAGS) ; \
|
|
|
|
$(call COMMON_JAVADOCTAGS) ; \
|
|
|
|
$(call OptionOnly,-Xdoclint:all) ; \
|
2016-03-17 19:03:53 +00:00
|
|
|
$(call OptionPair,-system,none) ; \
|
|
|
|
$(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
|
|
|
|
$(call OptionPair,-addmods,$(NASHORNAPI_MODULES)) ; \
|
2014-11-28 13:01:05 +00:00
|
|
|
$(call OptionPair,-encoding,ascii) ; \
|
|
|
|
$(call OptionPair,-doctitle,$(NASHORNAPI_DOCTITLE)) ; \
|
|
|
|
$(call OptionPair,-windowtitle,$(NASHORNAPI_WINDOWTITLE) $(DRAFT_WINTITLE)); \
|
|
|
|
$(call OptionPair,-header,$(NASHORNAPI_HEADER)$(DRAFT_HEADER)) ; \
|
|
|
|
$(call OptionPair,-bottom,$(NASHORNAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
|
|
|
|
$(call OptionTrip,-group,$(NASHORNAPI_GROUPNAME),$(NASHORNAPI_REGEXP)); \
|
|
|
|
$(call OptionTrip,-linkoffline,$(NASHORNAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
|
|
|
|
) >> $@
|
|
|
|
|
|
|
|
# Create a file with the package names in it
|
|
|
|
$(NASHORNAPI_PACKAGES_FILE): $(call PackageDependencies,$(NASHORNAPI_PKGS))
|
|
|
|
$(prep-target)
|
|
|
|
$(call PackageFilter,$(NASHORNAPI_PKGS))
|
|
|
|
|
2016-01-29 18:55:53 +00:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# dynalinkapidocs
|
|
|
|
#
|
|
|
|
|
|
|
|
ALL_OTHER_TARGETS += dynalinkapidocs
|
|
|
|
|
|
|
|
DYNALINKAPI_DOCDIR := $(JDK_API_DOCSDIR)/dynalink
|
|
|
|
DYNALINKAPI2COREAPI := ../$(JDKJRE2COREAPI)
|
|
|
|
DYNALINKAPI_DOCTITLE := Dynalink API
|
|
|
|
DYNALINKAPI_WINDOWTITLE := Dynalink API
|
|
|
|
DYNALINKAPI_HEADER := <strong>Dynalink API</strong>
|
|
|
|
DYNALINKAPI_BOTTOM := $(call CommonBottom,$(DYNALINKAPI_FIRST_COPYRIGHT_YEAR))
|
|
|
|
DYNALINKAPI_GROUPNAME := Packages
|
|
|
|
DYNALINKAPI_REGEXP := jdk.dynalink.*
|
|
|
|
# DYNALINKAPI_PKGS is located in NON_CORE_PKGS.gmk
|
|
|
|
|
|
|
|
DYNALINKAPI_INDEX_HTML = $(DYNALINKAPI_DOCDIR)/index.html
|
|
|
|
DYNALINKAPI_OPTIONS_FILE = $(DOCSTMPDIR)/dynalinkapi.options
|
|
|
|
DYNALINKAPI_PACKAGES_FILE = $(DOCSTMPDIR)/dynalinkapi.packages
|
|
|
|
|
2016-03-17 19:03:53 +00:00
|
|
|
# The modules required to be documented
|
|
|
|
DYNALINKAPI_MODULES = jdk.dynalink
|
|
|
|
|
2016-01-29 18:55:53 +00:00
|
|
|
dynalinkapidocs: $(DYNALINKAPI_INDEX_HTML)
|
|
|
|
|
|
|
|
# Set relative location to core api document root
|
|
|
|
$(DYNALINKAPI_INDEX_HTML): GET2DOCSDIR=$(DYNALINKAPI2COREAPI)/..
|
|
|
|
|
|
|
|
# Run javadoc if the index file is out of date or missing
|
|
|
|
$(DYNALINKAPI_INDEX_HTML): $(DYNALINKAPI_OPTIONS_FILE) $(DYNALINKAPI_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
|
|
|
|
$(prep-javadoc)
|
|
|
|
$(call JavadocSummary,$(DYNALINKAPI_OPTIONS_FILE),$(DYNALINKAPI_PACKAGES_FILE))
|
|
|
|
$(JAVADOC_CMD_SMALL) -d $(@D) \
|
|
|
|
@$(DYNALINKAPI_OPTIONS_FILE) @$(DYNALINKAPI_PACKAGES_FILE)
|
|
|
|
|
|
|
|
# Create file with javadoc options in it
|
|
|
|
$(DYNALINKAPI_OPTIONS_FILE):
|
|
|
|
$(prep-target)
|
|
|
|
@($(call COMMON_JAVADOCFLAGS) ; \
|
|
|
|
$(call COMMON_JAVADOCTAGS) ; \
|
|
|
|
$(call OptionOnly,-Xdoclint:all) ; \
|
2016-03-17 19:03:53 +00:00
|
|
|
$(call OptionPair,-system,none) ; \
|
|
|
|
$(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
|
|
|
|
$(call OptionPair,-addmods,$(DYNALINKAPI_MODULES)) ; \
|
2016-01-29 18:55:53 +00:00
|
|
|
$(call OptionPair,-encoding,ascii) ; \
|
|
|
|
$(call OptionPair,-doctitle,$(DYNALINKAPI_DOCTITLE)) ; \
|
|
|
|
$(call OptionPair,-windowtitle,$(DYNALINKAPI_WINDOWTITLE) $(DRAFT_WINTITLE)); \
|
|
|
|
$(call OptionPair,-header,$(DYNALINKAPI_HEADER)$(DRAFT_HEADER)) ; \
|
|
|
|
$(call OptionPair,-bottom,$(DYNALINKAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
|
|
|
|
$(call OptionTrip,-linkoffline,$(DYNALINKAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
|
|
|
|
) >> $@
|
|
|
|
|
|
|
|
# Create a file with the package names in it
|
|
|
|
$(DYNALINKAPI_PACKAGES_FILE): $(call PackageDependencies,$(DYNALINKAPI_PKGS))
|
|
|
|
$(prep-target)
|
|
|
|
$(call PackageFilter,$(DYNALINKAPI_PKGS))
|
|
|
|
|
2014-11-28 13:01:05 +00:00
|
|
|
#############################################################
|
2012-09-18 18:29:16 +00:00
|
|
|
#
|
|
|
|
# sctpdocs
|
|
|
|
#
|
|
|
|
|
|
|
|
ALL_OTHER_TARGETS += sctpdocs
|
|
|
|
|
2013-10-10 12:58:19 +00:00
|
|
|
SCTPAPI_DOCDIR := $(JRE_API_DOCSDIR)/nio/sctp/spec
|
|
|
|
SCTPAPI2COREAPI := ../../../$(JDKJRE2COREAPI)
|
|
|
|
SCTPAPI_DOCTITLE := SCTP API
|
2012-09-18 18:29:16 +00:00
|
|
|
SCTPAPI_WINDOWTITLE := SCTP API
|
2013-10-10 12:58:19 +00:00
|
|
|
SCTPAPI_HEADER := <strong>SCTP API</strong>
|
|
|
|
SCTPAPI_BOTTOM := $(call CommonBottom,$(SCTPAPI_FIRST_COPYRIGHT_YEAR))
|
2012-09-18 18:29:16 +00:00
|
|
|
# SCTPAPI_PKGS is located in NON_CORE_PKGS.gmk
|
|
|
|
|
2013-10-10 12:58:19 +00:00
|
|
|
SCTPAPI_INDEX_HTML = $(SCTPAPI_DOCDIR)/index.html
|
|
|
|
SCTPAPI_OPTIONS_FILE = $(DOCSTMPDIR)/sctp.options
|
2012-09-18 18:29:16 +00:00
|
|
|
SCTPAPI_PACKAGES_FILE = $(DOCSTMPDIR)/sctp.packages
|
|
|
|
|
2016-03-17 19:03:53 +00:00
|
|
|
# The modules required to be documented
|
|
|
|
SCTPAPI_MODULES = jdk.sctp
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
sctpdocs: $(SCTPAPI_INDEX_HTML)
|
|
|
|
|
|
|
|
# Set relative location to core api document root
|
|
|
|
$(SCTPAPI_INDEX_HTML): GET2DOCSDIR=$(SCTPAPI2COREAPI)/..
|
|
|
|
|
|
|
|
# Run javadoc if the index file is out of date or missing
|
2014-04-23 12:23:50 +00:00
|
|
|
$(SCTPAPI_INDEX_HTML): $(SCTPAPI_OPTIONS_FILE) $(SCTPAPI_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
|
2012-09-18 18:29:16 +00:00
|
|
|
$(prep-javadoc)
|
|
|
|
$(call JavadocSummary,$(SCTPAPI_OPTIONS_FILE),$(SCTPAPI_PACKAGES_FILE))
|
2015-03-05 09:29:36 +00:00
|
|
|
$(JAVADOC_CMD_SMALL) -d $(@D) \
|
2013-10-10 12:58:19 +00:00
|
|
|
@$(SCTPAPI_OPTIONS_FILE) @$(SCTPAPI_PACKAGES_FILE)
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# Create file with javadoc options in it
|
|
|
|
$(SCTPAPI_OPTIONS_FILE):
|
|
|
|
$(prep-target)
|
2014-07-22 04:34:29 +00:00
|
|
|
@($(call COMMON_JAVADOCFLAGS) ; \
|
|
|
|
$(call COMMON_JAVADOCTAGS) ; \
|
2014-01-03 17:37:34 +00:00
|
|
|
$(call OptionOnly,-Xdoclint:none) ; \
|
2016-03-17 19:03:53 +00:00
|
|
|
$(call OptionPair,-system,none) ; \
|
|
|
|
$(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
|
|
|
|
$(call OptionPair,-addmods,$(SCTPAPI_MODULES)) ; \
|
2013-10-10 12:58:19 +00:00
|
|
|
$(call OptionPair,-encoding,ascii) ; \
|
|
|
|
$(call OptionOnly,-nodeprecatedlist) ; \
|
|
|
|
$(call OptionPair,-doctitle,$(SCTPAPI_DOCTITLE)) ; \
|
|
|
|
$(call OptionPair,-windowtitle,$(SCTPAPI_WINDOWTITLE) $(DRAFT_WINTITLE)); \
|
|
|
|
$(call OptionPair,-header,$(SCTPAPI_HEADER)$(DRAFT_HEADER)) ; \
|
|
|
|
$(call OptionPair,-bottom,$(SCTPAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
|
2012-09-18 18:29:16 +00:00
|
|
|
$(call OptionTrip,-linkoffline,$(SCTPAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
|
2013-10-10 12:58:19 +00:00
|
|
|
) >> $@
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# Create a file with the package names in it
|
2014-04-23 12:23:50 +00:00
|
|
|
$(SCTPAPI_PACKAGES_FILE): $(call PackageDependencies,$(SCTPAPI_PKGS))
|
2012-09-18 18:29:16 +00:00
|
|
|
$(prep-target)
|
|
|
|
$(call PackageFilter,$(SCTPAPI_PKGS))
|
|
|
|
|
2015-03-27 20:48:08 +00:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# jaccessdocs - Java Accessibility Utilities
|
|
|
|
#
|
|
|
|
|
|
|
|
ALL_OTHER_TARGETS += jaccessdocs
|
|
|
|
|
|
|
|
JACCESSAPI_DOCDIR := $(JRE_API_DOCSDIR)/accessibility/jaccess/spec
|
|
|
|
JACCESSAPI2COREAPI := ../../../$(JDKJRE2COREAPI)
|
|
|
|
JACCESSAPI_DOCTITLE := JACCESS API
|
|
|
|
JACCESSAPI_WINDOWTITLE := JACCESS API
|
|
|
|
JACCESSAPI_HEADER := <strong>JACCESS API</strong>
|
|
|
|
JACCESSAPI_BOTTOM := $(call CommonBottom,$(JACCESSAPI_FIRST_COPYRIGHT_YEAR))
|
|
|
|
# JACCESSAPI_PKGS is located in NON_CORE_PKGS.gmk
|
|
|
|
|
|
|
|
JACCESSAPI_INDEX_HTML = $(JACCESSAPI_DOCDIR)/index.html
|
|
|
|
JACCESSAPI_OPTIONS_FILE = $(DOCSTMPDIR)/jaccess.options
|
|
|
|
JACCESSAPI_PACKAGES_FILE = $(DOCSTMPDIR)/jaccess.packages
|
|
|
|
|
2016-03-17 19:03:53 +00:00
|
|
|
# The modules required to be documented
|
|
|
|
JACCESSAPI_MODULES = jdk.accessibility
|
|
|
|
|
2015-03-27 20:48:08 +00:00
|
|
|
jaccessdocs: $(JACCESSAPI_INDEX_HTML)
|
|
|
|
|
|
|
|
# Set relative location to core api document root
|
|
|
|
$(JACCESSAPI_INDEX_HTML): GET2DOCSDIR=$(JACCESSAPI2COREAPI)/..
|
|
|
|
|
|
|
|
# Run javadoc if the index file is out of date or missing
|
|
|
|
$(JACCESSAPI_INDEX_HTML): $(JACCESSAPI_OPTIONS_FILE) $(JACCESSAPI_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
|
|
|
|
$(prep-javadoc)
|
|
|
|
$(call JavadocSummary,$(JACCESSAPI_OPTIONS_FILE),$(JACCESSAPI_PACKAGES_FILE))
|
|
|
|
$(JAVADOC_CMD) -d $(@D) \
|
|
|
|
@$(JACCESSAPI_OPTIONS_FILE) @$(JACCESSAPI_PACKAGES_FILE)
|
|
|
|
|
|
|
|
# Create file with javadoc options in it
|
|
|
|
$(JACCESSAPI_OPTIONS_FILE):
|
|
|
|
$(prep-target)
|
|
|
|
@($(call COMMON_JAVADOCFLAGS) ; \
|
|
|
|
$(call COMMON_JAVADOCTAGS) ; \
|
|
|
|
$(call OptionOnly,-Xdoclint:all) ; \
|
2016-03-17 19:03:53 +00:00
|
|
|
$(call OptionPair,-system,none) ; \
|
|
|
|
$(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
|
|
|
|
$(call OptionPair,-addmods,$(JACCESSAPI_MODULES)) ; \
|
2015-03-27 20:48:08 +00:00
|
|
|
$(call OptionPair,-encoding,ascii) ; \
|
|
|
|
$(call OptionOnly,-nodeprecatedlist) ; \
|
|
|
|
$(call OptionPair,-doctitle,$(JACCESSAPI_DOCTITLE)) ; \
|
|
|
|
$(call OptionPair,-windowtitle,$(JACCESSAPI_WINDOWTITLE) $(DRAFT_WINTITLE)); \
|
|
|
|
$(call OptionPair,-header,$(JACCESSAPI_HEADER)$(DRAFT_HEADER)) ; \
|
|
|
|
$(call OptionPair,-bottom,$(JACCESSAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
|
|
|
|
$(call OptionTrip,-linkoffline,$(JACCESSAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
|
|
|
|
) >> $@
|
|
|
|
|
|
|
|
# Create a file with the package names in it
|
|
|
|
$(JACCESSAPI_PACKAGES_FILE): $(call PackageDependencies,$(JACCESSAPI_PKGS))
|
|
|
|
$(prep-target)
|
|
|
|
$(call PackageFilter,$(JACCESSAPI_PKGS))
|
|
|
|
|
2014-04-12 19:05:42 +00:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# jdk.net docs
|
|
|
|
#
|
|
|
|
|
|
|
|
ALL_OTHER_TARGETS += jdknetdocs
|
|
|
|
|
|
|
|
JDKNET_DOCDIR := $(JRE_API_DOCSDIR)/net/socketoptions/spec
|
|
|
|
JDKNET2COREAPI := ../../../$(JDKJRE2COREAPI)
|
|
|
|
JDKNET_DOCTITLE := jdk.net API
|
|
|
|
JDKNET_WINDOWTITLE := jdk.net API
|
|
|
|
JDKNET_HEADER := <strong>jdk.net API</strong>
|
|
|
|
JDKNET_BOTTOM := $(call CommonBottom,$(JDKNET_FIRST_COPYRIGHT_YEAR))
|
|
|
|
JDKNET_PKGS := jdk.net
|
|
|
|
|
|
|
|
JDKNET_INDEX_HTML = $(JDKNET_DOCDIR)/index.html
|
|
|
|
JDKNET_OPTIONS_FILE = $(DOCSTMPDIR)/jdknet.options
|
|
|
|
JDKNET_PACKAGES_FILE = $(DOCSTMPDIR)/jdknet.packages
|
|
|
|
|
2016-03-17 19:03:53 +00:00
|
|
|
# The modules required to be documented
|
2016-04-27 19:35:23 +00:00
|
|
|
JDKNET_MODULES = jdk.net
|
2016-03-17 19:03:53 +00:00
|
|
|
|
2014-04-12 19:05:42 +00:00
|
|
|
jdknetdocs: $(JDKNET_INDEX_HTML)
|
|
|
|
|
|
|
|
# Set relative location to core api document root
|
|
|
|
$(JDKNET_INDEX_HTML): GET2DOCSDIR=$(JDKNET2COREAPI)/..
|
|
|
|
|
|
|
|
# Run javadoc if the index file is out of date or missing
|
2014-04-23 12:23:50 +00:00
|
|
|
$(JDKNET_INDEX_HTML): $(JDKNET_OPTIONS_FILE) $(JDKNET_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
|
2014-04-12 19:05:42 +00:00
|
|
|
$(prep-javadoc)
|
|
|
|
$(call JavadocSummary,$(JDKNET_OPTIONS_FILE),$(JDKNET_PACKAGES_FILE))
|
2015-03-05 09:29:36 +00:00
|
|
|
$(JAVADOC_CMD_SMALL) -d $(@D) \
|
2014-04-12 19:05:42 +00:00
|
|
|
@$(JDKNET_OPTIONS_FILE) @$(JDKNET_PACKAGES_FILE)
|
|
|
|
|
|
|
|
# Create file with javadoc options in it
|
|
|
|
$(JDKNET_OPTIONS_FILE):
|
|
|
|
$(prep-target)
|
2014-07-22 04:34:29 +00:00
|
|
|
@($(call COMMON_JAVADOCFLAGS) ; \
|
|
|
|
$(call COMMON_JAVADOCTAGS) ; \
|
2014-04-12 19:05:42 +00:00
|
|
|
$(call OptionOnly,-Xdoclint:none) ; \
|
2016-03-17 19:03:53 +00:00
|
|
|
$(call OptionPair,-system,none) ; \
|
|
|
|
$(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
|
|
|
|
$(call OptionPair,-addmods,$(JDKNET_MODULES)) ; \
|
2014-04-12 19:05:42 +00:00
|
|
|
$(call OptionPair,-encoding,ascii) ; \
|
|
|
|
$(call OptionOnly,-nodeprecatedlist) ; \
|
|
|
|
$(call OptionPair,-doctitle,$(JDKNET_DOCTITLE)) ; \
|
|
|
|
$(call OptionPair,-windowtitle,$(JDKNET_WINDOWTITLE) $(DRAFT_WINTITLE)); \
|
|
|
|
$(call OptionPair,-header,$(JDKNET_HEADER)$(DRAFT_HEADER)); \
|
|
|
|
$(call OptionPair,-bottom,$(JDKNET_BOTTOM)$(DRAFT_BOTTOM)); \
|
|
|
|
$(call OptionTrip,-linkoffline,$(JDKNET2COREAPI),$(COREAPI_DOCSDIR)/); \
|
|
|
|
) >> $@
|
|
|
|
|
|
|
|
# Create a file with the package names in it
|
2014-04-23 12:23:50 +00:00
|
|
|
$(JDKNET_PACKAGES_FILE): $(call PackageDependencies,$(JDKNET_PKGS))
|
2014-04-12 19:05:42 +00:00
|
|
|
$(prep-target)
|
|
|
|
$(call PackageFilter,$(JDKNET_PKGS))
|
|
|
|
|
2016-03-17 19:03:53 +00:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# jlink plugin API docs
|
|
|
|
#
|
|
|
|
# TODO: Need to decide when the plugin API is ready to publish as experimental API.
|
|
|
|
# This target is temporarily added for internal use for now.
|
|
|
|
#
|
|
|
|
|
|
|
|
ALL_OTHER_TARGETS += jlinkdocs
|
|
|
|
|
|
|
|
JLINK_PLUGIN_FIRST_COPYRIGHT_YEAR = 2015
|
|
|
|
JLINK_PLUGIN_DOCDIR := $(JDK_API_DOCSDIR)/jlink
|
|
|
|
JLINK_PLUGIN2COREAPI := ../$(JDKJRE2COREAPI)
|
|
|
|
JLINK_PLUGIN_DOCTITLE := JLink Plugin API - EXPERIMENTAL
|
|
|
|
JLINK_PLUGIN_WINDOWTITLE := JLink Plugin API - EXPERIMENTAL
|
|
|
|
JLINK_PLUGIN_HEADER := <strong>JLink Plugin API - EXPERIMENTAL</strong>
|
|
|
|
JLINK_PLUGIN_BOTTOM := $(call CommonBottom,$(JLINK_PLUGIN_FIRST_COPYRIGHT_YEAR))
|
2016-05-16 09:20:43 +00:00
|
|
|
JLINK_PLUGIN_PKGS = jdk.tools.jlink.plugin
|
2016-03-17 19:03:53 +00:00
|
|
|
|
|
|
|
JLINK_PLUGIN_INDEX_HTML = $(JLINK_PLUGIN_DOCDIR)/index.html
|
|
|
|
JLINK_PLUGIN_OPTIONS_FILE = $(DOCSTMPDIR)/jlinkplugins.options
|
|
|
|
JLINK_PLUGIN_PACKAGES_FILE = $(DOCSTMPDIR)/jlinkplugins.packages
|
|
|
|
|
|
|
|
# The modules required to be documented
|
|
|
|
JLINK_PLUGIN_MODULES = jdk.jlink
|
|
|
|
|
|
|
|
jlinkdocs: $(JLINK_PLUGIN_INDEX_HTML)
|
|
|
|
|
|
|
|
# Set relative location to core api document root
|
|
|
|
$(JLINK_PLUGIN_INDEX_HTML): GET2DOCSDIR=$(JLINK_PLUGIN2COREAPI)/..
|
|
|
|
|
|
|
|
# Run javadoc if the index file is out of date or missing
|
|
|
|
$(JLINK_PLUGIN_INDEX_HTML): $(JLINK_PLUGIN_OPTIONS_FILE) $(JLINK_PLUGIN_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
|
|
|
|
$(prep-javadoc)
|
|
|
|
$(call JavadocSummary,$(JLINK_PLUGIN_OPTIONS_FILE),$(JLINK_PLUGIN_PACKAGES_FILE))
|
|
|
|
$(JAVADOC_CMD_SMALL) -d $(@D) \
|
|
|
|
@$(JLINK_PLUGIN_OPTIONS_FILE) @$(JLINK_PLUGIN_PACKAGES_FILE)
|
|
|
|
|
|
|
|
# Create file with javadoc options in it
|
|
|
|
$(JLINK_PLUGIN_OPTIONS_FILE):
|
|
|
|
$(prep-target)
|
|
|
|
@($(call COMMON_JAVADOCFLAGS) ; \
|
|
|
|
$(call COMMON_JAVADOCTAGS) ; \
|
|
|
|
$(call OptionOnly,-Xdoclint:none) ; \
|
|
|
|
$(call OptionPair,-system,none) ; \
|
|
|
|
$(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
|
|
|
|
$(call OptionPair,-addmods,$(JLINK_PLUGIN_MODULES)) ; \
|
|
|
|
$(call OptionPair,-encoding,ascii) ; \
|
|
|
|
$(call OptionOnly,-nodeprecatedlist) ; \
|
|
|
|
$(call OptionPair,-doctitle,$(JLINK_PLUGIN_DOCTITLE)) ; \
|
|
|
|
$(call OptionPair,-windowtitle,$(JLINK_PLUGIN_WINDOWTITLE) $(DRAFT_WINTITLE)); \
|
|
|
|
$(call OptionPair,-header,$(JLINK_PLUGIN_HEADER)$(DRAFT_HEADER)); \
|
|
|
|
$(call OptionPair,-bottom,$(JLINK_PLUGIN_BOTTOM)$(DRAFT_BOTTOM)); \
|
|
|
|
$(call OptionTrip,-linkoffline,$(JLINK_PLUGIN2COREAPI),$(COREAPI_DOCSDIR)/); \
|
|
|
|
) >> $@
|
|
|
|
|
|
|
|
# Create a file with the package names in it
|
|
|
|
$(JLINK_PLUGIN_PACKAGES_FILE): $(call PackageDependencies,$(JLINK_PLUGIN_PKGS))
|
|
|
|
$(prep-target)
|
|
|
|
$(call PackageFilter,$(JLINK_PLUGIN_PKGS))
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
otherdocs: $(ALL_OTHER_TARGETS)
|
|
|
|
|
2016-04-15 12:57:53 +00:00
|
|
|
#
|
|
|
|
# Add the core docs as prerequisite to the archive to trigger a rebuild
|
|
|
|
# if the core docs were rebuilt. Ideally any doc rebuild should trigger
|
|
|
|
# this, but the way prerequisites are currently setup in this file, that
|
|
|
|
# is hard to achieve.
|
|
|
|
#
|
|
|
|
|
|
|
|
$(JAVADOC_ARCHIVE): $(COREAPI_INDEX_FILE)
|
|
|
|
$(call LogInfo, Compressing javadoc to single $(JAVADOC_ARCHIVE_NAME))
|
|
|
|
$(MKDIR) -p $(JAVADOC_ARCHIVE_DIR)
|
|
|
|
$(RM) -r $(JAVADOC_ARCHIVE_ASSEMBLY_DIR)
|
|
|
|
$(MKDIR) -p $(JAVADOC_ARCHIVE_ASSEMBLY_DIR)
|
|
|
|
all_roots=`$(FIND) $(DOCSDIR) | $(GREP) index.html | grep -v old/doclet`; \
|
|
|
|
pushd $(JAVADOC_ARCHIVE_ASSEMBLY_DIR); \
|
|
|
|
for index_file in $${all_roots} ; do \
|
|
|
|
target_dir=`dirname $${index_file}`; \
|
|
|
|
name=`$(ECHO) $${target_dir} | $(SED) "s;/spec;;" | $(SED) "s;.*/;;"`; \
|
|
|
|
$(LN) -s $${target_dir} $${name}; \
|
|
|
|
done; \
|
|
|
|
$(ZIP) -q -r $(JAVADOC_ARCHIVE) * ; \
|
|
|
|
popd ;
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
#############################################################
|
2015-06-10 22:21:56 +00:00
|
|
|
.PHONY: all docs coredocs otherdocs \
|
2016-04-15 12:57:53 +00:00
|
|
|
$(ALL_OTHER_TARGETS) zip-docs
|