make/Javadoc.gmk
author chegar
Sat, 09 Apr 2016 19:49:32 +0100
changeset 36793 8b116f192318
parent 36792 09d2e1165981
child 37034 b63fd4af003e
permissions -rw-r--r--
8153737: Unsupported Module Reviewed-by: alanb, mchung, psandoz
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
     1
# Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     2
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     3
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     4
# This code is free software; you can redistribute it and/or modify it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     5
# under the terms of the GNU General Public License version 2 only, as
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     6
# published by the Free Software Foundation.  Oracle designates this
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     7
# particular file as subject to the "Classpath" exception as provided
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     8
# by Oracle in the LICENSE file that accompanied this code.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
     9
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    10
# This code is distributed in the hope that it will be useful, but WITHOUT
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    11
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    12
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    13
# version 2 for more details (a copy is included in the LICENSE file that
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    14
# accompanied this code).
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    15
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    16
# You should have received a copy of the GNU General Public License version
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    17
# 2 along with this work; if not, write to the Free Software Foundation,
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    18
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    19
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    20
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    21
# or visit www.oracle.com if you need additional information or have any
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    22
# questions.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    23
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    24
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    25
include $(SPEC)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    26
include MakeBase.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    27
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
    28
#################################################################
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
    29
#
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
    30
# CORE_PKGS environment variable has been moved to the following file
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
    31
#
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
    32
include CORE_PKGS.gmk
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
    33
#
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
    34
# Load environment variables for API package names that are not part of
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
    35
# the Java SE platform
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
    36
#
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
    37
include NON_CORE_PKGS.gmk
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
    38
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
    39
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    40
.SUFFIXES: # Delete the default suffixes
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    41
.SUFFIXES: .java
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    42
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    43
#
25854
98ce0879ab4c 8054834: Modular Source Code
chegar
parents: 25614
diff changeset
    44
# Definitions for directories
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    45
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    46
27560
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents: 27328
diff changeset
    47
DOCSDIR := $(IMAGES_OUTPUTDIR)/docs
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents: 27328
diff changeset
    48
DOCSTMPDIR = $(SUPPORT_OUTPUTDIR)/docs
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    49
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    50
HOTSPOT_DOCS_IMPORT_PATH=$(HOTSPOT_OUTPUTDIR)/docs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    51
15393
e3761cf4e010 8006872: Stop creating four jars with identical content in the new build system.
ohrstrom
parents: 15172
diff changeset
    52
JAVADOC_CMD = $(JAVA) \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    53
    -Djava.awt.headless=true \
28010
2d111f17cbb4 8067829: Remove setting -bootclasspath $(JDK_OUTPUTDIR)/classes from Javadoc.gmk
mchung
parents: 28007
diff changeset
    54
    $(NEW_JAVADOC)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    55
29176
45baf3cdc876 8074395: Random build failures in javadoc on Solaris
erikj
parents: 28010
diff changeset
    56
JAVADOC_CMD_SMALL = $(JAVA_SMALL) \
45baf3cdc876 8074395: Random build failures in javadoc on Solaris
erikj
parents: 28010
diff changeset
    57
    -Djava.awt.headless=true \
45baf3cdc876 8074395: Random build failures in javadoc on Solaris
erikj
parents: 28010
diff changeset
    58
    $(NEW_JAVADOC)
45baf3cdc876 8074395: Random build failures in javadoc on Solaris
erikj
parents: 28010
diff changeset
    59
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    60
# Copyright year for beginning of Java and some of the apis
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    61
# (Needed when creating the javadocs)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    62
FIRST_COPYRIGHT_YEAR = 1993
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    63
DOMAPI_FIRST_COPYRIGHT_YEAR = 2005
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    64
MIRROR_FIRST_COPYRIGHT_YEAR = 2004
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    65
DOCLETAPI_FIRST_COPYRIGHT_YEAR = 1993
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    66
TAGLETAPI_FIRST_COPYRIGHT_YEAR = 1993
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    67
JDI_FIRST_COPYRIGHT_YEAR = 1999
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    68
JAAS_FIRST_COPYRIGHT_YEAR = 1998
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    69
JGSS_FIRST_COPYRIGHT_YEAR = 2000
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    70
SMARTCARDIO_FIRST_COPYRIGHT_YEAR = 2005
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    71
HTTPSERVER_FIRST_COPYRIGHT_YEAR = 2005
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    72
MGMT_FIRST_COPYRIGHT_YEAR = 2003
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    73
ATTACH_FIRST_COPYRIGHT_YEAR = 2005
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    74
JCONSOLE_FIRST_COPYRIGHT_YEAR = 2006
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    75
SCTPAPI_FIRST_COPYRIGHT_YEAR = 2009
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    76
TRACING_FIRST_COPYRIGHT_YEAR = 2008
36792
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
    77
JSHELLAPI_FIRST_COPYRIGHT_YEAR = 2015
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    78
TREEAPI_FIRST_COPYRIGHT_YEAR = 2005
27596
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
    79
NASHORNAPI_FIRST_COPYRIGHT_YEAR = 2014
35369
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
    80
DYNALINKAPI_FIRST_COPYRIGHT_YEAR = 2015
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    81
JNLP_FIRST_COPYRIGHT_YEAR = 1998
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    82
PLUGIN2_FIRST_COPYRIGHT_YEAR = 2007
23836
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
    83
JDKNET_FIRST_COPYRIGHT_YEAR = 2014
29851
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
    84
JACCESSAPI_FIRST_COPYRIGHT_YEAR = 2002
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
    85
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    86
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    87
# Oracle name
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    88
FULL_COMPANY_NAME = Oracle and/or its affiliates
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    89
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    90
# Copyright address
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    91
COMPANY_ADDRESS = 500 Oracle Parkway<br>Redwood Shores, CA 94065 USA.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    92
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    93
# The trademark symbol
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    94
TRADEMARK = &trade;
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    95
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    96
# Common copyright lines used
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    97
# The word "Copyright" might optionally be a link to the file cpyr.html.
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    98
# The first year of copyright may vary or not be available.
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
    99
# The address to the company might be optional.
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   100
COMMA:= ,
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   101
EMPTY:=
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   102
SPACE:=$(EMPTY) $(EMPTY)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   103
COPYRIGHT_SYMBOL = &\#x00a9;
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   104
# Macro to construct the copyright line
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   105
# (The GNU make 3.78.1 "if" conditional is broken, fixed in GNU make 3.81)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   106
define CopyrightLine # optionalurl optionalfirstyear optionaladdress
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   107
$(if $(strip $1),<a href="$(strip $1)">Copyright</a>,Copyright) \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   108
$(COPYRIGHT_SYMBOL) $(if $2,$2${COMMA},) $(COPYRIGHT_YEAR),\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   109
$(FULL_COMPANY_NAME). $3 All rights reserved.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   110
endef
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   111
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   112
# Url to root of documents
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   113
DOCSDIR_URL = {@docroot}/$(GET2DOCSDIR)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   114
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   115
# Url to copyright html file
24232
ddfae175a8d2 8042348: Copyright link in Javadoc page for Java SE 8
erikj
parents: 23986
diff changeset
   116
COPYRIGHT_URL = $(DOCSDIR_URL)/legal/cpyr.html
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   117
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   118
# Url to bug filing site
25043
b5598c2ddf6f 8048302: Update bug reporting URL in make/Javadoc.gmk
darcy
parents: 24232
diff changeset
   119
BUG_SUBMIT_URL = http://bugreport.java.com/bugreport/
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   120
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   121
# Common line for how to submit a bug or rfe
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   122
BUG_SUBMIT_LINE = <a href="$(BUG_SUBMIT_URL)">Submit a bug or feature</a>
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   123
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   124
# Url to devdocs page
33926
3a19edba4808 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30416
diff changeset
   125
DOCS_BASE_URL = http://docs.oracle.com/javase/$(VERSION_SPECIFICATION)/docs
3a19edba4808 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30416
diff changeset
   126
DEV_DOCS_URL = $(DOCS_BASE_URL)/index.html
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   127
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   128
# Common Java trademark line
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   129
JAVA_TRADEMARK_LINE = Java is a trademark or registered trademark of \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   130
$(FULL_COMPANY_NAME) in the US and other countries.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   131
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   132
#################################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   133
# Macros:
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   134
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   135
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   136
# List of all possible directories for javadoc to look for sources
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   137
# NOTE: Quotes are required around sourcepath argument only on Windows.
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   138
# Otherwise, you get "No packages or classes specified." due
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   139
# to $(PATH_SEP) being interpreted as an end of
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   140
# command (newline or shell ; character)
25854
98ce0879ab4c 8054834: Modular Source Code
chegar
parents: 25614
diff changeset
   141
ALL_SOURCE_DIRS := $(wildcard \
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   142
      $(SUPPORT_OUTPUTDIR)/gensrc/j* \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   143
      $(if $(IMPORT_MODULES_SRC), $(IMPORT_MODULES_SRC)/*) \
27586
e7cfdc266a70 8058631: Rename posix to unix in build system to match file name changes
ihse
parents: 27328
diff changeset
   144
      $(JDK_TOPDIR)/src/*/$(OPENJDK_TARGET_OS)/classes \
e7cfdc266a70 8058631: Rename posix to unix in build system to match file name changes
ihse
parents: 27328
diff changeset
   145
      $(JDK_TOPDIR)/src/*/$(OPENJDK_TARGET_OS_TYPE)/classes \
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   146
      $(JDK_TOPDIR)/src/*/share/classes \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   147
      $(HOTSPOT_TOPDIR)/src/*/share/classes \
25854
98ce0879ab4c 8054834: Modular Source Code
chegar
parents: 25614
diff changeset
   148
      $(LANGTOOLS_TOPDIR)/src/*/share/classes \
27596
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
   149
      $(NASHORN_TOPDIR)/src/*/share/classes \
25854
98ce0879ab4c 8054834: Modular Source Code
chegar
parents: 25614
diff changeset
   150
      $(CORBA_TOPDIR)/src/*/share/classes \
98ce0879ab4c 8054834: Modular Source Code
chegar
parents: 25614
diff changeset
   151
      $(JAXP_TOPDIR)/src/*/share/classes \
98ce0879ab4c 8054834: Modular Source Code
chegar
parents: 25614
diff changeset
   152
      $(JAXWS_TOPDIR)/src/*/share/classes \
27560
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents: 27328
diff changeset
   153
      $(SUPPORT_OUTPUTDIR)/rmic/j* \
25854
98ce0879ab4c 8054834: Modular Source Code
chegar
parents: 25614
diff changeset
   154
      $(JDK_TOPDIR)/src/*/share/doc/stub \
98ce0879ab4c 8054834: Modular Source Code
chegar
parents: 25614
diff changeset
   155
      ) \
98ce0879ab4c 8054834: Modular Source Code
chegar
parents: 25614
diff changeset
   156
      #
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   157
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   158
ALL_MODULE_SOURCE_DIRS := \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   159
      $(SUPPORT_OUTPUTDIR)/gensrc/* \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   160
      $(if $(IMPORT_MODULES_SRC), $(IMPORT_MODULES_SRC)/*) \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   161
      $(JDK_TOPDIR)/src/*/$(OPENJDK_TARGET_OS)/classes \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   162
      $(JDK_TOPDIR)/src/*/$(OPENJDK_TARGET_OS_TYPE)/classes \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   163
      $(JDK_TOPDIR)/src/*/share/classes \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   164
      $(HOTSPOT_TOPDIR)/src/*/share/classes \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   165
      $(LANGTOOLS_TOPDIR)/src/*/share/classes \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   166
      $(NASHORN_TOPDIR)/src/*/share/classes \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   167
      $(CORBA_TOPDIR)/src/*/share/classes \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   168
      $(JAXP_TOPDIR)/src/*/share/classes \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   169
      $(JAXWS_TOPDIR)/src/*/share/classes \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   170
      $(SUPPORT_OUTPUTDIR)/rmic/* \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   171
      $(JDK_TOPDIR)/src/*/share/doc/stub \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   172
      #
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   173
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   174
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   175
# List with classpath separator between them
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   176
EMPTY:=
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   177
SPACE:= $(EMPTY) $(EMPTY)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   178
RELEASEDOCS_SOURCEPATH = \
15052
eed28ee0dbd6 8005548: build-infra: Fix docs target on windows
erikj
parents: 14466
diff changeset
   179
    $(subst $(SPACE),$(PATH_SEP),$(strip $(ALL_SOURCE_DIRS)))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   180
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   181
RELEASEDOCS_MODULESOURCEPATH = \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   182
    $(subst $(SPACE),$(PATH_SEP),$(strip $(ALL_MODULE_SOURCE_DIRS)))
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   183
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   184
define prep-target
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   185
	$(MKDIR) -p $(@D)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   186
	$(RM) $@
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   187
endef
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   188
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   189
# Prep for javadoc creation, assumes $@ is an index.html file
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   190
define prep-javadoc
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   191
	@if [ -f "$@" -a "$?" != "" ] ; then \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   192
	  $(ECHO) "# Dependencies have changed: $?"; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   193
	fi
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   194
	$(RM) -r $(@D)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   195
	$(MKDIR) -p $(@D)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   196
endef
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   197
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   198
$(eval $(call FillCacheFind, $(ALL_SOURCE_DIRS)))
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   199
define PackageDependencies
25854
98ce0879ab4c 8054834: Modular Source Code
chegar
parents: 25614
diff changeset
   200
  $(call CacheFind, $(wildcard $(foreach p, $(subst .,/,$1), $(addsuffix /$p, $(ALL_SOURCE_DIRS)))))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   201
endef
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   202
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   203
# Given a list of packages, add packages that exist to $@, print summary
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   204
define PackageFilter # packages
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   205
	@if [ "$1" != "" ] ; then \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   206
	  for p in $1 ; do \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   207
	    pd=`$(ECHO) $${p} | $(SED) -e 's@[.]@/@g'`; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   208
	    found="false"; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   209
	    for cp in $(ALL_SOURCE_DIRS) ; do \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   210
	      if [ -d $${cp}/$${pd} ] ; then \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   211
	        $(ECHO) "$${p}" >> $@; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   212
	        found="true"; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   213
	        break; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   214
	      fi; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   215
	    done; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   216
	    if [ "$${found}" = "false" ] ; then \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   217
	      $(ECHO) "WARNING: Package not found: $${p}"; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   218
	    fi; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   219
	  done; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   220
	fi
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   221
endef
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   222
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   223
# Print out a summary of the javadoc command about to be run
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   224
define JavadocSummary # optionsfile packagesfile
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   225
	@$(ECHO) "# Running javadoc for $(patsubst $(OUTPUT_ROOT)/%,%,$@)" $(LOG_WARN)
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   226
	@($(ECHO) "# Options (`$(BASENAME) $1`):"; $(SED) -e 's@^@#   @' $1) $(LOG_DEBUG)
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   227
	@($(ECHO) "# Packages (`$(BASENAME) $2`):";$(SED) -e 's@^@#   @' $2) $(LOG_DEBUG)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   228
endef
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   229
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   230
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   231
# Different api directories created from root directory
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   232
#
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   233
COREAPI_DOCSDIR = $(DOCSDIR)/api
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   234
JDK_API_DOCSDIR = $(DOCSDIR)/jdk/api
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   235
JRE_API_DOCSDIR = $(DOCSDIR)/jre/api
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   236
PLATFORM_DOCSDIR = $(DOCSDIR)/platform
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   237
35817
007e71c3b8c4 8149963: build errors during API docs build
erikj
parents: 35369
diff changeset
   238
# The core api index file is the target for the core api javadocs rule
007e71c3b8c4 8149963: build errors during API docs build
erikj
parents: 35369
diff changeset
   239
# and needs to be defined early so that all other javadoc rules may
007e71c3b8c4 8149963: build errors during API docs build
erikj
parents: 35369
diff changeset
   240
# depend on it.
007e71c3b8c4 8149963: build errors during API docs build
erikj
parents: 35369
diff changeset
   241
COREAPI_INDEX_FILE = $(COREAPI_DOCSDIR)/index.html
007e71c3b8c4 8149963: build errors during API docs build
erikj
parents: 35369
diff changeset
   242
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   243
# The non-core api javadocs need to be able to access the root of the core
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   244
# api directory, so for jdk/api or jre/api to get to the core api/
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   245
# directory we would use this:
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   246
JDKJRE2COREAPI = ../../api
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   247
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   248
# Common bottom argument
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   249
define CommonBottom # year
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   250
<font size="-1"><br> $(call CopyrightLine,,$1,)</font>
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   251
endef
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   252
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   253
# Common trademark bottom argument (Not sure why this is used sometimes)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   254
define CommonTrademarkBottom # year
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   255
<font size="-1">\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   256
$(BUG_SUBMIT_LINE)<br>$(JAVA_TRADEMARK_LINE)<br>\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   257
$(call CopyrightLine,,$1,$(COMPANY_ADDRESS))\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   258
</font>
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   259
endef
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   260
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   261
# Common echo of option
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   262
define OptionOnly # opt
28007
877ab0d032b8 8066138: Trailing whitespace in title of javadoc: Overview (Java Platform SE 7 )
alundblad
parents: 27602
diff changeset
   263
	if [ "$(strip $1)" != "" ] ; then \
877ab0d032b8 8066138: Trailing whitespace in title of javadoc: Overview (Java Platform SE 7 )
alundblad
parents: 27602
diff changeset
   264
		$(PRINTF) "%s\n" "$(strip $1)"; \
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   265
	fi
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   266
endef
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   267
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   268
define OptionPair # opt arg
28007
877ab0d032b8 8066138: Trailing whitespace in title of javadoc: Overview (Java Platform SE 7 )
alundblad
parents: 27602
diff changeset
   269
	$(PRINTF) "%s '%s'\n" "$(strip $1)" '$(strip $2)'
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   270
endef
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   271
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   272
define OptionTrip # opt arg arg
28007
877ab0d032b8 8066138: Trailing whitespace in title of javadoc: Overview (Java Platform SE 7 )
alundblad
parents: 27602
diff changeset
   273
	$(PRINTF) "%s '%s' '%s'\n" "$(strip $1)" '$(strip $2)' '$(strip $3)'
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   274
endef
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   275
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   276
# Core api bottom argument (with special sauce)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   277
COREAPI_BOTTOM = <font size="-1"> $(BUG_SUBMIT_LINE)\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   278
<br>For further API reference and developer documentation, \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   279
see <a href="$(DEV_DOCS_URL)" target="_blank">Java SE Documentation</a>. \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   280
That documentation contains more detailed, developer-targeted descriptions, \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   281
with conceptual overviews, definitions of terms, workarounds, \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   282
and working code examples.<br>\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   283
$(call CopyrightLine,$(COPYRIGHT_URL),$(FIRST_COPYRIGHT_YEAR),)\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   284
</font>
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   285
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   286
# Common javadoc options used by all bundles
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   287
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   288
ifdef OPENJDK
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   289
  ADDITIONAL_JAVADOCFLAGS = \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   290
      -Xdocrootparent $(DOCS_BASE_URL)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   291
else
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   292
  ADDITIONAL_JAVADOCFLAGS =
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   293
endif
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   294
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   295
define COMMON_JAVADOCFLAGS
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   296
    $(call OptionOnly,-XDignore.symbol.file=true) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   297
    $(call OptionOnly,-quiet) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   298
    $(call OptionOnly,-use) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   299
    $(call OptionOnly,-keywords) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   300
    $(call OptionOnly,$(ADDITIONAL_JAVADOCFLAGS))
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   301
endef
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   302
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   303
# Common javadoc tags used by all bundles
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   304
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   305
# Java language specification cite
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   306
TAG_JLS = jls:a:See <cite> \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   307
The Java&trade; Language Specification</cite>:
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   308
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   309
# Java virtual machine specification cite
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   310
TAG_JVMS = jvms:a:See <cite> \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   311
The Java&trade; Virtual Machine Specification</cite>:
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   312
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   313
# In order to get a specific ordering it's necessary to specify the total
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   314
# ordering of tags as the tags are otherwise ordered in order of definition.
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   315
define COMMON_JAVADOCTAGS
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   316
  $(call OptionPair,-tag,beaninfo:X) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   317
  $(call OptionPair,-tag,revised:X) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   318
  $(call OptionPair,-tag,since.unbundled:X) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   319
  $(call OptionPair,-tag,spec:X) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   320
  $(call OptionPair,-tag,specdefault:X) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   321
  $(call OptionPair,-tag,Note:X) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   322
  $(call OptionPair,-tag,ToDo:X) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   323
  $(call OptionPair,-tag,apiNote:a:API Note:) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   324
  $(call OptionPair,-tag,implSpec:a:Implementation Requirements:) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   325
  $(call OptionPair,-tag,implNote:a:Implementation Note:) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   326
  $(call OptionPair,-tag,param) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   327
  $(call OptionPair,-tag,return) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   328
  $(call OptionPair,-tag,throws) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   329
  $(call OptionPair,-tag,since) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   330
  $(call OptionPair,-tag,version) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   331
  $(call OptionPair,-tag,serialData) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   332
  $(call OptionPair,-tag,factory) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   333
  $(call OptionPair,-tag,see) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   334
  $(call OptionPair,-tag,$(TAG_JVMS)) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   335
  $(call OptionPair,-tag,$(TAG_JLS))
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   336
endef
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   337
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   338
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   339
33929
b6f2e71b26c5 8087329: Introduce VERSION_IS_GA
erikj
parents: 33926
diff changeset
   340
# Assume we need a draft format when the version string is not a GA version.
b6f2e71b26c5 8087329: Introduce VERSION_IS_GA
erikj
parents: 33926
diff changeset
   341
ifeq ($(VERSION_IS_GA), false)
33926
3a19edba4808 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30416
diff changeset
   342
  DRAFT_HEADER := <br><strong>DRAFT&nbsp;$(VERSION_STRING)</strong>
3a19edba4808 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30416
diff changeset
   343
  DRAFT_BOTTOM := <br><strong>DRAFT&nbsp;$(VERSION_STRING)</strong>
3a19edba4808 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30416
diff changeset
   344
  DRAFT_WINTITLE := $(VERSION_BUILD)
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   345
  # Early access top text (not used in FCS releases)
33926
3a19edba4808 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30416
diff changeset
   346
  COREAPI_TOP_EARLYACCESS := \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   347
<div style="background-color: \#EEEEEE"> \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   348
<div style="padding: 6px; margin-top: 2px; margin-bottom: 6px; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   349
margin-left: 6px; margin-right: 6px; text-align: justify; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   350
font-size: 80%; font-family: Helvetica, Arial, sans-serif; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   351
font-weight: normal;"> \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   352
Please note that the specifications and other information \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   353
contained herein are not final and are subject to change. \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   354
The information is being made available to you solely for purpose of \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   355
evaluation. \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   356
</div> </div>
33926
3a19edba4808 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30416
diff changeset
   357
else
3a19edba4808 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30416
diff changeset
   358
  DRAFT_HEADER :=
3a19edba4808 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30416
diff changeset
   359
  DRAFT_BOTTOM :=
3a19edba4808 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30416
diff changeset
   360
  DRAFT_WINTITLE :=
3a19edba4808 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30416
diff changeset
   361
  COREAPI_TOP_EARLYACCESS :=
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   362
endif
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   363
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   364
#################################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   365
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   366
#
27328
17f2bc9cd16a 8062475: Enable hook for custom doc generation
rriggs
parents: 26119
diff changeset
   367
# Load custom Javadoc rules
17f2bc9cd16a 8062475: Enable hook for custom doc generation
rriggs
parents: 26119
diff changeset
   368
#
17f2bc9cd16a 8062475: Enable hook for custom doc generation
rriggs
parents: 26119
diff changeset
   369
17f2bc9cd16a 8062475: Enable hook for custom doc generation
rriggs
parents: 26119
diff changeset
   370
$(eval $(call IncludeCustomExtension, , Javadoc.gmk))
17f2bc9cd16a 8062475: Enable hook for custom doc generation
rriggs
parents: 26119
diff changeset
   371
17f2bc9cd16a 8062475: Enable hook for custom doc generation
rriggs
parents: 26119
diff changeset
   372
#################################################################
17f2bc9cd16a 8062475: Enable hook for custom doc generation
rriggs
parents: 26119
diff changeset
   373
17f2bc9cd16a 8062475: Enable hook for custom doc generation
rriggs
parents: 26119
diff changeset
   374
#
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   375
# Default target is same as docs target, create core api and all others it can
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   376
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   377
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   378
all: docs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   379
docs: coredocs otherdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   380
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   381
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   382
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   383
# coredocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   384
#
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   385
COREAPI_DOCTITLE = Java$(TRADEMARK) Platform, Standard Edition \
33926
3a19edba4808 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30416
diff changeset
   386
$(VERSION_SPECIFICATION)<br>API Specification
3a19edba4808 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30416
diff changeset
   387
COREAPI_WINDOWTITLE = Java Platform SE $(VERSION_SPECIFICATION)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   388
COREAPI_HEADER = \
33926
3a19edba4808 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30416
diff changeset
   389
<strong>Java$(TRADEMARK)&nbsp;Platform<br>Standard&nbsp;Ed.&nbsp;$(VERSION_SPECIFICATION)</strong>
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   390
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   391
# Overview file for core apis
25854
98ce0879ab4c 8054834: Modular Source Code
chegar
parents: 25614
diff changeset
   392
COREAPI_OVERVIEW = $(JDK_TOPDIR)/src/java.base/share/classes/overview-core.html
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   393
35817
007e71c3b8c4 8149963: build errors during API docs build
erikj
parents: 35369
diff changeset
   394
# The options and packages files
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   395
COREAPI_OPTIONS_FILE = $(DOCSTMPDIR)/coredocs.options
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   396
COREAPI_PACKAGES_FILE = $(DOCSTMPDIR)/coredocs.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   397
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   398
# The modules required to be documented
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   399
COREAPI_MODULES = java.se.ee
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   400
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   401
coredocs: $(COREAPI_INDEX_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   402
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   403
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   404
$(COREAPI_INDEX_FILE): GET2DOCSDIR=..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   405
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   406
# Run javadoc if the index file is out of date or missing
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   407
$(COREAPI_INDEX_FILE): $(COREAPI_OPTIONS_FILE) $(COREAPI_PACKAGES_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   408
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   409
	$(call JavadocSummary,$(COREAPI_OPTIONS_FILE),$(COREAPI_PACKAGES_FILE))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   410
	$(JAVADOC_CMD) -d $(@D) \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   411
	    @$(COREAPI_OPTIONS_FILE) @$(COREAPI_PACKAGES_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   412
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   413
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   414
$(COREAPI_OPTIONS_FILE): $(COREAPI_OVERVIEW)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   415
	$(prep-target)
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   416
	@($(call COMMON_JAVADOCFLAGS) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   417
          $(call COMMON_JAVADOCTAGS) ; \
31567
626eeea487f8 8080722: Revisit how to check for doclint reference warning during the build
darcy
parents: 30416
diff changeset
   418
          $(call OptionOnly,-Xdoclint:reference) ; \
626eeea487f8 8080722: Revisit how to check for doclint reference warning during the build
darcy
parents: 30416
diff changeset
   419
          $(call OptionOnly,-Xdoclint/package:-org.omg.*) ; \
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   420
          $(call OptionPair,-system,none) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   421
	  $(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   422
	  $(call OptionPair,-addmods,$(COREAPI_MODULES)) ; \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   423
	  $(call OptionPair,-encoding,ISO-8859-1) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   424
	  $(call OptionOnly,-splitIndex) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   425
	  $(call OptionPair,-overview,$(COREAPI_OVERVIEW)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   426
	  $(call OptionPair,-doctitle,$(COREAPI_DOCTITLE)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   427
	  $(call OptionPair,-windowtitle,$(COREAPI_WINDOWTITLE) $(DRAFT_WINTITLE)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   428
	  $(call OptionPair,-header,$(COREAPI_HEADER)$(DRAFT_HEADER)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   429
	  $(call OptionPair,-bottom,$(COREAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   430
	) >> $@
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   431
        ifdef COREAPI_TOP_EARLYACCESS
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   432
	  @$(call OptionPair,-top,$(COREAPI_TOP_EARLYACCESS)) >> $@
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   433
        endif
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   434
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   435
# Create a file with the package names in it
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   436
$(COREAPI_PACKAGES_FILE): $(call PackageDependencies,$(CORE_PKGS))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   437
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   438
	$(call PackageFilter,$(CORE_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   439
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   440
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   441
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   442
# docletapidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   443
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   444
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   445
ALL_OTHER_TARGETS += docletapidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   446
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   447
DOCLETAPI_DOCDIR := $(JDK_API_DOCSDIR)/javadoc/doclet
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   448
DOCLETAPI2COREAPI := ../../$(JDKJRE2COREAPI)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   449
DOCLETAPI_DOCTITLE := Doclet API
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   450
DOCLETAPI_WINDOWTITLE := Doclet API
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   451
DOCLETAPI_HEADER := <strong>Doclet API</strong>
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   452
DOCLETAPI_BOTTOM := $(call CommonTrademarkBottom,$(DOCLETAPI_FIRST_COPYRIGHT_YEAR))
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   453
DOCLETAPI_GROUPNAME := Packages
35367
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   454
DOCLETAPI_REGEXP := jdk.javadoc.doclet.*
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   455
# DOCLETAPI_PKGS is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   456
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   457
# The index.html, options, and packages files
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   458
DOCLETAPI_INDEX_FILE = $(DOCLETAPI_DOCDIR)/index.html
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   459
DOCLETAPI_OPTIONS_FILE = $(DOCSTMPDIR)/docletapi.options
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   460
DOCLETAPI_PACKAGES_FILE = $(DOCSTMPDIR)/docletapi.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   461
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   462
# The modules required to be documented
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   463
DOCLETAPI_MODULES = jdk.javadoc
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   464
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   465
docletapidocs: $(DOCLETAPI_INDEX_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   466
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   467
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   468
$(DOCLETAPI_INDEX_FILE): GET2DOCSDIR=$(DOCLETAPI2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   469
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   470
# Run javadoc if the index file is out of date or missing
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   471
$(DOCLETAPI_INDEX_FILE): $(DOCLETAPI_OPTIONS_FILE) $(DOCLETAPI_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   472
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   473
	$(call JavadocSummary,$(DOCLETAPI_OPTIONS_FILE),$(DOCLETAPI_PACKAGES_FILE))
29176
45baf3cdc876 8074395: Random build failures in javadoc on Solaris
erikj
parents: 28010
diff changeset
   474
	$(JAVADOC_CMD_SMALL) -d $(@D) \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   475
	    @$(DOCLETAPI_OPTIONS_FILE) @$(DOCLETAPI_PACKAGES_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   476
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   477
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   478
$(DOCLETAPI_OPTIONS_FILE):
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   479
	$(prep-target)
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   480
	@($(call COMMON_JAVADOCFLAGS) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   481
          $(call COMMON_JAVADOCTAGS) ; \
25043
b5598c2ddf6f 8048302: Update bug reporting URL in make/Javadoc.gmk
darcy
parents: 24232
diff changeset
   482
	  $(call OptionOnly,-Xdoclint:all) ; \
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   483
          $(call OptionPair,-system,none) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   484
	  $(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   485
	  $(call OptionPair,-addmods,$(DOCLETAPI_MODULES)) ; \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   486
	  $(call OptionPair,-encoding,ascii) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   487
	  $(call OptionOnly,-breakiterator) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   488
	  $(call OptionPair,-doctitle,$(DOCLETAPI_DOCTITLE)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   489
	  $(call OptionPair,-windowtitle,$(DOCLETAPI_WINDOWTITLE) $(DRAFT_WINTITLE)); \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   490
	  $(call OptionPair,-header,$(DOCLETAPI_HEADER)$(DRAFT_HEADER)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   491
	  $(call OptionPair,-bottom,$(DOCLETAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   492
	  $(call OptionTrip,-group,$(DOCLETAPI_GROUPNAME),$(DOCLETAPI_REGEXP)); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   493
	  $(call OptionTrip,-linkoffline,$(DOCLETAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   494
	) >> $@
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   495
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   496
# Create a file with the package names in it
27595
cff167b3bfa2 8065914: Various improvements and cleanup of build system
ihse
parents: 27586
diff changeset
   497
$(DOCLETAPI_PACKAGES_FILE): $(call PackageDependencies,$(DOCLETAPI_PKGS))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   498
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   499
	$(call PackageFilter,$(DOCLETAPI_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   500
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   501
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   502
#
35367
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   503
# old docletapidocs
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   504
#
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   505
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   506
ALL_OTHER_TARGETS += olddocletapidocs
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   507
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   508
OLD_DOCLET_DIR := $(JDK_API_DOCSDIR)/javadoc/old
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   509
OLD_DOCLETAPI_DOCDIR := $(OLD_DOCLET_DIR)/doclet
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   510
OLD_DOCLETAPI2COREAPI := ../../../$(JDKJRE2COREAPI)
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   511
OLD_DOCLETAPI_DOCTITLE := Doclet API
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   512
OLD_DOCLETAPI_WINDOWTITLE := Doclet API
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   513
OLD_DOCLETAPI_HEADER := <strong>Doclet API</strong>
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   514
OLD_DOCLETAPI_BOTTOM := $(call CommonTrademarkBottom,$(DOCLETAPI_FIRST_COPYRIGHT_YEAR))
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   515
OLD_DOCLETAPI_GROUPNAME := Packages
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   516
OLD_DOCLETAPI_REGEXP := com.sun.javadoc
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   517
# OLD_DOCLETAPI_PKGS is located in NON_CORE_PKGS.gmk
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   518
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   519
# The index.html, options, and packages files
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   520
OLD_DOCLETAPI_INDEX_FILE = $(OLD_DOCLETAPI_DOCDIR)/index.html
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   521
OLD_DOCLETAPI_OPTIONS_FILE = $(DOCSTMPDIR)/old-docletapi.options
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   522
OLD_DOCLETAPI_PACKAGES_FILE = $(DOCSTMPDIR)/old-docletapi.packages
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   523
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   524
# The modules required to be documented
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   525
OLD_DOCLETAPI_MODULES = jdk.javadoc
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   526
35367
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   527
olddocletapidocs: $(OLD_DOCLETAPI_INDEX_FILE)
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   528
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   529
# Set relative location to core api document root
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   530
$(OLD_DOCLETAPI_INDEX_FILE): GET2DOCSDIR=$(OLD_DOCLETAPI2COREAPI)/..
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   531
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   532
# Run javadoc if the index file is out of date or missing
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   533
$(OLD_DOCLETAPI_INDEX_FILE): $(OLD_DOCLETAPI_OPTIONS_FILE) $(OLD_DOCLETAPI_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   534
	$(prep-javadoc)
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   535
	$(call JavadocSummary,$(OLD_DOCLETAPI_OPTIONS_FILE),$(OLD_DOCLETAPI_PACKAGES_FILE))
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   536
	$(JAVADOC_CMD_SMALL) -d $(@D) \
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   537
	    @$(OLD_DOCLETAPI_OPTIONS_FILE) @$(OLD_DOCLETAPI_PACKAGES_FILE)
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   538
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   539
# Create file with javadoc options in it
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   540
$(OLD_DOCLETAPI_OPTIONS_FILE):
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   541
	$(prep-target)
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   542
	@($(call COMMON_JAVADOCFLAGS) ; \
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   543
          $(call COMMON_JAVADOCTAGS) ; \
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   544
	  $(call OptionOnly,-Xdoclint:all) ; \
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   545
          $(call OptionPair,-system,none) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   546
	  $(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   547
	  $(call OptionPair,-addmods,$(OLD_DOCLETAPI_MODULES)) ; \
35367
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   548
	  $(call OptionPair,-encoding,ascii) ; \
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   549
	  $(call OptionOnly,-breakiterator) ; \
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   550
	  $(call OptionPair,-doctitle,$(OLD_DOCLETAPI_DOCTITLE)) ; \
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   551
	  $(call OptionPair,-windowtitle,$(OLD_DOCLETAPI_WINDOWTITLE) $(DRAFT_WINTITLE)); \
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   552
	  $(call OptionPair,-header,$(OLD_DOCLETAPI_HEADER)$(DRAFT_HEADER)) ; \
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   553
	  $(call OptionPair,-bottom,$(OLD_DOCLETAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   554
	  $(call OptionTrip,-group,$(OLD_DOCLETAPI_GROUPNAME),$(OLD_DOCLETAPI_REGEXP)); \
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   555
	  $(call OptionTrip,-linkoffline,$(OLD_DOCLETAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   556
	) >> $@
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   557
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   558
# Create a file with the package names in it
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   559
$(OLD_DOCLETAPI_PACKAGES_FILE): $(call PackageDependencies,$(OLD_DOCLETAPI_PKGS))
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   560
	$(prep-target)
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   561
	$(call PackageFilter,$(OLD_DOCLETAPI_PKGS))
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   562
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   563
#############################################################
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   564
#
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   565
# tagletapidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   566
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   567
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   568
ALL_OTHER_TARGETS += tagletapidocs
35367
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   569
TAGLETAPI_DOCDIR := $(OLD_DOCLET_DIR)/taglet
48968f91bab4 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 33934
diff changeset
   570
TAGLETAPI2COREAPI := ../../../$(JDKJRE2COREAPI)
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   571
TAGLETAPI_BOTTOM := $(call CommonTrademarkBottom,$(TAGLETAPI_FIRST_COPYRIGHT_YEAR))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   572
# TAGLETAPI_FILE is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   573
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   574
# Temporary directory (special generation rules)
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   575
TAGLETAPI_TEMPDIR = $(DOCSTMPDIR)/taglets_temp
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   576
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   577
# The index.html, options, and packages files
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   578
TAGLETAPI_INDEX_FILE = $(TAGLETAPI_DOCDIR)/com/sun/tools/doclets/Taglet.html
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   579
TAGLETAPI_OPTIONS_FILE = $(DOCSTMPDIR)/tagletapi.options
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   580
TAGLETAPI_PACKAGES_FILE = $(DOCSTMPDIR)/tagletapi.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   581
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   582
# The modules required to be documented
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   583
TAGLETAPI_MODULES = jdk.javadoc
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   584
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   585
tagletapidocs: $(TAGLETAPI_INDEX_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   586
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   587
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   588
$(TAGLETAPI_INDEX_FILE): GET2DOCSDIR=$(TAGLETAPI2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   589
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   590
# Run javadoc if the index file is out of date or missing
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   591
$(TAGLETAPI_INDEX_FILE): $(TAGLETAPI_OPTIONS_FILE) $(TAGLETAPI_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   592
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   593
	$(RM) -r $(TAGLETAPI_TEMPDIR)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   594
	$(MKDIR) -p $(TAGLETAPI_TEMPDIR)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   595
	$(call JavadocSummary,$(TAGLETAPI_OPTIONS_FILE),$(TAGLETAPI_PACKAGES_FILE))
29176
45baf3cdc876 8074395: Random build failures in javadoc on Solaris
erikj
parents: 28010
diff changeset
   596
	$(JAVADOC_CMD_SMALL) -d $(TAGLETAPI_TEMPDIR) \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   597
	    @$(TAGLETAPI_OPTIONS_FILE) @$(TAGLETAPI_PACKAGES_FILE)
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   598
	cp -r $(TAGLETAPI_TEMPDIR)/com $(TAGLETAPI_DOCDIR)
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   599
	cp $(TAGLETAPI_TEMPDIR)/stylesheet.css $(TAGLETAPI_DOCDIR)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   600
	$(RM) -r $(TAGLETAPI_TEMPDIR)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   601
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   602
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   603
$(TAGLETAPI_OPTIONS_FILE):
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   604
	$(prep-target)
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   605
	@($(call COMMON_JAVADOCFLAGS) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   606
          $(call COMMON_JAVADOCTAGS) ; \
25043
b5598c2ddf6f 8048302: Update bug reporting URL in make/Javadoc.gmk
darcy
parents: 24232
diff changeset
   607
	  $(call OptionOnly,-Xdoclint:all) ; \
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   608
          $(call OptionPair,-system,none) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   609
	  $(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   610
	  $(call OptionPair,-addmods,$(TAGLETAPI_MODULES)) ; \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   611
	  $(call OptionPair,-encoding,ascii) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   612
	  $(call OptionOnly,-nonavbar) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   613
	  $(call OptionOnly,-noindex) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   614
	  $(call OptionPair,-bottom,$(TAGLETAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   615
	  $(call OptionTrip,-linkoffline,$(TAGLETAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   616
	) >> $@
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   617
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   618
# Create a file with the package names in it
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   619
$(TAGLETAPI_PACKAGES_FILE): $(call PackageDependencies,$(TAGLETAPI_PKGS))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   620
	$(prep-target)
25854
98ce0879ab4c 8054834: Modular Source Code
chegar
parents: 25614
diff changeset
   621
	@($(ECHO) "$(LANGTOOLS_TOPDIR)/src/jdk.javadoc/share/classes/$(TAGLETAPI_FILE)" ) > $@
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   622
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   623
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   624
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   625
# domapidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   626
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   627
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   628
ALL_OTHER_TARGETS += domapidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   629
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   630
DOMAPI_DOCDIR := $(JRE_API_DOCSDIR)/plugin/dom
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   631
DOMAPI2COREAPI := ../../$(JDKJRE2COREAPI)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   632
DOMAPI_DOCTITLE := Common DOM API
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   633
DOMAPI_WINDOWTITLE := Common DOM API
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   634
DOMAPI_HEADER := <strong>Common DOM API</strong>
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   635
DOMAPI_BOTTOM := $(call CommonTrademarkBottom,$(DOMAPI_FIRST_COPYRIGHT_YEAR))
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   636
DOMAPI_GROUPNAME := Packages
25045
7b8a6a85baa4 8044063: Remove com.sun.java.browser.* from jdk repo
mchung
parents: 24232
diff changeset
   637
DOMAPI_REGEXP := org.w3c.dom*
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   638
# DOMAPI_PKGS is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   639
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   640
# The index.html, options, and packages files
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   641
DOMAPI_INDEX_FILE = $(DOMAPI_DOCDIR)/index.html
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   642
DOMAPI_OPTIONS_FILE = $(DOCSTMPDIR)/domapi.options
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   643
DOMAPI_PACKAGES_FILE = $(DOCSTMPDIR)/domapi.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   644
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   645
# The modules required to be documented
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   646
DOMAPI_MODULES = java.xml,jdk.xml.dom
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   647
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   648
domapidocs: $(DOMAPI_INDEX_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   649
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   650
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   651
$(DOMAPI_INDEX_FILE): GET2DOCSDIR=$(DOMAPI2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   652
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   653
# Run javadoc if the index file is out of date or missing
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   654
$(DOMAPI_INDEX_FILE): $(DOMAPI_OPTIONS_FILE) $(DOMAPI_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   655
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   656
	$(call JavadocSummary,$(DOMAPI_OPTIONS_FILE),$(DOMAPI_PACKAGES_FILE))
29176
45baf3cdc876 8074395: Random build failures in javadoc on Solaris
erikj
parents: 28010
diff changeset
   657
	$(JAVADOC_CMD_SMALL) -d $(@D) \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   658
	    @$(DOMAPI_OPTIONS_FILE) @$(DOMAPI_PACKAGES_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   659
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   660
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   661
$(DOMAPI_OPTIONS_FILE):
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   662
	$(prep-target)
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   663
	@($(call COMMON_JAVADOCFLAGS) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   664
          $(call COMMON_JAVADOCTAGS) ; \
22033
c323078abaf4 8031081: Use separate doclint flags for different doc bundles
darcy
parents: 21759
diff changeset
   665
	  $(call OptionOnly,-Xdoclint:none) ; \
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   666
          $(call OptionPair,-system,none) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   667
	  $(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   668
	  $(call OptionPair,-addmods,$(DOMAPI_MODULES)) ; \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   669
	  $(call OptionPair,-encoding,ascii) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   670
	  $(call OptionOnly,-splitIndex) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   671
	  $(call OptionPair,-doctitle,$(DOMAPI_DOCTITLE)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   672
	  $(call OptionPair,-windowtitle,$(DOMAPI_WINDOWTITLE) $(DRAFT_WINTITLE)); \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   673
	  $(call OptionPair,-header,$(DOMAPI_HEADER)$(DRAFT_HEADER)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   674
	  $(call OptionPair,-bottom,$(DOMAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   675
	  $(call OptionTrip,-group,$(DOMAPI_GROUPNAME),$(DOMAPI_REGEXP)); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   676
	  $(call OptionTrip,-linkoffline,$(DOMAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   677
	) >> $@
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   678
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   679
# Create a file with the package names in it
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   680
$(DOMAPI_PACKAGES_FILE): $(call PackageDependencies,$(DOMAPI_PKGS))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   681
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   682
	$(call PackageFilter,$(DOMAPI_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   683
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   684
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   685
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   686
# jpdadocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   687
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   688
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   689
ALL_OTHER_TARGETS += jpdadocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   690
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   691
jpdadocs: jdidocs jdwpdocs jvmtidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   692
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   693
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   694
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   695
# jdidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   696
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   698
ALL_OTHER_TARGETS += jdidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   699
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   700
JDI_DOCDIR := $(JDK_API_DOCSDIR)/jpda/jdi
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   701
JDI2COREAPI := ../../$(JDKJRE2COREAPI)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   702
JDI_DOCTITLE := Java$(TRADEMARK) Debug Interface
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   703
JDI_WINDOWTITLE := Java Debug Interface
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   704
JDI_HEADER := <strong>Java Debug Interface</strong>
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   705
JDI_BOTTOM := $(call CommonBottom,$(JDI_FIRST_COPYRIGHT_YEAR))
25854
98ce0879ab4c 8054834: Modular Source Code
chegar
parents: 25614
diff changeset
   706
JDI_OVERVIEW := $(JDK_TOPDIR)/src/jdk.jdi/share/classes/jdi-overview.html
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   707
# JDI_PKGS is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   708
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   709
# The index.html, options, and packages files
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   710
JDI_INDEX_FILE = $(JDI_DOCDIR)/index.html
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   711
JDI_OPTIONS_FILE = $(DOCSTMPDIR)/jdi.options
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   712
JDI_PACKAGES_FILE = $(DOCSTMPDIR)/jdi.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   713
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   714
# The modules required to be documented
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   715
JDI_MODULES = jdk.jdi
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   716
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   717
jdidocs: $(JDI_INDEX_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   718
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   719
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   720
$(JDI_INDEX_FILE): GET2DOCSDIR=$(JDI2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   721
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   722
# Run javadoc if the index file is out of date or missing
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   723
$(JDI_INDEX_FILE): $(JDI_OPTIONS_FILE) $(JDI_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   724
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   725
	$(call JavadocSummary,$(JDI_OPTIONS_FILE),$(JDI_PACKAGES_FILE))
29176
45baf3cdc876 8074395: Random build failures in javadoc on Solaris
erikj
parents: 28010
diff changeset
   726
	$(JAVADOC_CMD_SMALL) -d $(@D) \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   727
	    @$(JDI_OPTIONS_FILE) @$(JDI_PACKAGES_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   728
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   729
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   730
$(JDI_OPTIONS_FILE): $(JDI_OVERVIEW)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   731
	$(prep-target)
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   732
	@($(call COMMON_JAVADOCFLAGS) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   733
          $(call COMMON_JAVADOCTAGS) ; \
22033
c323078abaf4 8031081: Use separate doclint flags for different doc bundles
darcy
parents: 21759
diff changeset
   734
	  $(call OptionOnly,-Xdoclint:none) ; \
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   735
          $(call OptionPair,-system,none) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   736
	  $(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   737
	  $(call OptionPair,-addmods,$(JDI_MODULES)) ; \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   738
	  $(call OptionPair,-encoding,ascii) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   739
	  $(call OptionPair,-overview,$(JDI_OVERVIEW)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   740
	  $(call OptionPair,-doctitle,$(JDI_DOCTITLE)) ; \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   741
	  $(call OptionPair,-windowtitle,$(JDI_WINDOWTITLE) $(DRAFT_WINTITLE)); \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   742
	  $(call OptionPair,-header,$(JDI_HEADER)$(DRAFT_HEADER)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   743
	  $(call OptionPair,-bottom,$(JDI_BOTTOM)$(DRAFT_BOTTOM)) ; \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   744
	  $(call OptionTrip,-linkoffline,$(JDI2COREAPI),$(COREAPI_DOCSDIR)/); \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   745
	) >> $@
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   746
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   747
# Create a file with the package names in it
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   748
$(JDI_PACKAGES_FILE): $(call PackageDependencies,$(JDI_PKGS))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   749
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   750
	$(call PackageFilter,$(JDI_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   751
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   752
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   753
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   754
# jdwpdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   755
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   756
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   757
ALL_OTHER_TARGETS += jdwpdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   758
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   759
JDWP_DOCDIR = $(PLATFORM_DOCSDIR)/jpda/jdwp
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   760
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   761
jdwpdocs: $(JDWP_DOCDIR)/jdwp-protocol.html
27560
adc258b13e2c 8049367: Modular Run-Time Images
chegar
parents: 27328
diff changeset
   762
$(JDWP_DOCDIR)/jdwp-protocol.html : $(SUPPORT_OUTPUTDIR)/gensrc/jdk.jdi/jdwp-protocol.html
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   763
	$(MKDIR) -p $(@D)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   764
	$(RM) $@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   765
	$(CP) $< $@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   766
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   767
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   768
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   769
# jvmtidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   770
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   771
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   772
ALL_OTHER_TARGETS += jvmtidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   773
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   774
JVMTI_DOCDIR = $(PLATFORM_DOCSDIR)/jvmti
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   775
JVMTI_HTML = $(HOTSPOT_DIST)/docs/platform/jvmti/jvmti.html
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   776
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   777
jvmtidocs: $(JVMTI_DOCDIR)/jvmti.html
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   778
$(JVMTI_DOCDIR)/jvmti.html:
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   779
	@$(prep-javadoc)
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   780
	@if [ -f $(JVMTI_HTML) ] ; then \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   781
	  $(CP) $(JVMTI_HTML) $@; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   782
	else \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   783
	  $(ECHO) "WARNING: Generated file does not exist: $(JVMTI_HTML)"; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   784
	fi
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   785
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   786
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   787
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   788
# jaasdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   789
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   790
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   791
ALL_OTHER_TARGETS += jaasdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   792
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   793
JAAS_DOCDIR := $(JRE_API_DOCSDIR)/security/jaas/spec
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   794
JAAS2COREAPI := ../../../$(JDKJRE2COREAPI)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   795
JAAS_DOCTITLE := Java$(TRADEMARK) Authentication and Authorization Service
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   796
JAAS_WINDOWTITLE := Java Authentication and Authorization Service
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   797
JAAS_HEADER := <strong>Java Authentication and Authorization Service</strong>
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   798
JAAS_BOTTOM := $(call CommonBottom,$(JAAS_FIRST_COPYRIGHT_YEAR))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   799
# JAAS_PKGS is located in NON_CORE_PKGS.gmk
25854
98ce0879ab4c 8054834: Modular Source Code
chegar
parents: 25614
diff changeset
   800
JAAS_OVERVIEW := $(JDK_TOPDIR)/src/jdk.security.auth/share/classes/jaas-overview.html
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   801
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   802
# The index.html, options, and packages files
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   803
JAAS_INDEX_FILE = $(JAAS_DOCDIR)/index.html
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   804
JAAS_OPTIONS_FILE = $(DOCSTMPDIR)/jaas.options
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   805
JAAS_PACKAGES_FILE = $(DOCSTMPDIR)/jaas.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   806
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   807
# The modules required to be documented
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   808
JAAS_MODULES = jdk.security.auth
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   809
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   810
jaasdocs: $(JAAS_INDEX_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   811
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   812
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   813
$(JAAS_INDEX_FILE): GET2DOCSDIR=$(JAAS2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   814
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   815
# Run javadoc if the index file is out of date or missing
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   816
$(JAAS_INDEX_FILE): $(JAAS_OPTIONS_FILE) $(JAAS_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   817
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   818
	$(call JavadocSummary,$(JAAS_OPTIONS_FILE),$(JAAS_PACKAGES_FILE))
29176
45baf3cdc876 8074395: Random build failures in javadoc on Solaris
erikj
parents: 28010
diff changeset
   819
	$(JAVADOC_CMD_SMALL) -d $(@D) \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   820
	    @$(JAAS_OPTIONS_FILE) @$(JAAS_PACKAGES_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   821
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   822
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   823
$(JAAS_OPTIONS_FILE): $(JAAS_OVERVIEW)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   824
	$(prep-target)
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   825
	@($(call COMMON_JAVADOCFLAGS) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   826
          $(call COMMON_JAVADOCTAGS) ; \
22033
c323078abaf4 8031081: Use separate doclint flags for different doc bundles
darcy
parents: 21759
diff changeset
   827
	  $(call OptionOnly,-Xdoclint:none) ; \
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   828
          $(call OptionPair,-system,none) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   829
	  $(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   830
	  $(call OptionPair,-addmods,$(JAAS_MODULES)) ; \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   831
	  $(call OptionPair,-encoding,ascii) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   832
	  $(call OptionPair,-overview,$(JAAS_OVERVIEW)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   833
	  $(call OptionPair,-doctitle,$(JAAS_DOCTITLE)) ; \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   834
	  $(call OptionPair,-windowtitle,$(JAAS_WINDOWTITLE) $(DRAFT_WINTITLE)); \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   835
	  $(call OptionPair,-header,$(JAAS_HEADER)$(DRAFT_HEADER)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   836
	  $(call OptionPair,-bottom,$(JAAS_BOTTOM)$(DRAFT_BOTTOM)) ; \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   837
	  $(call OptionTrip,-linkoffline,$(JAAS2COREAPI),$(COREAPI_DOCSDIR)/); \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   838
	) >> $@
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   839
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   840
# Create a file with the package names in it
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   841
$(JAAS_PACKAGES_FILE): $(call PackageDependencies,$(JAAS_PKGS))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   842
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   843
	$(call PackageFilter,$(JAAS_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   844
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   845
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   846
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   847
# jgssdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   848
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   849
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   850
ALL_OTHER_TARGETS += jgssdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   851
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   852
JGSS_DOCDIR := $(JRE_API_DOCSDIR)/security/jgss/spec
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   853
JGSS2COREAPI := ../../../$(JDKJRE2COREAPI)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   854
JGSS_DOCTITLE := Java$(TRADEMARK) GSS-API Utilities
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   855
JGSS_WINDOWTITLE := Java GSS-API Utilities
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   856
JGSS_HEADER := <strong>Java GSS-API Utilities</strong>
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   857
JGSS_BOTTOM := $(call CommonBottom,$(JGSS_FIRST_COPYRIGHT_YEAR))
25854
98ce0879ab4c 8054834: Modular Source Code
chegar
parents: 25614
diff changeset
   858
JGSS_OVERVIEW := $(JDK_TOPDIR)/src/java.security.jgss/share/classes/jgss-overview.html
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   859
# JGSS_PKGS is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   860
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   861
# The index.html, options, and packages files
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   862
JGSS_INDEX_FILE = $(JGSS_DOCDIR)/index.html
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   863
JGSS_OPTIONS_FILE = $(DOCSTMPDIR)/jgss.options
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   864
JGSS_PACKAGES_FILE = $(DOCSTMPDIR)/jgss.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   865
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   866
# The modules required to be documented
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   867
JGSS_MODULES = jdk.security.jgss
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   868
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   869
jgssdocs: $(JGSS_INDEX_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   870
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   871
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   872
$(JGSS_INDEX_FILE): GET2DOCSDIR=$(JGSS2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   873
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   874
# Run javadoc if the index file is out of date or missing
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   875
$(JGSS_INDEX_FILE): $(JGSS_OPTIONS_FILE) $(JGSS_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   876
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   877
	$(call JavadocSummary,$(JGSS_OPTIONS_FILE),$(JGSS_PACKAGES_FILE))
29176
45baf3cdc876 8074395: Random build failures in javadoc on Solaris
erikj
parents: 28010
diff changeset
   878
	$(JAVADOC_CMD_SMALL) -d $(@D) \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   879
	    @$(JGSS_OPTIONS_FILE) @$(JGSS_PACKAGES_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   880
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   881
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   882
$(JGSS_OPTIONS_FILE): $(JGSS_OVERVIEW)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   883
	$(prep-target)
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   884
	@($(call COMMON_JAVADOCFLAGS) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   885
          $(call COMMON_JAVADOCTAGS) ; \
22033
c323078abaf4 8031081: Use separate doclint flags for different doc bundles
darcy
parents: 21759
diff changeset
   886
	  $(call OptionOnly,-Xdoclint:none) ; \
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   887
          $(call OptionPair,-system,none) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   888
	  $(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   889
	  $(call OptionPair,-addmods,$(JGSS_MODULES)) ; \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   890
	  $(call OptionPair,-encoding,ascii) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   891
	  $(call OptionOnly,-nodeprecatedlist) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   892
	  $(call OptionPair,-overview,$(JGSS_OVERVIEW)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   893
	  $(call OptionPair,-doctitle,$(JGSS_DOCTITLE)) ; \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   894
	  $(call OptionPair,-windowtitle,$(JGSS_WINDOWTITLE) $(DRAFT_WINTITLE)); \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   895
	  $(call OptionPair,-header,$(JGSS_HEADER)$(DRAFT_HEADER)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   896
	  $(call OptionPair,-bottom,$(JGSS_BOTTOM)$(DRAFT_BOTTOM)) ; \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   897
	  $(call OptionTrip,-linkoffline,$(JGSS2COREAPI),$(COREAPI_DOCSDIR)/); \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   898
	) >> $@
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   899
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   900
# Create a file with the package names in it
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   901
$(JGSS_PACKAGES_FILE): $(call PackageDependencies,$(JGSS_PKGS))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   902
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   903
	$(call PackageFilter,$(JGSS_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   904
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   905
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   906
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   907
# smartcardiodocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   908
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   909
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   910
ALL_OTHER_TARGETS += smartcardiodocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   911
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   912
SMARTCARDIO_DOCDIR := $(JRE_API_DOCSDIR)/security/smartcardio/spec
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   913
SMARTCARDIO2COREAPI := ../../../$(JDKJRE2COREAPI)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   914
SMARTCARDIO_DOCTITLE := Java$(TRADEMARK) Smart Card I/O
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   915
SMARTCARDIO_WINDOWTITLE := Java Smart Card I/O
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   916
SMARTCARDIO_HEADER := <strong>Java Smart Card I/O</strong>
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   917
SMARTCARDIO_BOTTOM := $(call CommonBottom,$(SMARTCARDIO_FIRST_COPYRIGHT_YEAR))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   918
# SMARTCARDIO_PKGS is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   919
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   920
# The index.html, options, and packages files
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   921
SMARTCARDIO_INDEX_FILE = $(SMARTCARDIO_DOCDIR)/index.html
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   922
SMARTCARDIO_OPTIONS_FILE = $(DOCSTMPDIR)/smartcardio.options
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   923
SMARTCARDIO_PACKAGES_FILE = $(DOCSTMPDIR)/smartcardio.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   924
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   925
# The modules required to be documented
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   926
SMARTCARDIO_MODULES = java.smartcardio
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   927
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   928
smartcardiodocs: $(SMARTCARDIO_INDEX_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   929
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   930
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   931
$(SMARTCARDIO_INDEX_FILE): GET2DOCSDIR=$(SMARTCARDIO2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   932
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   933
# Run javadoc if the index file is out of date or missing
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   934
$(SMARTCARDIO_INDEX_FILE): $(SMARTCARDIO_OPTIONS_FILE) $(SMARTCARDIO_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   935
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   936
	$(call JavadocSummary,$(SMARTCARDIO_OPTIONS_FILE),$(SMARTCARDIO_PACKAGES_FILE))
29176
45baf3cdc876 8074395: Random build failures in javadoc on Solaris
erikj
parents: 28010
diff changeset
   937
	$(JAVADOC_CMD_SMALL) -d $(@D) \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   938
	    @$(SMARTCARDIO_OPTIONS_FILE) @$(SMARTCARDIO_PACKAGES_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   939
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   940
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   941
$(SMARTCARDIO_OPTIONS_FILE):
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   942
	$(prep-target)
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   943
	@($(call COMMON_JAVADOCFLAGS) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
   944
          $(call COMMON_JAVADOCTAGS) ; \
22033
c323078abaf4 8031081: Use separate doclint flags for different doc bundles
darcy
parents: 21759
diff changeset
   945
	  $(call OptionOnly,-Xdoclint:none) ; \
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   946
          $(call OptionPair,-system,none) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   947
	  $(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   948
	  $(call OptionPair,-addmods,$(SMARTCARDIO_MODULES)) ; \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   949
	  $(call OptionPair,-encoding,ascii) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   950
	  $(call OptionOnly,-nodeprecatedlist) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   951
	  $(call OptionPair,-doctitle,$(SMARTCARDIO_DOCTITLE)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   952
	  $(call OptionPair,-windowtitle,$(SMARTCARDIO_WINDOWTITLE) $(DRAFT_WINTITLE)); \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   953
	  $(call OptionPair,-header,$(SMARTCARDIO_HEADER)$(DRAFT_HEADER)); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   954
	  $(call OptionPair,-bottom,$(SMARTCARDIO_BOTTOM)$(DRAFT_BOTTOM)); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   955
	  $(call OptionTrip,-linkoffline,$(SMARTCARDIO2COREAPI),$(COREAPI_DOCSDIR)/); \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   956
	) >> $@
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   957
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   958
# Create a file with the package names in it
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   959
$(SMARTCARDIO_PACKAGES_FILE): $(call PackageDependencies,$(SMARTCARDIO_PKGS))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   960
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   961
	$(call PackageFilter,$(SMARTCARDIO_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   962
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   963
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   964
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   965
# httpserverdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   966
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   967
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   968
ALL_OTHER_TARGETS += httpserverdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   969
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   970
HTTPSERVER_DOCDIR := $(JRE_API_DOCSDIR)/net/httpserver/spec
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   971
HTTPSERVER2COREAPI := ../../../$(JDKJRE2COREAPI)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   972
HTTPSERVER_DOCTITLE := Java$(TRADEMARK) HTTP Server
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   973
HTTPSERVER_WINDOWTITLE := Java HTTP Server
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   974
HTTPSERVER_HEADER := <strong>Java HTTP Server</strong>
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   975
HTTPSERVER_BOTTOM := $(call CommonBottom,$(HTTPSERVER_FIRST_COPYRIGHT_YEAR))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   976
# HTTPSERVER_PKGS is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   977
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   978
HTTPSERVER_INDEX_HTML = $(HTTPSERVER_DOCDIR)/index.html
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   979
HTTPSERVER_OPTIONS_FILE = $(DOCSTMPDIR)/httpserver.options
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   980
HTTPSERVER_PACKAGES_FILE = $(DOCSTMPDIR)/httpserver.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   981
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   982
# The modules required to be documented
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   983
HTTPSERVER_MODULES = jdk.httpserver
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
   984
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   985
httpserverdocs: $(HTTPSERVER_INDEX_HTML)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   986
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   987
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   988
$(HTTPSERVER_INDEX_HTML): GET2DOCSDIR=$(HTTPSERVER2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   989
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   990
# Run javadoc if the index file is out of date or missing
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
   991
$(HTTPSERVER_INDEX_HTML): $(HTTPSERVER_OPTIONS_FILE) $(HTTPSERVER_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   992
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   993
	$(call JavadocSummary,$(HTTPSERVER_OPTIONS_FILE),$(HTTPSERVER_PACKAGES_FILE))
29176
45baf3cdc876 8074395: Random build failures in javadoc on Solaris
erikj
parents: 28010
diff changeset
   994
	$(JAVADOC_CMD_SMALL) -d $(@D) \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
   995
	    @$(HTTPSERVER_OPTIONS_FILE) @$(HTTPSERVER_PACKAGES_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   996
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   997
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   998
$(HTTPSERVER_OPTIONS_FILE):
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   999
	$(prep-target)
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
  1000
	@($(call COMMON_JAVADOCFLAGS) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
  1001
          $(call COMMON_JAVADOCTAGS) ; \
22033
c323078abaf4 8031081: Use separate doclint flags for different doc bundles
darcy
parents: 21759
diff changeset
  1002
	  $(call OptionOnly,-Xdoclint:none) ; \
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1003
          $(call OptionPair,-system,none) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1004
	  $(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1005
	  $(call OptionPair,-addmods,$(HTTPSERVER_MODULES)) ; \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1006
	  $(call OptionPair,-encoding,ascii) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1007
	  $(call OptionOnly,-nodeprecatedlist) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1008
	  $(call OptionPair,-doctitle,$(HTTPSERVER_DOCTITLE)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1009
	  $(call OptionPair,-windowtitle,$(HTTPSERVER_WINDOWTITLE) $(DRAFT_WINTITLE)); \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1010
	  $(call OptionPair,-header,$(HTTPSERVER_HEADER)$(DRAFT_HEADER)); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1011
	  $(call OptionPair,-bottom,$(HTTPSERVER_BOTTOM)$(DRAFT_BOTTOM)); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1012
	  $(call OptionTrip,-linkoffline,$(HTTPSERVER2COREAPI),$(COREAPI_DOCSDIR)/); \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1013
	) >> $@
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1014
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1015
# Create a file with the package names in it
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
  1016
$(HTTPSERVER_PACKAGES_FILE): $(call PackageDependencies,$(HTTPSERVER_PKGS))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1017
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1018
	$(call PackageFilter,$(HTTPSERVER_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1019
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1020
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1021
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1022
# mgmtdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1023
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1024
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1025
ALL_OTHER_TARGETS += mgmtdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1026
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1027
MGMT_DOCDIR := $(JRE_API_DOCSDIR)/management/extension
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1028
MGMT2COREAPI := ../../$(JDKJRE2COREAPI)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1029
JVM_MIB_NAME := JVM-MANAGEMENT-MIB.mib
25854
98ce0879ab4c 8054834: Modular Source Code
chegar
parents: 25614
diff changeset
  1030
JVM_MIB_SRC := $(JDK_TOPDIR)/src/closed/jdk.snmp/share/classes/sun/management/snmp/$(JVM_MIB_NAME)
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1031
MGMT_DOCTITLE := Monitoring and Management Interface for the Java$(TRADEMARK) Platform
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1032
MGMT_WINDOWTITLE := Monitoring and Management Interface for the Java Platform
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1033
MGMT_HEADER := <strong>Monitoring and Management Interface for the Java Platform</strong>
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1034
MGMT_BOTTOM := $(call CommonBottom,$(MGMT_FIRST_COPYRIGHT_YEAR))
25854
98ce0879ab4c 8054834: Modular Source Code
chegar
parents: 25614
diff changeset
  1035
MGMT_OVERVIEW := $(JDK_TOPDIR)/src/java.management/share/classes/mgmt-overview.html
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1036
# MGMT_PKGS is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1037
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1038
# The index.html, options, and packages files
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1039
MGMT_INDEX_FILE = $(MGMT_DOCDIR)/index.html
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1040
MGMT_OPTIONS_FILE = $(DOCSTMPDIR)/mgmt.options
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1041
MGMT_PACKAGES_FILE = $(DOCSTMPDIR)/mgmt.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1042
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1043
# The modules required to be documented
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1044
MGMT_MODULES = jdk.management
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1045
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1046
mgmtdocs: $(MGMT_INDEX_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1047
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1048
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1049
$(MGMT_INDEX_FILE): GET2DOCSDIR=$(MGMT2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1050
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1051
# Run javadoc if the index file is out of date or missing
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
  1052
$(MGMT_INDEX_FILE): $(MGMT_OPTIONS_FILE) $(MGMT_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1053
	$(prep-javadoc)
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1054
	@if [ -f $(JVM_MIB_SRC) ] ; then \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1055
	  $(CP) $(JVM_MIB_SRC) $(@D)/.. ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1056
	else \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1057
	  $(ECHO) "WARNING: File $(JVM_MIB_NAME) not available."; \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1058
	fi
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1059
	$(call JavadocSummary,$(MGMT_OPTIONS_FILE),$(MGMT_PACKAGES_FILE))
29176
45baf3cdc876 8074395: Random build failures in javadoc on Solaris
erikj
parents: 28010
diff changeset
  1060
	$(JAVADOC_CMD_SMALL) -d $(@D) \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1061
	    @$(MGMT_OPTIONS_FILE) @$(MGMT_PACKAGES_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1062
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1063
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1064
$(MGMT_OPTIONS_FILE): $(MGMT_OVERVIEW)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1065
	$(prep-target)
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
  1066
	@($(call COMMON_JAVADOCFLAGS) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
  1067
          $(call COMMON_JAVADOCTAGS) ; \
22033
c323078abaf4 8031081: Use separate doclint flags for different doc bundles
darcy
parents: 21759
diff changeset
  1068
	  $(call OptionOnly,-Xdoclint:none) ; \
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1069
          $(call OptionPair,-system,none) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1070
	  $(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1071
	  $(call OptionPair,-addmods,$(MGMT_MODULES)) ; \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1072
	  $(call OptionPair,-encoding,ascii) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1073
	  $(call OptionOnly,-nodeprecatedlist) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1074
	  $(call OptionPair,-overview,$(MGMT_OVERVIEW)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1075
	  $(call OptionPair,-doctitle,$(MGMT_DOCTITLE)) ; \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1076
	  $(call OptionPair,-windowtitle,$(MGMT_WINDOWTITLE) $(DRAFT_WINTITLE)); \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1077
	  $(call OptionPair,-header,$(MGMT_HEADER)$(DRAFT_HEADER)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1078
	  $(call OptionPair,-bottom,$(MGMT_BOTTOM)$(DRAFT_BOTTOM)) ; \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1079
	  $(call OptionTrip,-linkoffline,$(MGMT2COREAPI),$(COREAPI_DOCSDIR)/); \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1080
	) >> $@
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1081
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1082
# Create a file with the package names in it
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
  1083
$(MGMT_PACKAGES_FILE): $(call PackageDependencies,$(MGMT_PKGS))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1084
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1085
	$(call PackageFilter,$(MGMT_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1086
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1087
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1088
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1089
# attachdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1090
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1091
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1092
ALL_OTHER_TARGETS += attachdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1093
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1094
ATTACH_DOCDIR := $(JDK_API_DOCSDIR)/attach/spec
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1095
ATTACH2COREAPI := ../../$(JDKJRE2COREAPI)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1096
ATTACH_DOCTITLE := Attach API
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1097
ATTACH_WINDOWTITLE := Attach API
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1098
ATTACH_HEADER := <strong>Attach API</strong>
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1099
ATTACH_BOTTOM := $(call CommonBottom,$(ATTACH_FIRST_COPYRIGHT_YEAR))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1100
# ATTACH_PKGS is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1101
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1102
ATTACH_INDEX_HTML = $(ATTACH_DOCDIR)/index.html
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1103
ATTACH_OPTIONS_FILE = $(DOCSTMPDIR)/attach.options
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1104
ATTACH_PACKAGES_FILE = $(DOCSTMPDIR)/attach.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1105
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1106
# The modules required to be documented
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1107
ATTACH_MODULES = jdk.attach
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1108
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1109
attachdocs: $(ATTACH_INDEX_HTML)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1110
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1111
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1112
$(ATTACH_INDEX_HTML): GET2DOCSDIR=$(ATTACH2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1113
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1114
# Run javadoc if the index file is out of date or missing
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
  1115
$(ATTACH_INDEX_HTML): $(ATTACH_OPTIONS_FILE) $(ATTACH_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1116
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1117
	$(call JavadocSummary,$(ATTACH_OPTIONS_FILE),$(ATTACH_PACKAGES_FILE))
29176
45baf3cdc876 8074395: Random build failures in javadoc on Solaris
erikj
parents: 28010
diff changeset
  1118
	$(JAVADOC_CMD_SMALL) -d $(@D) \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1119
	    @$(ATTACH_OPTIONS_FILE) @$(ATTACH_PACKAGES_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1120
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1121
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1122
$(ATTACH_OPTIONS_FILE):
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1123
	$(prep-target)
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
  1124
	@($(call COMMON_JAVADOCFLAGS) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
  1125
          $(call COMMON_JAVADOCTAGS) ; \
22033
c323078abaf4 8031081: Use separate doclint flags for different doc bundles
darcy
parents: 21759
diff changeset
  1126
	  $(call OptionOnly,-Xdoclint:none) ; \
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1127
          $(call OptionPair,-system,none) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1128
	  $(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1129
	  $(call OptionPair,-addmods,$(ATTACH_MODULES)) ; \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1130
	  $(call OptionPair,-encoding,ascii) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1131
	  $(call OptionOnly,-nodeprecatedlist) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1132
	  $(call OptionPair,-doctitle,$(ATTACH_DOCTITLE)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1133
	  $(call OptionPair,-windowtitle,$(ATTACH_WINDOWTITLE) $(DRAFT_WINTITLE)); \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1134
	  $(call OptionPair,-header,$(ATTACH_HEADER)$(DRAFT_HEADER)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1135
	  $(call OptionPair,-bottom,$(ATTACH_BOTTOM)$(DRAFT_BOTTOM)) ; \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1136
	  $(call OptionTrip,-linkoffline,$(ATTACH2COREAPI),$(COREAPI_DOCSDIR)/); \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1137
	) >> $@
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1138
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1139
# Create a file with the package names in it
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
  1140
$(ATTACH_PACKAGES_FILE): $(call PackageDependencies,$(ATTACH_PKGS))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1141
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1142
	$(call PackageFilter,$(ATTACH_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1143
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1144
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1145
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1146
# jconsoledocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1147
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1148
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1149
ALL_OTHER_TARGETS += jconsoledocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1150
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1151
JCONSOLE_DOCDIR := $(JDK_API_DOCSDIR)/jconsole/spec
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1152
JCONSOLE2COREAPI := ../../$(JDKJRE2COREAPI)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1153
JCONSOLE_DOCTITLE := JConsole API
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1154
JCONSOLE_WINDOWTITLE := JConsole API
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1155
JCONSOLE_HEADER := <strong>JConsole API</strong>
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1156
JCONSOLE_BOTTOM := $(call CommonBottom,$(JCONSOLE_FIRST_COPYRIGHT_YEAR))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1157
# JCONSOLE_PKGS is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1158
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1159
JCONSOLE_INDEX_HTML = $(JCONSOLE_DOCDIR)/index.html
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1160
JCONSOLE_OPTIONS_FILE = $(DOCSTMPDIR)/jconsole.options
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1161
JCONSOLE_PACKAGES_FILE = $(DOCSTMPDIR)/jconsole.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1162
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1163
# The modules required to be documented
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1164
JCONSOLE_MODULES = jdk.jconsole
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1165
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1166
jconsoledocs: $(JCONSOLE_INDEX_HTML)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1167
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1168
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1169
$(JCONSOLE_INDEX_HTML): GET2DOCSDIR=$(JCONSOLE2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1170
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1171
# Run javadoc if the index file is out of date or missing
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
  1172
$(JCONSOLE_INDEX_HTML): $(JCONSOLE_OPTIONS_FILE) $(JCONSOLE_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1173
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1174
	$(call JavadocSummary,$(JCONSOLE_OPTIONS_FILE),$(JCONSOLE_PACKAGES_FILE))
29176
45baf3cdc876 8074395: Random build failures in javadoc on Solaris
erikj
parents: 28010
diff changeset
  1175
	$(JAVADOC_CMD_SMALL) -d $(@D) \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1176
	    @$(JCONSOLE_OPTIONS_FILE) @$(JCONSOLE_PACKAGES_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1177
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1178
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1179
$(JCONSOLE_OPTIONS_FILE):
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1180
	$(prep-target)
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
  1181
	@($(call COMMON_JAVADOCFLAGS) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
  1182
          $(call COMMON_JAVADOCTAGS) ; \
22033
c323078abaf4 8031081: Use separate doclint flags for different doc bundles
darcy
parents: 21759
diff changeset
  1183
	  $(call OptionOnly,-Xdoclint:none) ; \
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1184
          $(call OptionPair,-system,none) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1185
	  $(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1186
	  $(call OptionPair,-addmods,$(JCONSOLE_MODULES)) ; \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1187
	  $(call OptionPair,-encoding,ascii) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1188
	  $(call OptionOnly,-nodeprecatedlist) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1189
	  $(call OptionPair,-doctitle,$(JCONSOLE_DOCTITLE)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1190
	  $(call OptionPair,-windowtitle,$(JCONSOLE_WINDOWTITLE) $(DRAFT_WINTITLE)); \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1191
	  $(call OptionPair,-header,$(JCONSOLE_HEADER)$(DRAFT_HEADER)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1192
	  $(call OptionPair,-bottom,$(JCONSOLE_BOTTOM)$(DRAFT_BOTTOM)) ; \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1193
	  $(call OptionTrip,-linkoffline,$(JCONSOLE2COREAPI),$(COREAPI_DOCSDIR)/); \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1194
	) >> $@
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1195
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1196
# Create a file with the package names in it
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
  1197
$(JCONSOLE_PACKAGES_FILE): $(call PackageDependencies,$(JCONSOLE_PKGS))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1198
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1199
	$(call PackageFilter,$(JCONSOLE_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1200
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1201
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1202
#
36792
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1203
# jshellapidocs
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1204
#
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1205
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1206
ALL_OTHER_TARGETS += jshellapidocs
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1207
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1208
JSHELLAPI_DOCDIR := $(JDK_API_DOCSDIR)/jshell
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1209
JSHELLAPI2COREAPI := ../../$(JDKJRE2COREAPI)
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1210
JSHELLAPI_DOCTITLE := JShell API
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1211
JSHELLAPI_WINDOWTITLE := JShell API
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1212
JSHELLAPI_HEADER := <strong>JSHELL API</strong>
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1213
JSHELLAPI_BOTTOM := $(call CommonBottom,$(JSHELLAPI_FIRST_COPYRIGHT_YEAR))
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1214
JSHELLAPI_GROUPNAME := Packages
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1215
JSHELLAPI_REGEXP := jdk.jshell.*
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1216
# JSHELLAPI_PKGS is located in NON_CORE_PKGS.gmk
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1217
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1218
JSHELLAPI_INDEX_HTML = $(JSHELLAPI_DOCDIR)/index.html
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1219
JSHELLAPI_OPTIONS_FILE = $(DOCSTMPDIR)/jshellapi.options
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1220
JSHELLAPI_PACKAGES_FILE = $(DOCSTMPDIR)/jshellapi.packages
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1221
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1222
# The modules required to be documented
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1223
JSHELLAPI_MODULES = jdk.jshell
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1224
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1225
jshellapidocs: $(JSHELLAPI_INDEX_HTML)
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1226
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1227
# Set relative location to core api document root
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1228
$(JSHELLAPI_INDEX_HTML): GET2DOCSDIR=$(JSHELLAPI2COREAPI)/..
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1229
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1230
# Run javadoc if the index file is out of date or missing
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1231
$(JSHELLAPI_INDEX_HTML): $(JSHELLAPI_OPTIONS_FILE) $(JSHELLAPI_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1232
	$(prep-javadoc)
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1233
	$(call JavadocSummary,$(JSHELLAPI_OPTIONS_FILE),$(JSHELLAPI_PACKAGES_FILE))
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1234
	$(JAVADOC_CMD_SMALL) -d $(@D) \
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1235
	    @$(JSHELLAPI_OPTIONS_FILE) @$(JSHELLAPI_PACKAGES_FILE)
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1236
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1237
# Create file with javadoc options in it
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1238
$(JSHELLAPI_OPTIONS_FILE):
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1239
	$(prep-target)
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1240
	@($(call COMMON_JAVADOCFLAGS) ; \
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1241
          $(call COMMON_JAVADOCTAGS) ; \
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1242
	  $(call OptionOnly,-Xdoclint:all) ; \
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1243
          $(call OptionPair,-system,none) ; \
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1244
	  $(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1245
	  $(call OptionPair,-addmods,$(JSHELLAPI_MODULES)) ; \
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1246
	  $(call OptionPair,-encoding,ascii) ; \
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1247
	  $(call OptionPair,-doctitle,$(JSHELLAPI_DOCTITLE)) ; \
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1248
	  $(call OptionPair,-windowtitle,$(JSHELLAPI_WINDOWTITLE) $(DRAFT_WINTITLE)); \
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1249
	  $(call OptionPair,-header,$(JSHELLAPI_HEADER)$(DRAFT_HEADER)) ; \
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1250
	  $(call OptionPair,-bottom,$(JSHELLAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1251
	  $(call OptionTrip,-group,$(JSHELLAPI_GROUPNAME),$(JSHELLAPI_REGEXP)); \
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1252
	  $(call OptionTrip,-linkoffline,$(JSHELLAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1253
	) >> $@
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1254
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1255
# Create a file with the package names in it
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1256
$(JSHELLAPI_PACKAGES_FILE): $(call PackageDependencies,$(JSHELLAPI_PKGS))
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1257
	$(prep-target)
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1258
	$(call PackageFilter,$(JSHELLAPI_PKGS))
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1259
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1260
#############################################################
09d2e1165981 8153243: make docs should generate JShell API docs
jlahoda
parents: 36506
diff changeset
  1261
#
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1262
# treeapidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1263
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1264
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1265
ALL_OTHER_TARGETS += treeapidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1266
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1267
TREEAPI_DOCDIR := $(JDK_API_DOCSDIR)/javac/tree
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1268
TREEAPI2COREAPI := ../../$(JDKJRE2COREAPI)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1269
TREEAPI_DOCTITLE := Compiler Tree API
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1270
TREEAPI_WINDOWTITLE := Compiler Tree API
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1271
TREEAPI_HEADER := <strong>Compiler Tree API</strong>
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1272
TREEAPI_BOTTOM := $(call CommonBottom,$(TREEAPI_FIRST_COPYRIGHT_YEAR))
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1273
TREEAPI_GROUPNAME := Packages
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1274
TREEAPI_REGEXP := com.sun.source.*
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1275
# TREEAPI_PKGS is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1276
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1277
TREEAPI_INDEX_HTML = $(TREEAPI_DOCDIR)/index.html
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1278
TREEAPI_OPTIONS_FILE = $(DOCSTMPDIR)/treeapi.options
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1279
TREEAPI_PACKAGES_FILE = $(DOCSTMPDIR)/treeapi.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1280
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1281
# The modules required to be documented
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1282
TREEAPI_MODULES = jdk.compiler
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1283
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1284
treeapidocs: $(TREEAPI_INDEX_HTML)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1285
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1286
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1287
$(TREEAPI_INDEX_HTML): GET2DOCSDIR=$(TREEAPI2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1288
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1289
# Run javadoc if the index file is out of date or missing
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
  1290
$(TREEAPI_INDEX_HTML): $(TREEAPI_OPTIONS_FILE) $(TREEAPI_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1291
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1292
	$(call JavadocSummary,$(TREEAPI_OPTIONS_FILE),$(TREEAPI_PACKAGES_FILE))
29176
45baf3cdc876 8074395: Random build failures in javadoc on Solaris
erikj
parents: 28010
diff changeset
  1293
	$(JAVADOC_CMD_SMALL) -d $(@D) \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1294
	    @$(TREEAPI_OPTIONS_FILE) @$(TREEAPI_PACKAGES_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1295
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1296
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1297
$(TREEAPI_OPTIONS_FILE):
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1298
	$(prep-target)
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
  1299
	@($(call COMMON_JAVADOCFLAGS) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
  1300
          $(call COMMON_JAVADOCTAGS) ; \
25043
b5598c2ddf6f 8048302: Update bug reporting URL in make/Javadoc.gmk
darcy
parents: 24232
diff changeset
  1301
	  $(call OptionOnly,-Xdoclint:all) ; \
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1302
          $(call OptionPair,-system,none) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1303
	  $(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1304
	  $(call OptionPair,-addmods,$(TREEAPI_MODULES)) ; \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1305
	  $(call OptionPair,-encoding,ascii) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1306
	  $(call OptionPair,-doctitle,$(TREEAPI_DOCTITLE)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1307
	  $(call OptionPair,-windowtitle,$(TREEAPI_WINDOWTITLE) $(DRAFT_WINTITLE)); \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1308
	  $(call OptionPair,-header,$(TREEAPI_HEADER)$(DRAFT_HEADER)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1309
	  $(call OptionPair,-bottom,$(TREEAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1310
	  $(call OptionTrip,-group,$(TREEAPI_GROUPNAME),$(TREEAPI_REGEXP)); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1311
	  $(call OptionTrip,-linkoffline,$(TREEAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1312
	) >> $@
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1313
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1314
# Create a file with the package names in it
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
  1315
$(TREEAPI_PACKAGES_FILE): $(call PackageDependencies,$(TREEAPI_PKGS))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1316
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1317
	$(call PackageFilter,$(TREEAPI_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1318
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1319
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1320
#
27596
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1321
# nashornapidocs
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1322
#
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1323
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1324
ALL_OTHER_TARGETS += nashornapidocs
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1325
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1326
NASHORNAPI_DOCDIR := $(JDK_API_DOCSDIR)/nashorn
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1327
NASHORNAPI2COREAPI := ../$(JDKJRE2COREAPI)
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1328
NASHORNAPI_DOCTITLE := Nashorn API
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1329
NASHORNAPI_WINDOWTITLE := Nashorn API
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1330
NASHORNAPI_HEADER := <strong>Nashorn API</strong>
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1331
NASHORNAPI_BOTTOM := $(call CommonBottom,$(NASHORNAPI_FIRST_COPYRIGHT_YEAR))
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1332
NASHORNAPI_GROUPNAME := Packages
30416
6216eb71e929 8079900: javadoc is missing for jdk.nashorn.api.tree package
sundar
parents: 29851
diff changeset
  1333
NASHORNAPI_REGEXP := jdk.nashorn.api.*
27596
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1334
# NASHORNAPI_PKGS is located in NON_CORE_PKGS.gmk
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1335
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1336
NASHORNAPI_INDEX_HTML = $(NASHORNAPI_DOCDIR)/index.html
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1337
NASHORNAPI_OPTIONS_FILE = $(DOCSTMPDIR)/nashornapi.options
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1338
NASHORNAPI_PACKAGES_FILE = $(DOCSTMPDIR)/nashornapi.packages
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1339
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1340
# The modules required to be documented
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1341
NASHORNAPI_MODULES = jdk.scripting.nashorn
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1342
27596
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1343
nashornapidocs: $(NASHORNAPI_INDEX_HTML)
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1344
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1345
# Set relative location to core api document root
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1346
$(NASHORNAPI_INDEX_HTML): GET2DOCSDIR=$(NASHORNAPI2COREAPI)/..
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1347
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1348
# Run javadoc if the index file is out of date or missing
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1349
$(NASHORNAPI_INDEX_HTML): $(NASHORNAPI_OPTIONS_FILE) $(NASHORNAPI_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1350
	$(prep-javadoc)
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1351
	$(call JavadocSummary,$(NASHORNAPI_OPTIONS_FILE),$(NASHORNAPI_PACKAGES_FILE))
29176
45baf3cdc876 8074395: Random build failures in javadoc on Solaris
erikj
parents: 28010
diff changeset
  1352
	$(JAVADOC_CMD_SMALL) -d $(@D) \
27596
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1353
	    @$(NASHORNAPI_OPTIONS_FILE) @$(NASHORNAPI_PACKAGES_FILE)
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1354
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1355
# Create file with javadoc options in it
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1356
$(NASHORNAPI_OPTIONS_FILE):
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1357
	$(prep-target)
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1358
	@($(call COMMON_JAVADOCFLAGS) ; \
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1359
          $(call COMMON_JAVADOCTAGS) ; \
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1360
	  $(call OptionOnly,-Xdoclint:all) ; \
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1361
          $(call OptionPair,-system,none) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1362
	  $(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1363
	  $(call OptionPair,-addmods,$(NASHORNAPI_MODULES)) ; \
27596
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1364
	  $(call OptionPair,-encoding,ascii) ; \
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1365
	  $(call OptionPair,-doctitle,$(NASHORNAPI_DOCTITLE)) ; \
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1366
	  $(call OptionPair,-windowtitle,$(NASHORNAPI_WINDOWTITLE) $(DRAFT_WINTITLE)); \
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1367
	  $(call OptionPair,-header,$(NASHORNAPI_HEADER)$(DRAFT_HEADER)) ; \
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1368
	  $(call OptionPair,-bottom,$(NASHORNAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1369
	  $(call OptionTrip,-group,$(NASHORNAPI_GROUPNAME),$(NASHORNAPI_REGEXP)); \
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1370
	  $(call OptionTrip,-linkoffline,$(NASHORNAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1371
	) >> $@
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1372
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1373
# Create a file with the package names in it
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1374
$(NASHORNAPI_PACKAGES_FILE): $(call PackageDependencies,$(NASHORNAPI_PKGS))
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1375
	$(prep-target)
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1376
	$(call PackageFilter,$(NASHORNAPI_PKGS))
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1377
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1378
#############################################################
da40665398a4 8066146: jdk.nashorn.api.scripting package javadoc should be included in jdk docs
sundar
parents: 27595
diff changeset
  1379
#
35369
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1380
# dynalinkapidocs
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1381
#
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1382
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1383
ALL_OTHER_TARGETS += dynalinkapidocs
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1384
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1385
DYNALINKAPI_DOCDIR := $(JDK_API_DOCSDIR)/dynalink
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1386
DYNALINKAPI2COREAPI := ../$(JDKJRE2COREAPI)
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1387
DYNALINKAPI_DOCTITLE := Dynalink API
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1388
DYNALINKAPI_WINDOWTITLE := Dynalink API
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1389
DYNALINKAPI_HEADER := <strong>Dynalink API</strong>
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1390
DYNALINKAPI_BOTTOM := $(call CommonBottom,$(DYNALINKAPI_FIRST_COPYRIGHT_YEAR))
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1391
DYNALINKAPI_GROUPNAME := Packages
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1392
DYNALINKAPI_REGEXP := jdk.dynalink.*
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1393
# DYNALINKAPI_PKGS is located in NON_CORE_PKGS.gmk
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1394
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1395
DYNALINKAPI_INDEX_HTML = $(DYNALINKAPI_DOCDIR)/index.html
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1396
DYNALINKAPI_OPTIONS_FILE = $(DOCSTMPDIR)/dynalinkapi.options
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1397
DYNALINKAPI_PACKAGES_FILE = $(DOCSTMPDIR)/dynalinkapi.packages
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1398
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1399
# The modules required to be documented
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1400
DYNALINKAPI_MODULES = jdk.dynalink
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1401
35369
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1402
dynalinkapidocs: $(DYNALINKAPI_INDEX_HTML)
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1403
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1404
# Set relative location to core api document root
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1405
$(DYNALINKAPI_INDEX_HTML): GET2DOCSDIR=$(DYNALINKAPI2COREAPI)/..
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1406
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1407
# Run javadoc if the index file is out of date or missing
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1408
$(DYNALINKAPI_INDEX_HTML): $(DYNALINKAPI_OPTIONS_FILE) $(DYNALINKAPI_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1409
	$(prep-javadoc)
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1410
	$(call JavadocSummary,$(DYNALINKAPI_OPTIONS_FILE),$(DYNALINKAPI_PACKAGES_FILE))
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1411
	$(JAVADOC_CMD_SMALL) -d $(@D) \
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1412
	    @$(DYNALINKAPI_OPTIONS_FILE) @$(DYNALINKAPI_PACKAGES_FILE)
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1413
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1414
# Create file with javadoc options in it
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1415
$(DYNALINKAPI_OPTIONS_FILE):
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1416
	$(prep-target)
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1417
	@($(call COMMON_JAVADOCFLAGS) ; \
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1418
          $(call COMMON_JAVADOCTAGS) ; \
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1419
	  $(call OptionOnly,-Xdoclint:all) ; \
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1420
          $(call OptionPair,-system,none) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1421
	  $(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1422
	  $(call OptionPair,-addmods,$(DYNALINKAPI_MODULES)) ; \
35369
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1423
	  $(call OptionPair,-encoding,ascii) ; \
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1424
	  $(call OptionPair,-doctitle,$(DYNALINKAPI_DOCTITLE)) ; \
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1425
	  $(call OptionPair,-windowtitle,$(DYNALINKAPI_WINDOWTITLE) $(DRAFT_WINTITLE)); \
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1426
	  $(call OptionPair,-header,$(DYNALINKAPI_HEADER)$(DRAFT_HEADER)) ; \
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1427
	  $(call OptionPair,-bottom,$(DYNALINKAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1428
	  $(call OptionTrip,-group,$(DYNALINKAPI_GROUPNAME),$(DYNALINKAPI_REGEXP)); \
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1429
	  $(call OptionTrip,-linkoffline,$(DYNALINKAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1430
	) >> $@
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1431
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1432
# Create a file with the package names in it
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1433
$(DYNALINKAPI_PACKAGES_FILE): $(call PackageDependencies,$(DYNALINKAPI_PKGS))
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1434
	$(prep-target)
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1435
	$(call PackageFilter,$(DYNALINKAPI_PKGS))
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1436
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1437
#############################################################
a68e46d94261 8148617: top level make docs target does not generate javadocs for dynalink API
sundar
parents: 35367
diff changeset
  1438
#
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1439
# sctpdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1440
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1441
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1442
ALL_OTHER_TARGETS += sctpdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1443
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1444
SCTPAPI_DOCDIR := $(JRE_API_DOCSDIR)/nio/sctp/spec
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1445
SCTPAPI2COREAPI := ../../../$(JDKJRE2COREAPI)
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1446
SCTPAPI_DOCTITLE := SCTP API
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1447
SCTPAPI_WINDOWTITLE := SCTP API
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1448
SCTPAPI_HEADER := <strong>SCTP API</strong>
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1449
SCTPAPI_BOTTOM := $(call CommonBottom,$(SCTPAPI_FIRST_COPYRIGHT_YEAR))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1450
# SCTPAPI_PKGS is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1451
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1452
SCTPAPI_INDEX_HTML = $(SCTPAPI_DOCDIR)/index.html
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1453
SCTPAPI_OPTIONS_FILE = $(DOCSTMPDIR)/sctp.options
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1454
SCTPAPI_PACKAGES_FILE = $(DOCSTMPDIR)/sctp.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1455
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1456
# The modules required to be documented
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1457
SCTPAPI_MODULES = jdk.sctp
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1458
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1459
sctpdocs: $(SCTPAPI_INDEX_HTML)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1460
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1461
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1462
$(SCTPAPI_INDEX_HTML): GET2DOCSDIR=$(SCTPAPI2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1463
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1464
# Run javadoc if the index file is out of date or missing
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
  1465
$(SCTPAPI_INDEX_HTML): $(SCTPAPI_OPTIONS_FILE) $(SCTPAPI_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1466
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1467
	$(call JavadocSummary,$(SCTPAPI_OPTIONS_FILE),$(SCTPAPI_PACKAGES_FILE))
29176
45baf3cdc876 8074395: Random build failures in javadoc on Solaris
erikj
parents: 28010
diff changeset
  1468
	$(JAVADOC_CMD_SMALL) -d $(@D) \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1469
	    @$(SCTPAPI_OPTIONS_FILE) @$(SCTPAPI_PACKAGES_FILE)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1470
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1471
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1472
$(SCTPAPI_OPTIONS_FILE):
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1473
	$(prep-target)
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
  1474
	@($(call COMMON_JAVADOCFLAGS) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
  1475
          $(call COMMON_JAVADOCTAGS) ; \
22033
c323078abaf4 8031081: Use separate doclint flags for different doc bundles
darcy
parents: 21759
diff changeset
  1476
	  $(call OptionOnly,-Xdoclint:none) ; \
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1477
          $(call OptionPair,-system,none) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1478
	  $(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1479
	  $(call OptionPair,-addmods,$(SCTPAPI_MODULES)) ; \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1480
	  $(call OptionPair,-encoding,ascii) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1481
	  $(call OptionOnly,-nodeprecatedlist) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1482
	  $(call OptionPair,-doctitle,$(SCTPAPI_DOCTITLE)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1483
	  $(call OptionPair,-windowtitle,$(SCTPAPI_WINDOWTITLE) $(DRAFT_WINTITLE)); \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1484
	  $(call OptionPair,-header,$(SCTPAPI_HEADER)$(DRAFT_HEADER)) ; \
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1485
	  $(call OptionPair,-bottom,$(SCTPAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1486
	  $(call OptionTrip,-linkoffline,$(SCTPAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
20363
fa7663fc5d50 8001931: The new build system whitespace cleanup
ihse
parents: 17067
diff changeset
  1487
	) >> $@
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1488
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1489
# Create a file with the package names in it
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
  1490
$(SCTPAPI_PACKAGES_FILE): $(call PackageDependencies,$(SCTPAPI_PKGS))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1491
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1492
	$(call PackageFilter,$(SCTPAPI_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1493
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1494
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1495
#
29851
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1496
# jaccessdocs - Java Accessibility Utilities
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1497
#
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1498
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1499
ALL_OTHER_TARGETS += jaccessdocs
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1500
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1501
JACCESSAPI_DOCDIR := $(JRE_API_DOCSDIR)/accessibility/jaccess/spec
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1502
JACCESSAPI2COREAPI := ../../../$(JDKJRE2COREAPI)
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1503
JACCESSAPI_DOCTITLE := JACCESS API
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1504
JACCESSAPI_WINDOWTITLE := JACCESS API
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1505
JACCESSAPI_HEADER := <strong>JACCESS API</strong>
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1506
JACCESSAPI_BOTTOM := $(call CommonBottom,$(JACCESSAPI_FIRST_COPYRIGHT_YEAR))
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1507
# JACCESSAPI_PKGS is located in NON_CORE_PKGS.gmk
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1508
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1509
JACCESSAPI_INDEX_HTML = $(JACCESSAPI_DOCDIR)/index.html
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1510
JACCESSAPI_OPTIONS_FILE = $(DOCSTMPDIR)/jaccess.options
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1511
JACCESSAPI_PACKAGES_FILE = $(DOCSTMPDIR)/jaccess.packages
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1512
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1513
# The modules required to be documented
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1514
JACCESSAPI_MODULES = jdk.accessibility
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1515
29851
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1516
jaccessdocs: $(JACCESSAPI_INDEX_HTML)
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1517
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1518
# Set relative location to core api document root
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1519
$(JACCESSAPI_INDEX_HTML): GET2DOCSDIR=$(JACCESSAPI2COREAPI)/..
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1520
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1521
# Run javadoc if the index file is out of date or missing
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1522
$(JACCESSAPI_INDEX_HTML): $(JACCESSAPI_OPTIONS_FILE) $(JACCESSAPI_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1523
	$(prep-javadoc)
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1524
	$(call JavadocSummary,$(JACCESSAPI_OPTIONS_FILE),$(JACCESSAPI_PACKAGES_FILE))
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1525
	$(JAVADOC_CMD) -d $(@D) \
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1526
	    @$(JACCESSAPI_OPTIONS_FILE) @$(JACCESSAPI_PACKAGES_FILE)
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1527
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1528
# Create file with javadoc options in it
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1529
$(JACCESSAPI_OPTIONS_FILE):
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1530
	$(prep-target)
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1531
	@($(call COMMON_JAVADOCFLAGS) ; \
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1532
	  $(call COMMON_JAVADOCTAGS) ; \
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1533
	  $(call OptionOnly,-Xdoclint:all) ; \
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1534
          $(call OptionPair,-system,none) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1535
	  $(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1536
	  $(call OptionPair,-addmods,$(JACCESSAPI_MODULES)) ; \
29851
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1537
	  $(call OptionPair,-encoding,ascii) ; \
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1538
	  $(call OptionOnly,-nodeprecatedlist) ; \
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1539
	  $(call OptionPair,-doctitle,$(JACCESSAPI_DOCTITLE)) ; \
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1540
	  $(call OptionPair,-windowtitle,$(JACCESSAPI_WINDOWTITLE) $(DRAFT_WINTITLE)); \
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1541
	  $(call OptionPair,-header,$(JACCESSAPI_HEADER)$(DRAFT_HEADER)) ; \
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1542
	  $(call OptionPair,-bottom,$(JACCESSAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1543
	  $(call OptionTrip,-linkoffline,$(JACCESSAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1544
	) >> $@
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1545
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1546
# Create a file with the package names in it
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1547
$(JACCESSAPI_PACKAGES_FILE): $(call PackageDependencies,$(JACCESSAPI_PKGS))
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1548
	$(prep-target)
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1549
	$(call PackageFilter,$(JACCESSAPI_PKGS))
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1550
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1551
#############################################################
81a61a04e2fe 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents: 29176
diff changeset
  1552
#
23836
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1553
# jdk.net docs
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1554
#
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1555
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1556
ALL_OTHER_TARGETS += jdknetdocs
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1557
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1558
JDKNET_DOCDIR := $(JRE_API_DOCSDIR)/net/socketoptions/spec
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1559
JDKNET2COREAPI := ../../../$(JDKJRE2COREAPI)
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1560
JDKNET_DOCTITLE := jdk.net API
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1561
JDKNET_WINDOWTITLE := jdk.net API
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1562
JDKNET_HEADER := <strong>jdk.net API</strong>
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1563
JDKNET_BOTTOM := $(call CommonBottom,$(JDKNET_FIRST_COPYRIGHT_YEAR))
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1564
JDKNET_PKGS := jdk.net
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1565
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1566
JDKNET_INDEX_HTML = $(JDKNET_DOCDIR)/index.html
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1567
JDKNET_OPTIONS_FILE = $(DOCSTMPDIR)/jdknet.options
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1568
JDKNET_PACKAGES_FILE = $(DOCSTMPDIR)/jdknet.packages
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1569
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1570
# The modules required to be documented
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1571
JDKNET_MODULES = java.base
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1572
23836
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1573
jdknetdocs: $(JDKNET_INDEX_HTML)
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1574
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1575
# Set relative location to core api document root
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1576
$(JDKNET_INDEX_HTML): GET2DOCSDIR=$(JDKNET2COREAPI)/..
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1577
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1578
# Run javadoc if the index file is out of date or missing
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
  1579
$(JDKNET_INDEX_HTML): $(JDKNET_OPTIONS_FILE) $(JDKNET_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
23836
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1580
	$(prep-javadoc)
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1581
	$(call JavadocSummary,$(JDKNET_OPTIONS_FILE),$(JDKNET_PACKAGES_FILE))
29176
45baf3cdc876 8074395: Random build failures in javadoc on Solaris
erikj
parents: 28010
diff changeset
  1582
	$(JAVADOC_CMD_SMALL) -d $(@D) \
23836
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1583
	    @$(JDKNET_OPTIONS_FILE) @$(JDKNET_PACKAGES_FILE)
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1584
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1585
# Create file with javadoc options in it
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1586
$(JDKNET_OPTIONS_FILE):
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1587
	$(prep-target)
25614
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
  1588
	@($(call COMMON_JAVADOCFLAGS) ; \
0d18591d71d8 8051010: Support @apiNote, @implSpec and @implNote in all javadoc bundles
mduigou
parents: 25046
diff changeset
  1589
          $(call COMMON_JAVADOCTAGS) ; \
23836
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1590
	  $(call OptionOnly,-Xdoclint:none) ; \
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1591
          $(call OptionPair,-system,none) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1592
	  $(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1593
	  $(call OptionPair,-addmods,$(JDKNET_MODULES)) ; \
23836
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1594
	  $(call OptionPair,-encoding,ascii) ; \
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1595
	  $(call OptionOnly,-nodeprecatedlist) ; \
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1596
	  $(call OptionPair,-doctitle,$(JDKNET_DOCTITLE)) ; \
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1597
	  $(call OptionPair,-windowtitle,$(JDKNET_WINDOWTITLE) $(DRAFT_WINTITLE)); \
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1598
	  $(call OptionPair,-header,$(JDKNET_HEADER)$(DRAFT_HEADER)); \
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1599
	  $(call OptionPair,-bottom,$(JDKNET_BOTTOM)$(DRAFT_BOTTOM)); \
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1600
	  $(call OptionTrip,-linkoffline,$(JDKNET2COREAPI),$(COREAPI_DOCSDIR)/); \
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1601
	) >> $@
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1602
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1603
# Create a file with the package names in it
23986
1809fb8266cb 8041487: Fix proper dependencies for correct incremental build of javadocs
erikj
parents: 23836
diff changeset
  1604
$(JDKNET_PACKAGES_FILE): $(call PackageDependencies,$(JDKNET_PKGS))
23836
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1605
	$(prep-target)
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1606
	$(call PackageFilter,$(JDKNET_PKGS))
a199f7dbfbc6 8036979: Support java.net.SocketOption<> in java.net socket types
michaelm
parents: 22033
diff changeset
  1607
36506
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1608
#############################################################
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1609
#
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1610
# jlink plugin API docs
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1611
#
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1612
# TODO: Need to decide when the plugin API is ready to publish as experimental API.
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1613
# This target is temporarily added for internal use for now.
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1614
#        
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1615
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1616
ALL_OTHER_TARGETS += jlinkdocs
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1617
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1618
JLINK_PLUGIN_FIRST_COPYRIGHT_YEAR = 2015
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1619
JLINK_PLUGIN_DOCDIR := $(JDK_API_DOCSDIR)/jlink
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1620
JLINK_PLUGIN2COREAPI := ../$(JDKJRE2COREAPI)
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1621
JLINK_PLUGIN_DOCTITLE := JLink Plugin API - EXPERIMENTAL
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1622
JLINK_PLUGIN_WINDOWTITLE := JLink Plugin API - EXPERIMENTAL
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1623
JLINK_PLUGIN_HEADER := <strong>JLink Plugin API - EXPERIMENTAL</strong>
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1624
JLINK_PLUGIN_BOTTOM := $(call CommonBottom,$(JLINK_PLUGIN_FIRST_COPYRIGHT_YEAR))
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1625
JLINK_PLUGIN_PKGS = jdk.tools.jlink \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1626
    jdk.tools.jlink.builder \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1627
    jdk.tools.jlink.plugin
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1628
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1629
JLINK_PLUGIN_INDEX_HTML = $(JLINK_PLUGIN_DOCDIR)/index.html
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1630
JLINK_PLUGIN_OPTIONS_FILE = $(DOCSTMPDIR)/jlinkplugins.options
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1631
JLINK_PLUGIN_PACKAGES_FILE = $(DOCSTMPDIR)/jlinkplugins.packages
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1632
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1633
# The modules required to be documented
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1634
JLINK_PLUGIN_MODULES = jdk.jlink
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1635
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1636
jlinkdocs: $(JLINK_PLUGIN_INDEX_HTML)
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1637
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1638
# Set relative location to core api document root
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1639
$(JLINK_PLUGIN_INDEX_HTML): GET2DOCSDIR=$(JLINK_PLUGIN2COREAPI)/..
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1640
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1641
# Run javadoc if the index file is out of date or missing
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1642
$(JLINK_PLUGIN_INDEX_HTML): $(JLINK_PLUGIN_OPTIONS_FILE) $(JLINK_PLUGIN_PACKAGES_FILE) $(COREAPI_INDEX_FILE)
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1643
	$(prep-javadoc)
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1644
	$(call JavadocSummary,$(JLINK_PLUGIN_OPTIONS_FILE),$(JLINK_PLUGIN_PACKAGES_FILE))
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1645
	$(JAVADOC_CMD_SMALL) -d $(@D) \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1646
	    @$(JLINK_PLUGIN_OPTIONS_FILE) @$(JLINK_PLUGIN_PACKAGES_FILE)
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1647
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1648
# Create file with javadoc options in it
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1649
$(JLINK_PLUGIN_OPTIONS_FILE):
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1650
	$(prep-target)
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1651
	@($(call COMMON_JAVADOCFLAGS) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1652
          $(call COMMON_JAVADOCTAGS) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1653
	  $(call OptionOnly,-Xdoclint:none) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1654
          $(call OptionPair,-system,none) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1655
	  $(call OptionPair,-modulesourcepath,$(RELEASEDOCS_MODULESOURCEPATH)) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1656
	  $(call OptionPair,-addmods,$(JLINK_PLUGIN_MODULES)) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1657
	  $(call OptionPair,-encoding,ascii) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1658
	  $(call OptionOnly,-nodeprecatedlist) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1659
	  $(call OptionPair,-doctitle,$(JLINK_PLUGIN_DOCTITLE)) ; \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1660
	  $(call OptionPair,-windowtitle,$(JLINK_PLUGIN_WINDOWTITLE) $(DRAFT_WINTITLE)); \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1661
	  $(call OptionPair,-header,$(JLINK_PLUGIN_HEADER)$(DRAFT_HEADER)); \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1662
	  $(call OptionPair,-bottom,$(JLINK_PLUGIN_BOTTOM)$(DRAFT_BOTTOM)); \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1663
	  $(call OptionTrip,-linkoffline,$(JLINK_PLUGIN2COREAPI),$(COREAPI_DOCSDIR)/); \
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1664
	) >> $@
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1665
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1666
# Create a file with the package names in it
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1667
$(JLINK_PLUGIN_PACKAGES_FILE): $(call PackageDependencies,$(JLINK_PLUGIN_PKGS))
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1668
	$(prep-target)
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1669
	$(call PackageFilter,$(JLINK_PLUGIN_PKGS))
17612cee3530 8142968: Module System implementation
alanb
parents: 35817
diff changeset
  1670
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1671
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1672
otherdocs: $(ALL_OTHER_TARGETS)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1673
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1674
#############################################################
33926
3a19edba4808 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30416
diff changeset
  1675
.PHONY: all docs coredocs otherdocs \
3a19edba4808 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30416
diff changeset
  1676
     $(ALL_OTHER_TARGETS)