common/makefiles/javadoc/Javadoc.gmk
author lana
Sun, 20 Jan 2013 23:35:25 -0800
changeset 15172 ddb13fe8f537
parent 15170 dc5d3102a97f
parent 15052 eed28ee0dbd6
child 15393 e3761cf4e010
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
15170
dc5d3102a97f 8004834: Add doclint support into javadoc
jjg
parents: 14466
diff changeset
     1
# Copyright (c) 1997, 2013, 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
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    28
.SUFFIXES: # Delete the default suffixes
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    29
.SUFFIXES: .java
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    30
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    31
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    32
# Definitions for $(DOCSDIR), $(MKDIR), $(BINDIR), etc.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    33
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    34
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    35
DOCSDIR=$(OUTPUT_ROOT)/docs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    36
TEMPDIR=$(OUTPUT_ROOT)/docstemp
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    37
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    38
JDK_SHARE_SRC=$(JDK_TOPDIR)/src/share
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    39
JDK_SHARE_CLASSES=$(JDK_SHARE_SRC)/classes
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    40
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    41
JDK_IMPSRC = $(JDK_OUTPUTDIR)/impsrc
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    42
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    43
JDK_GENSRC = $(JDK_OUTPUTDIR)/gensrc
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    44
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    45
HOTSPOT_DOCS_IMPORT_PATH=$(HOTSPOT_OUTPUTDIR)/docs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    46
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    47
BUILD_NUMBER=$(JDK_BUILD_NUMBER)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    48
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    49
BOOT_JAVA_CMD=$(JAVA)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    50
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    51
JAVADOC_JAR = $(LANGTOOLS_DIST)/bootstrap/lib/javadoc.jar
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    52
JAVADOC_CMD = $(BOOT_JAVA_CMD) \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    53
              -Xmx1024m \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    54
	      -Djava.awt.headless=true \
14466
2f85b948660b 8003844: build-infra: docs target isn't working properly
erikj
parents: 13697
diff changeset
    55
              "-Xbootclasspath/p:$(JAVADOC_JAR)" \
2f85b948660b 8003844: build-infra: docs target isn't working properly
erikj
parents: 13697
diff changeset
    56
              -jar $(JAVADOC_JAR) -bootclasspath $(JDK_OUTPUTDIR)/classes
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    57
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    58
# Copyright year for beginning of Java and some of the apis
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    59
#   (Needed when creating the javadocs)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    60
FIRST_COPYRIGHT_YEAR                = 1993
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    61
DOMAPI_FIRST_COPYRIGHT_YEAR         = 2005
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    62
MIRROR_FIRST_COPYRIGHT_YEAR         = 2004
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    63
DOCLETAPI_FIRST_COPYRIGHT_YEAR      = 1993
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    64
TAGLETAPI_FIRST_COPYRIGHT_YEAR      = 1993
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    65
JDI_FIRST_COPYRIGHT_YEAR            = 1999
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    66
JAAS_FIRST_COPYRIGHT_YEAR           = 1998
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    67
JGSS_FIRST_COPYRIGHT_YEAR           = 2000
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    68
SMARTCARDIO_FIRST_COPYRIGHT_YEAR    = 2005
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    69
HTTPSERVER_FIRST_COPYRIGHT_YEAR     = 2005
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    70
MGMT_FIRST_COPYRIGHT_YEAR           = 2003
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    71
ATTACH_FIRST_COPYRIGHT_YEAR         = 2005
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    72
JCONSOLE_FIRST_COPYRIGHT_YEAR       = 2006
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    73
SCTPAPI_FIRST_COPYRIGHT_YEAR        = 2009
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    74
TRACING_FIRST_COPYRIGHT_YEAR        = 2008
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    75
TREEAPI_FIRST_COPYRIGHT_YEAR        = 2005
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    76
JNLP_FIRST_COPYRIGHT_YEAR           = 1998
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    77
PLUGIN2_FIRST_COPYRIGHT_YEAR        = 2007
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    78
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    79
# Oracle name
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    80
FULL_COMPANY_NAME = Oracle and/or its affiliates
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    81
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    82
# Copyright address
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    83
COMPANY_ADDRESS = 500 Oracle Parkway<br>Redwood Shores, CA 94065 USA.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    84
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    85
# The trademark symbol
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    86
TRADEMARK = &trade;
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    87
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    88
# Common copyright lines used
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    89
#   The word "Copyright" might optionally be a link to the file cpyr.html.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    90
#   The first year of copyright may vary or not be available.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    91
#   The address to the company might be optional.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    92
COMMA:= ,
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    93
EMPTY:=
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    94
SPACE:=$(EMPTY) $(EMPTY)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    95
COPYRIGHT_SYMBOL = &\#x00a9;
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    96
# Macro to construct the copyright line
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    97
#   (The GNU make 3.78.1 "if" conditional is broken, fixed in GNU make 3.81)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    98
define CopyrightLine # optionalurl optionalfirstyear optionaladdress
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
    99
$(if $(strip $1),<a href="$(strip $1)">Copyright</a>,Copyright) \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   100
$(COPYRIGHT_SYMBOL) $(if $2,$2${COMMA},) $(COPYRIGHT_YEAR),\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   101
$(FULL_COMPANY_NAME). $3 All rights reserved.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   102
endef
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   103
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   104
# Url to root of documents
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   105
DOCSDIR_URL = {@docroot}/$(GET2DOCSDIR)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   106
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   107
# Url to copyright html file
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   108
COPYRIGHT_URL-7 = $(DOCSDIR_URL)/legal/cpyr.html
14466
2f85b948660b 8003844: build-infra: docs target isn't working properly
erikj
parents: 13697
diff changeset
   109
# This isn't added in old build yet.
2f85b948660b 8003844: build-infra: docs target isn't working properly
erikj
parents: 13697
diff changeset
   110
#COPYRIGHT_URL-8 = $(DOCSDIR_URL)/legal/cpyr.html
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   111
COPYRIGHT_URL = $(COPYRIGHT_URL-$(JDK_MINOR_VERSION))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   112
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   113
# Url to bug filing site
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   114
BUG_SUBMIT_URL = http://bugreport.sun.com/bugreport/
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   115
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   116
# Common line for how to submit a bug or rfe
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   117
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
   118
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   119
# Url to devdocs page
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   120
#   Was: http://java.sun.com/javase/6/webnotes/devdocs-vs-specs.html
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   121
DEV_DOCS_URL-7 = http://download.oracle.com/javase/7/docs/index.html
14466
2f85b948660b 8003844: build-infra: docs target isn't working properly
erikj
parents: 13697
diff changeset
   122
# This isn't added in old build yet.
2f85b948660b 8003844: build-infra: docs target isn't working properly
erikj
parents: 13697
diff changeset
   123
#DEV_DOCS_URL-8 = http://download.oracle.com/javase/7/docs/index.html
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   124
DEV_DOCS_URL = $(DEV_DOCS_URL-$(JDK_MINOR_VERSION))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   125
DOCS_BASE_URL = http://download.oracle.com/javase/7/docs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   126
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   127
# Common Java trademark line
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   128
JAVA_TRADEMARK_LINE = Java is a trademark or registered trademark of \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   129
$(FULL_COMPANY_NAME) in the US and other countries.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   130
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   131
#################################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   132
# Macros:
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   133
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   134
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   135
# List of all possible directories for javadoc to look for sources
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   136
#    NOTE: Quotes are required around sourcepath argument only on Windows.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   137
#          Otherwise, you get "No packages or classes specified." due 
15052
eed28ee0dbd6 8005548: build-infra: Fix docs target on windows
erikj
parents: 14466
diff changeset
   138
#          to $(PATH_SEP) being interpreted as an end of 
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   139
#          command (newline or shell ; character)
14466
2f85b948660b 8003844: build-infra: docs target isn't working properly
erikj
parents: 13697
diff changeset
   140
ALL_SOURCE_DIRS = $(JDK_SHARE_CLASSES) \
2f85b948660b 8003844: build-infra: docs target isn't working properly
erikj
parents: 13697
diff changeset
   141
                  $(JDK_IMPSRC) \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   142
                  $(JDK_GENSRC) \
14466
2f85b948660b 8003844: build-infra: docs target isn't working properly
erikj
parents: 13697
diff changeset
   143
		  $(JDK_OUTPUTDIR)/gendocsrc_rmic \
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   144
                  $(JDK_TOPDIR)/src/solaris/classes \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   145
                  $(JDK_TOPDIR)/src/windows/classes \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   146
		  $(JDK_SHARE_SRC)/doc/stub
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   147
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   148
# List of directories that actually exist
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   149
ALL_EXISTING_SOURCE_DIRS := $(wildcard $(ALL_SOURCE_DIRS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   150
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   151
# List with classpath separator between them
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   152
EMPTY:=
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   153
SPACE:= $(EMPTY) $(EMPTY)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   154
RELEASEDOCS_SOURCEPATH = \
15052
eed28ee0dbd6 8005548: build-infra: Fix docs target on windows
erikj
parents: 14466
diff changeset
   155
    $(subst $(SPACE),$(PATH_SEP),$(strip $(ALL_SOURCE_DIRS)))
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   156
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   157
define prep-target
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   158
$(MKDIR) -p $(@D)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   159
$(RM) $@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   160
endef
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   161
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   162
# Prep for javadoc creation, assumes $@ is an index.html file
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   163
define prep-javadoc
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   164
@if [ -f "$@" -a "$?" != "" ] ; then \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   165
  $(ECHO) "# Dependencies have changed: $?"; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   166
fi
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   167
$(RM) -r $(@D)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   168
$(MKDIR) -p $(@D)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   169
endef
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   170
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   171
# A cache of the directories in ALL_SOURCE_DIRS
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   172
DIRECTORY_CACHE = $(DOCSTMPDIR)/directory.cache
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   173
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   174
# Given a list of packages, return a list of files or dirs to be dependent on
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   175
#   (Currently only returning a list of directories)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   176
define PackageDependencies # packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   177
$(shell							\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   178
  if [ "$1" != "" -a -f $(DIRECTORY_CACHE) ] ; then	\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   179
    for p in $1 ; do 					\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   180
      pd=`$(ECHO) $${p} | $(SED) -e 's@[.]@/@g'`;	\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   181
      $(CAT) $(DIRECTORY_CACHE) | $(GREP) "/$${pd}/" ; 	\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   182
    done; 						\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   183
  fi							\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   184
)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   185
endef
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   186
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   187
# Given a list of packages, add packages that exist to $@, print summary
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   188
define PackageFilter # packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   189
@if [ "$1" != "" ] ; then 				\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   190
  for p in $1 ; do 					\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   191
    pd=`$(ECHO) $${p} | $(SED) -e 's@[.]@/@g'`; 	\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   192
    found="false"; 					\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   193
    for cp in $(ALL_SOURCE_DIRS) ; do 			\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   194
      if [ -d $${cp}/$${pd} ] ; then 			\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   195
        $(ECHO) "$${p}" >> $@; 				\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   196
	found="true";					\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   197
	break; 						\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   198
      fi; 						\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   199
    done; 						\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   200
    if [ "$${found}" = "false" ] ; then 		\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   201
      $(ECHO) "WARNING: Package not found: $${p}"; 	\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   202
    fi; 						\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   203
  done; 						\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   204
fi
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   205
endef
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   206
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   207
# Print out a summary of the javadoc command about to be run
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   208
define JavadocSummary # optionsfile packagesfile
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   209
@$(ECHO) "# Summary for $@";\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   210
 $(ECHO) "# Options (`$(BASENAME) $1`):"; $(SED) -e 's@^@#   @' $1; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   211
 $(ECHO) "# Packages (`$(BASENAME) $2`):";$(SED) -e 's@^@#   @' $2
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   212
endef
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   213
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   214
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   215
# Temporary directory for javadoc creation
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   216
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   217
DOCSTMPDIR = $(TEMPDIR)/doctmp
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   218
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   219
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   220
# Different api directories created from root directory
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   221
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   222
COREAPI_DOCSDIR   = $(DOCSDIR)/api
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   223
JDK_API_DOCSDIR   = $(DOCSDIR)/jdk/api
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   224
JRE_API_DOCSDIR   = $(DOCSDIR)/jre/api
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   225
PLATFORM_DOCSDIR  = $(DOCSDIR)/platform
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   226
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   227
# The non-core api javadocs need to be able to access the root of the core
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   228
#   api directory, so for jdk/api or jre/api to get to the core api/
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   229
#   directory we would use this:
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   230
JDKJRE2COREAPI    = ../../api
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   231
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   232
# Common bottom argument
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   233
define CommonBottom # year
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   234
<font size="-1"><br> $(call CopyrightLine,,$1,)</font>
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   235
endef
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   236
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   237
# Common trademark bottom argument (Not sure why this is used sometimes)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   238
define CommonTrademarkBottom # year
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   239
<font size="-1">\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   240
$(BUG_SUBMIT_LINE)<br>$(JAVA_TRADEMARK_LINE)<br>\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   241
$(call CopyrightLine,,$1,$(COMPANY_ADDRESS))\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   242
</font>
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   243
endef
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   244
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   245
# Common echo of option
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   246
define OptionOnly # opt
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   247
$(PRINTF) "%s\n" "$1"
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   248
endef
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   249
define OptionPair # opt arg
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   250
$(PRINTF) "%s '%s'\n" "$1" '$2'
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
define OptionTrip # opt arg arg
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   253
$(PRINTF) "%s '%s' '%s'\n" "$1" '$2' '$3'
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   254
endef
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   255
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   256
# Core api bottom argument (with special sauce)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   257
COREAPI_BOTTOM = <font size="-1"> $(BUG_SUBMIT_LINE)\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   258
<br>For further API reference and developer documentation, \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   259
see <a href="$(DEV_DOCS_URL)" target="_blank">Java SE Documentation</a>. \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   260
That documentation contains more detailed, developer-targeted descriptions, \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   261
with conceptual overviews, definitions of terms, workarounds, \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   262
and working code examples.<br>\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   263
$(call CopyrightLine,$(COPYRIGHT_URL),$(FIRST_COPYRIGHT_YEAR),)\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   264
</font>
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   265
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   266
# Common javadoc options used by all
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   267
COMMON_JAVADOCFLAGS =					\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   268
                -XDignore.symbol.file=true              \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   269
		-quiet					\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   270
                -use					\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   271
                -keywords				\
15170
dc5d3102a97f 8004834: Add doclint support into javadoc
jjg
parents: 14466
diff changeset
   272
		-Xdoclint:none				\
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   273
		$(ADDITIONAL_JAVADOCFLAGS)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   274
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   275
ifdef OPENJDK
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   276
  ADDITIONAL_JAVADOCFLAGS =				\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   277
                -Xdocrootparent $(DOCS_BASE_URL)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   278
else
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   279
  ADDITIONAL_JAVADOCFLAGS =
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   280
endif
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   281
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   282
# Draft used for non-fcs documents
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   283
DRAFT_HEADER =
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   284
ifneq ($(MILESTONE), fcs)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   285
    DRAFT_HEADER = <br><strong>DRAFT&nbsp;$(MILESTONE)-$(BUILD_NUMBER)</strong>
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   286
    DRAFT_BOTTOM = <br><strong>DRAFT&nbsp;$(MILESTONE)-$(BUILD_NUMBER)</strong>
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   287
    DRAFT_WINTITLE = $(BUILD_NUMBER)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   288
    # Early access top text (not used in FCS releases)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   289
    COREAPI_TOP_EARLYACCESS = \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   290
<div style="background-color: \#EEEEEE"> \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   291
<div style="padding: 6px; margin-top: 2px; margin-bottom: 6px; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   292
margin-left: 6px; margin-right: 6px; text-align: justify; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   293
font-size: 80%; font-family: Helvetica, Arial, sans-serif; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   294
font-weight: normal;"> \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   295
Please note that the specifications and other information \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   296
contained herein are not final and are subject to change. \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   297
The information is being made available to you solely for purpose of \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   298
evaluation. \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   299
</div> </div>
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   300
endif
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   301
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   302
#################################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   303
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   304
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   305
# CORE_PKGS environment variable has been moved to the following file
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   306
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   307
include CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   308
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   309
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   310
# Load environment variables for API package names that are not part of
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   311
# the Java SE platform
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   312
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   313
include NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   314
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   315
#################################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   316
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   317
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   318
# 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
   319
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   320
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   321
all: docs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   322
docs: coredocs otherdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   323
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   324
#################################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   325
# Production Targets -- USE THESE TARGETS WHEN:
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   326
#    a) You're generating docs outside of release engineering's
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   327
#       standard control build.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   328
#    b) The docs will be pushed to the web and/or included in
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   329
#       the downloaded doc bundle.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   330
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   331
# See:  Notes.html#releaseTargets
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   332
# Note: Spaces precede ifdef/ifndef indents. Tabs precede target commands (!)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   333
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   334
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   335
sanitycheckcoredocs:
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   336
	@$(ECHO) ""
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   337
	@$(ECHO) "Building core api docs with these values:"
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   338
	@$(ECHO) "    BUILD_NUMBER = $(BUILD_NUMBER)"
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   339
	@$(ECHO) "    MILESTONE = $(MILESTONE)"
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   340
	@$(ECHO) ""
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   341
  ifeq ($(BUILD_NUMBER), b00)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   342
	@$(ECHO) "ERROR: Build number must be defined"
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   343
	@$(ECHO) "MILESTONE is set to $(MILESTONE)"
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   344
	@$(ECHO) ""
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   345
	exit 1
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   346
  endif
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   347
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   348
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   349
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   350
# coredocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   351
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   352
COREAPI_DOCTITLE  = Java$(TRADEMARK) Platform, Standard Edition \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   353
$(JDK_MINOR_VERSION)<br>API Specification
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   354
COREAPI_WINDOWTITLE  = Java Platform SE $(JDK_MINOR_VERSION)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   355
COREAPI_HEADER = \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   356
<strong>Java$(TRADEMARK)&nbsp;Platform<br>Standard&nbsp;Ed.&nbsp;$(JDK_MINOR_VERSION)</strong>
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   357
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   358
# Java language specification cite
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   359
TAG_JLS = jls:a:See <cite> \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   360
The Java&trade; Language Specification</cite>:
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   361
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   362
# Overview file for core apis
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   363
COREAPI_OVERVIEW = $(JDK_SHARE_CLASSES)/overview-core.html
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   364
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   365
# The index.html, options, and packages files
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   366
COREAPI_INDEX_FILE    = $(COREAPI_DOCSDIR)/index.html
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   367
COREAPI_OPTIONS_FILE  = $(DOCSTMPDIR)/coredocs.options
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   368
COREAPI_PACKAGES_FILE = $(DOCSTMPDIR)/coredocs.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   369
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   370
coredocs: $(COREAPI_INDEX_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   371
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   372
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   373
$(COREAPI_INDEX_FILE): GET2DOCSDIR=..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   374
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   375
# Run javadoc if the index file is out of date or missing
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   376
$(COREAPI_INDEX_FILE): $(COREAPI_OPTIONS_FILE) $(COREAPI_PACKAGES_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   377
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   378
	$(call JavadocSummary,$(COREAPI_OPTIONS_FILE),$(COREAPI_PACKAGES_FILE))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   379
	$(JAVADOC_CMD) -d $(@D) \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   380
	  @$(COREAPI_OPTIONS_FILE) @$(COREAPI_PACKAGES_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   381
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   382
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   383
$(COREAPI_OPTIONS_FILE): $(COREAPI_OVERVIEW)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   384
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   385
	@($(call OptionOnly,$(COMMON_JAVADOCFLAGS))			; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   386
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   387
	  $(call OptionPair,-encoding,ISO-8859-1)			; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   388
	  $(call OptionPair,-tag,beaninfo:X)				; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   389
	  $(call OptionPair,-tag,revised:X)				; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   390
	  $(call OptionPair,-tag,since.unbundled:X)			; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   391
	  $(call OptionPair,-tag,spec:X)				; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   392
	  $(call OptionPair,-tag,specdefault:X)				; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   393
	  $(call OptionPair,-tag,Note:X)				; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   394
	  $(call OptionPair,-tag,ToDo:X)				; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   395
          $(call OptionPair,-tag,$(TAG_JLS)) 				; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   396
	  $(call OptionOnly,-splitIndex)				; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   397
	  $(call OptionPair,-overview,$(COREAPI_OVERVIEW))		; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   398
	  $(call OptionPair,-doctitle,$(COREAPI_DOCTITLE))		; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   399
	  $(call OptionPair,-windowtitle,$(COREAPI_WINDOWTITLE) $(DRAFT_WINTITLE)) ;\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   400
	  $(call OptionPair,-header,$(COREAPI_HEADER)$(DRAFT_HEADER))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   401
	  $(call OptionPair,-bottom,$(COREAPI_BOTTOM)$(DRAFT_BOTTOM))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   402
        ) >> $@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   403
ifdef COREAPI_TOP_EARLYACCESS
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   404
	@$(call OptionPair,-top,$(COREAPI_TOP_EARLYACCESS)) >> $@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   405
endif
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   406
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   407
# Create a file with the package names in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   408
$(COREAPI_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(CORE_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   409
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   410
	$(call PackageFilter,$(CORE_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   411
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   412
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   413
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   414
# docletapidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   415
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   416
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   417
ALL_OTHER_TARGETS += docletapidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   418
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   419
DOCLETAPI_DOCDIR       := $(JDK_API_DOCSDIR)/javadoc/doclet
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   420
DOCLETAPI2COREAPI      := ../../$(JDKJRE2COREAPI)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   421
DOCLETAPI_DOCTITLE     := Doclet API
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   422
DOCLETAPI_WINDOWTITLE  := Doclet API
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   423
DOCLETAPI_HEADER       := <strong>Doclet API</strong>
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   424
DOCLETAPI_BOTTOM       := $(call CommonTrademarkBottom,$(DOCLETAPI_FIRST_COPYRIGHT_YEAR))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   425
DOCLETAPI_GROUPNAME    := Packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   426
DOCLETAPI_REGEXP       := com.sun.javadoc
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   427
# DOCLETAPI_PKGS is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   428
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   429
# The index.html, options, and packages files
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   430
DOCLETAPI_INDEX_FILE    = $(DOCLETAPI_DOCDIR)/index.html
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   431
DOCLETAPI_OPTIONS_FILE  = $(DOCSTMPDIR)/docletapi.options
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   432
DOCLETAPI_PACKAGES_FILE = $(DOCSTMPDIR)/docletapi.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   433
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   434
docletapidocs: $(DOCLETAPI_INDEX_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   435
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   436
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   437
$(DOCLETAPI_INDEX_FILE): GET2DOCSDIR=$(DOCLETAPI2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   438
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   439
# Run javadoc if the index file is out of date or missing
14466
2f85b948660b 8003844: build-infra: docs target isn't working properly
erikj
parents: 13697
diff changeset
   440
$(DOCLETAPI_INDEX_FILE): $(DOCLETAPI_OPTIONS_FILE) $(DOCLETAPI_PACKAGES_FILE) coredocs
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   441
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   442
	$(call JavadocSummary,$(DOCLETAPI_OPTIONS_FILE),$(DOCLETAPI_PACKAGES_FILE))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   443
	$(JAVADOC_CMD) -d $(@D) \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   444
	  @$(DOCLETAPI_OPTIONS_FILE) @$(DOCLETAPI_PACKAGES_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   445
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   446
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   447
$(DOCLETAPI_OPTIONS_FILE):
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   448
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   449
	@($(call OptionOnly,$(COMMON_JAVADOCFLAGS))			; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   450
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   451
	  $(call OptionPair,-encoding,ascii)				; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   452
	  $(call OptionOnly,-breakiterator)				; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   453
	  $(call OptionPair,-doctitle,$(DOCLETAPI_DOCTITLE))		; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   454
	  $(call OptionPair,-windowtitle,$(DOCLETAPI_WINDOWTITLE) $(DRAFT_WINTITLE));\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   455
	  $(call OptionPair,-header,$(DOCLETAPI_HEADER)$(DRAFT_HEADER))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   456
	  $(call OptionPair,-bottom,$(DOCLETAPI_BOTTOM)$(DRAFT_BOTTOM))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   457
	  $(call OptionTrip,-group,$(DOCLETAPI_GROUPNAME),$(DOCLETAPI_REGEXP)); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   458
	  $(call OptionTrip,-linkoffline,$(DOCLETAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   459
        ) >> $@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   460
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   461
# Create a file with the package names in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   462
$(DOCLETAPI_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(DOCLETAPI_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   463
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   464
	$(call PackageFilter,$(DOCLETAPI_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   465
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   466
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   467
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   468
# tagletapidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   469
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   470
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   471
ALL_OTHER_TARGETS += tagletapidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   472
TAGLETAPI_DOCDIR   := $(JDK_API_DOCSDIR)/javadoc/taglet
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   473
TAGLETAPI2COREAPI  := ../../$(JDKJRE2COREAPI)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   474
TAGLETAPI_BOTTOM   := $(call CommonTrademarkBottom,$(TAGLETAPI_FIRST_COPYRIGHT_YEAR))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   475
# TAGLETAPI_FILE is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   476
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   477
# Temporary directory (special generation rules)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   478
TAGLETAPI_TEMPDIR       = $(DOCSTMPDIR)/taglets_temp
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   479
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   480
# The index.html, options, and packages files
14466
2f85b948660b 8003844: build-infra: docs target isn't working properly
erikj
parents: 13697
diff changeset
   481
TAGLETAPI_INDEX_FILE    = $(TAGLETAPI_DOCDIR)/index.html
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   482
TAGLETAPI_OPTIONS_FILE  = $(DOCSTMPDIR)/tagletapi.options
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   483
TAGLETAPI_PACKAGES_FILE = $(DOCSTMPDIR)/tagletapi.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   484
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   485
tagletapidocs: $(TAGLETAPI_INDEX_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   486
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   487
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   488
$(TAGLETAPI_INDEX_FILE): GET2DOCSDIR=$(TAGLETAPI2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   489
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   490
# Run javadoc if the index file is out of date or missing
14466
2f85b948660b 8003844: build-infra: docs target isn't working properly
erikj
parents: 13697
diff changeset
   491
$(TAGLETAPI_INDEX_FILE): $(TAGLETAPI_OPTIONS_FILE) $(TAGLETAPI_PACKAGES_FILE) coredocs
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   492
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   493
	$(RM) -r $(TAGLETAPI_TEMPDIR)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   494
	$(MKDIR) -p $(TAGLETAPI_TEMPDIR)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   495
	$(call JavadocSummary,$(TAGLETAPI_OPTIONS_FILE),$(TAGLETAPI_PACKAGES_FILE))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   496
	$(JAVADOC_CMD) -d $(TAGLETAPI_TEMPDIR) \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   497
	  @$(TAGLETAPI_OPTIONS_FILE) @$(TAGLETAPI_PACKAGES_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   498
	cp -r $(TAGLETAPI_TEMPDIR)/com $(@D)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   499
	cp $(TAGLETAPI_TEMPDIR)/stylesheet.css $(@D)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   500
	$(RM) -r $(TAGLETAPI_TEMPDIR)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   501
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   502
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   503
$(TAGLETAPI_OPTIONS_FILE):
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   504
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   505
	@($(call OptionOnly,$(COMMON_JAVADOCFLAGS))			; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   506
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   507
	  $(call OptionPair,-encoding,ascii)				; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   508
	  $(call OptionOnly,-nonavbar)					; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   509
          $(call OptionOnly,-noindex)                                   ; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   510
	  $(call OptionPair,-bottom,$(TAGLETAPI_BOTTOM)$(DRAFT_BOTTOM))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   511
	  $(call OptionTrip,-linkoffline,$(TAGLETAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   512
        ) >> $@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   513
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   514
# Create a file with the package names in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   515
$(TAGLETAPI_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(TAGLETAPI_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   516
	$(prep-target)
14466
2f85b948660b 8003844: build-infra: docs target isn't working properly
erikj
parents: 13697
diff changeset
   517
	@($(ECHO) "$(JDK_IMPSRC)/$(TAGLETAPI_FILE)" ) > $@
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   518
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   519
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   520
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   521
# domapidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   522
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   523
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   524
ALL_OTHER_TARGETS += domapidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   525
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   526
DOMAPI_DOCDIR       := $(JRE_API_DOCSDIR)/plugin/dom
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   527
DOMAPI2COREAPI      := ../../$(JDKJRE2COREAPI)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   528
DOMAPI_DOCTITLE     := Common DOM API
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   529
DOMAPI_WINDOWTITLE  := Common DOM API
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   530
DOMAPI_HEADER       := <strong>Common DOM API</strong>
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   531
DOMAPI_BOTTOM       := $(call CommonTrademarkBottom,$(DOMAPI_FIRST_COPYRIGHT_YEAR))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   532
DOMAPI_GROUPNAME    := Packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   533
DOMAPI_REGEXP       := com.sun.java.browser.dom:org.w3c.dom*
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   534
# DOMAPI_PKGS is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   535
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   536
# The index.html, options, and packages files
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   537
DOMAPI_INDEX_FILE    = $(DOMAPI_DOCDIR)/index.html
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   538
DOMAPI_OPTIONS_FILE  = $(DOCSTMPDIR)/domapi.options
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   539
DOMAPI_PACKAGES_FILE = $(DOCSTMPDIR)/domapi.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   540
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   541
domapidocs: $(DOMAPI_INDEX_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   542
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   543
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   544
$(DOMAPI_INDEX_FILE): GET2DOCSDIR=$(DOMAPI2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   545
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   546
# Run javadoc if the index file is out of date or missing
14466
2f85b948660b 8003844: build-infra: docs target isn't working properly
erikj
parents: 13697
diff changeset
   547
$(DOMAPI_INDEX_FILE): $(DOMAPI_OPTIONS_FILE) $(DOMAPI_PACKAGES_FILE) coredocs
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   548
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   549
	$(call JavadocSummary,$(DOMAPI_OPTIONS_FILE),$(DOMAPI_PACKAGES_FILE))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   550
	$(JAVADOC_CMD) -d $(@D) \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   551
	  @$(DOMAPI_OPTIONS_FILE) @$(DOMAPI_PACKAGES_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   552
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   553
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   554
$(DOMAPI_OPTIONS_FILE):
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   555
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   556
	@($(call OptionOnly,$(COMMON_JAVADOCFLAGS))			; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   557
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   558
	  $(call OptionPair,-encoding,ascii)				; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   559
	  $(call OptionOnly,-splitIndex)				; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   560
	  $(call OptionPair,-doctitle,$(DOMAPI_DOCTITLE))		; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   561
	  $(call OptionPair,-windowtitle,$(DOMAPI_WINDOWTITLE) $(DRAFT_WINTITLE));\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   562
	  $(call OptionPair,-header,$(DOMAPI_HEADER)$(DRAFT_HEADER))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   563
	  $(call OptionPair,-bottom,$(DOMAPI_BOTTOM)$(DRAFT_BOTTOM))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   564
	  $(call OptionTrip,-group,$(DOMAPI_GROUPNAME),$(DOMAPI_REGEXP)); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   565
	  $(call OptionTrip,-linkoffline,$(DOMAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
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
# Create a file with the package names in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   569
$(DOMAPI_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(DOMAPI_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   570
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   571
	$(call PackageFilter,$(DOMAPI_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   572
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   573
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   574
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   575
# jpdadocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   576
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   577
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   578
ALL_OTHER_TARGETS += jpdadocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   579
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   580
jpdadocs: jdidocs jdwpdocs jvmtidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   581
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   582
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   583
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   584
# jdidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   585
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   586
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   587
ALL_OTHER_TARGETS += jdidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   588
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   589
JDI_DOCDIR      := $(JDK_API_DOCSDIR)/jpda/jdi
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   590
JDI2COREAPI     := ../../$(JDKJRE2COREAPI)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   591
JDI_DOCTITLE    := Java$(TRADEMARK) Debug Interface
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   592
JDI_WINDOWTITLE := Java Debug Interface
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   593
JDI_HEADER      := <strong>Java Debug Interface</strong>
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   594
JDI_BOTTOM      := $(call CommonBottom,$(JDI_FIRST_COPYRIGHT_YEAR))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   595
JDI_OVERVIEW    := $(JDK_SHARE_CLASSES)/jdi-overview.html
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   596
# JDI_PKGS is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   597
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   598
# The index.html, options, and packages files
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   599
JDI_INDEX_FILE    = $(JDI_DOCDIR)/index.html
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   600
JDI_OPTIONS_FILE  = $(DOCSTMPDIR)/jdi.options
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   601
JDI_PACKAGES_FILE = $(DOCSTMPDIR)/jdi.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   602
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   603
jdidocs: $(JDI_INDEX_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   604
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   605
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   606
$(JDI_INDEX_FILE): GET2DOCSDIR=$(JDI2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   607
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   608
# Run javadoc if the index file is out of date or missing
14466
2f85b948660b 8003844: build-infra: docs target isn't working properly
erikj
parents: 13697
diff changeset
   609
$(JDI_INDEX_FILE): $(JDI_OPTIONS_FILE) $(JDI_PACKAGES_FILE) coredocs
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   610
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   611
	$(call JavadocSummary,$(JDI_OPTIONS_FILE),$(JDI_PACKAGES_FILE))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   612
	$(JAVADOC_CMD) -d $(@D) \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   613
	  @$(JDI_OPTIONS_FILE) @$(JDI_PACKAGES_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   614
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   615
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   616
$(JDI_OPTIONS_FILE): $(JDI_OVERVIEW)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   617
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   618
	@($(call OptionOnly,$(COMMON_JAVADOCFLAGS))			; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   619
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   620
	  $(call OptionPair,-encoding,ascii)				; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   621
	  $(call OptionPair,-overview,$(JDI_OVERVIEW))			; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   622
	  $(call OptionPair,-doctitle,$(JDI_DOCTITLE))			; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   623
	  $(call OptionPair,-windowtitle,$(JDI_WINDOWTITLE) $(DRAFT_WINTITLE)); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   624
	  $(call OptionPair,-header,$(JDI_HEADER)$(DRAFT_HEADER))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   625
	  $(call OptionPair,-bottom,$(JDI_BOTTOM)$(DRAFT_BOTTOM))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   626
	  $(call OptionTrip,-linkoffline,$(JDI2COREAPI),$(COREAPI_DOCSDIR)/); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   627
        ) >> $@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   628
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   629
# Create a file with the package names in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   630
$(JDI_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(JDI_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   631
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   632
	$(call PackageFilter,$(JDI_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   633
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   634
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   635
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   636
# jdwpdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   637
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   638
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   639
ALL_OTHER_TARGETS += jdwpdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   640
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   641
JDWP_DOCDIR     = $(PLATFORM_DOCSDIR)/jpda/jdwp
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   642
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   643
jdwpdocs: $(JDWP_DOCDIR)/jdwp-protocol.html
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   644
$(JDWP_DOCDIR)/jdwp-protocol.html : $(JDK_OUTPUTDIR)/gensrc_jdwp_doc/jdwp-protocol.html
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   645
	$(MKDIR) -p $(@D)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   646
	$(RM) $@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   647
	$(CP) $< $@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   648
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   649
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   650
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   651
# jvmtidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   652
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   653
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   654
ALL_OTHER_TARGETS += jvmtidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   655
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   656
JVMTI_DOCDIR      = $(PLATFORM_DOCSDIR)/jvmti
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   657
JVMTI_HTML        = $(HOTSPOT_DIST)/docs/platform/jvmti/jvmti.html
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   658
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   659
jvmtidocs:  $(JVMTI_DOCDIR)/jvmti.html
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   660
$(JVMTI_DOCDIR)/jvmti.html:
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   661
	@$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   662
	@if [ -f $(JVMTI_HTML) ] ; then		                           \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   663
	  $(ECHO) "$(CP) $(JVMTI_HTML) $@";                 	           \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   664
	  $(CP) $(JVMTI_HTML) $@; 	                 	           \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   665
	else 						                   \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   666
	  $(ECHO) "WARNING: Generated file does not exist: $(JVMTI_HTML)"; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   667
	fi
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   668
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   669
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   670
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   671
# jaasdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   672
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   673
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   674
ALL_OTHER_TARGETS += jaasdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   675
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   676
JAAS_DOCDIR	 := $(JRE_API_DOCSDIR)/security/jaas/spec
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   677
JAAS2COREAPI     := ../../../$(JDKJRE2COREAPI)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   678
JAAS_DOCTITLE    := Java$(TRADEMARK) Authentication and Authorization Service
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   679
JAAS_WINDOWTITLE := Java Authentication and Authorization Service
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   680
JAAS_HEADER      := <strong>Java Authentication and Authorization Service</strong>
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   681
JAAS_BOTTOM      := $(call CommonBottom,$(JAAS_FIRST_COPYRIGHT_YEAR))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   682
# JAAS_PKGS is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   683
JAAS_OVERVIEW    := $(JDK_SHARE_CLASSES)/com/sun/security/auth/jaas-overview.html
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   684
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   685
# The index.html, options, and packages files
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   686
JAAS_INDEX_FILE    = $(JAAS_DOCDIR)/index.html
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   687
JAAS_OPTIONS_FILE  = $(DOCSTMPDIR)/jaas.options
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   688
JAAS_PACKAGES_FILE = $(DOCSTMPDIR)/jaas.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   689
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   690
jaasdocs: $(JAAS_INDEX_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   691
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   692
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   693
$(JAAS_INDEX_FILE): GET2DOCSDIR=$(JAAS2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   694
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   695
# Run javadoc if the index file is out of date or missing
14466
2f85b948660b 8003844: build-infra: docs target isn't working properly
erikj
parents: 13697
diff changeset
   696
$(JAAS_INDEX_FILE): $(JAAS_OPTIONS_FILE) $(JAAS_PACKAGES_FILE) coredocs
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   697
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   698
	$(call JavadocSummary,$(JAAS_OPTIONS_FILE),$(JAAS_PACKAGES_FILE))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   699
	$(JAVADOC_CMD) -d $(@D) \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   700
	  @$(JAAS_OPTIONS_FILE) @$(JAAS_PACKAGES_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   701
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   702
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   703
$(JAAS_OPTIONS_FILE): $(JAAS_OVERVIEW)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   704
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   705
	@($(call OptionOnly,$(COMMON_JAVADOCFLAGS))			; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   706
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   707
	  $(call OptionPair,-encoding,ascii)				; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   708
	  $(call OptionPair,-overview,$(JAAS_OVERVIEW))			; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   709
	  $(call OptionPair,-doctitle,$(JAAS_DOCTITLE))			; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   710
	  $(call OptionPair,-windowtitle,$(JAAS_WINDOWTITLE) $(DRAFT_WINTITLE)); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   711
	  $(call OptionPair,-header,$(JAAS_HEADER)$(DRAFT_HEADER))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   712
	  $(call OptionPair,-bottom,$(JAAS_BOTTOM)$(DRAFT_BOTTOM))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   713
	  $(call OptionTrip,-linkoffline,$(JAAS2COREAPI),$(COREAPI_DOCSDIR)/); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   714
        ) >> $@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   715
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   716
# Create a file with the package names in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   717
$(JAAS_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(JAAS_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   718
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   719
	$(call PackageFilter,$(JAAS_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   720
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   721
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   722
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   723
# jgssdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   724
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   725
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   726
ALL_OTHER_TARGETS += jgssdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   727
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   728
JGSS_DOCDIR	 := $(JRE_API_DOCSDIR)/security/jgss/spec
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   729
JGSS2COREAPI     := ../../../$(JDKJRE2COREAPI)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   730
JGSS_DOCTITLE    := Java$(TRADEMARK) GSS-API Utilities
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   731
JGSS_WINDOWTITLE := Java GSS-API Utilities
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   732
JGSS_HEADER      := <strong>Java GSS-API Utilities</strong>
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   733
JGSS_BOTTOM      := $(call CommonBottom,$(JGSS_FIRST_COPYRIGHT_YEAR))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   734
JGSS_OVERVIEW    := $(JDK_SHARE_CLASSES)/com/sun/security/jgss/jgss-overview.html
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   735
# JGSS_PKGS is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   736
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   737
# The index.html, options, and packages files
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   738
JGSS_INDEX_FILE    = $(JGSS_DOCDIR)/index.html
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   739
JGSS_OPTIONS_FILE  = $(DOCSTMPDIR)/jgss.options
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   740
JGSS_PACKAGES_FILE = $(DOCSTMPDIR)/jgss.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   741
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   742
jgssdocs: $(JGSS_INDEX_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   743
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   744
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   745
$(JGSS_INDEX_FILE): GET2DOCSDIR=$(JGSS2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   746
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   747
# Run javadoc if the index file is out of date or missing
14466
2f85b948660b 8003844: build-infra: docs target isn't working properly
erikj
parents: 13697
diff changeset
   748
$(JGSS_INDEX_FILE): $(JGSS_OPTIONS_FILE) $(JGSS_PACKAGES_FILE) coredocs
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   749
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   750
	$(call JavadocSummary,$(JGSS_OPTIONS_FILE),$(JGSS_PACKAGES_FILE))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   751
	$(JAVADOC_CMD) -d $(@D) \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   752
	  @$(JGSS_OPTIONS_FILE) @$(JGSS_PACKAGES_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   753
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   754
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   755
$(JGSS_OPTIONS_FILE): $(JGSS_OVERVIEW)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   756
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   757
	@($(call OptionOnly,$(COMMON_JAVADOCFLAGS))			; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   758
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   759
	  $(call OptionPair,-encoding,ascii)				; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   760
	  $(call OptionOnly,-nodeprecatedlist)				; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   761
	  $(call OptionPair,-overview,$(JGSS_OVERVIEW))			; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   762
	  $(call OptionPair,-doctitle,$(JGSS_DOCTITLE))			; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   763
	  $(call OptionPair,-windowtitle,$(JGSS_WINDOWTITLE) $(DRAFT_WINTITLE)); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   764
	  $(call OptionPair,-header,$(JGSS_HEADER)$(DRAFT_HEADER))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   765
	  $(call OptionPair,-bottom,$(JGSS_BOTTOM)$(DRAFT_BOTTOM))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   766
	  $(call OptionTrip,-linkoffline,$(JGSS2COREAPI),$(COREAPI_DOCSDIR)/); \
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
# Create a file with the package names in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   770
$(JGSS_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(JGSS_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   771
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   772
	$(call PackageFilter,$(JGSS_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   773
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   774
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   775
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   776
# smartcardiodocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   777
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   778
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   779
ALL_OTHER_TARGETS += smartcardiodocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   780
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   781
SMARTCARDIO_DOCDIR	:= $(JRE_API_DOCSDIR)/security/smartcardio/spec
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   782
SMARTCARDIO2COREAPI     := ../../../$(JDKJRE2COREAPI)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   783
SMARTCARDIO_DOCTITLE    := Java$(TRADEMARK) Smart Card I/O
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   784
SMARTCARDIO_WINDOWTITLE := Java Smart Card I/O
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   785
SMARTCARDIO_HEADER      := <strong>Java Smart Card I/O</strong>
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   786
SMARTCARDIO_BOTTOM      := $(call CommonBottom,$(SMARTCARDIO_FIRST_COPYRIGHT_YEAR))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   787
# SMARTCARDIO_PKGS is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   788
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   789
# The index.html, options, and packages files
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   790
SMARTCARDIO_INDEX_FILE    = $(SMARTCARDIO_DOCDIR)/index.html
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   791
SMARTCARDIO_OPTIONS_FILE  = $(DOCSTMPDIR)/smartcardio.options
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   792
SMARTCARDIO_PACKAGES_FILE = $(DOCSTMPDIR)/smartcardio.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   793
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   794
smartcardiodocs: $(SMARTCARDIO_INDEX_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   795
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   796
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   797
$(SMARTCARDIO_INDEX_FILE): GET2DOCSDIR=$(SMARTCARDIO2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   798
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   799
# Run javadoc if the index file is out of date or missing
14466
2f85b948660b 8003844: build-infra: docs target isn't working properly
erikj
parents: 13697
diff changeset
   800
$(SMARTCARDIO_INDEX_FILE): $(SMARTCARDIO_OPTIONS_FILE) $(SMARTCARDIO_PACKAGES_FILE) coredocs
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   801
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   802
	$(call JavadocSummary,$(SMARTCARDIO_OPTIONS_FILE),$(SMARTCARDIO_PACKAGES_FILE))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   803
	$(JAVADOC_CMD) -d $(@D) \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   804
	  @$(SMARTCARDIO_OPTIONS_FILE) @$(SMARTCARDIO_PACKAGES_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   805
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   806
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   807
$(SMARTCARDIO_OPTIONS_FILE):
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   808
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   809
	@($(call OptionOnly,$(COMMON_JAVADOCFLAGS))			; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   810
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   811
	  $(call OptionPair,-encoding,ascii)				; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   812
	  $(call OptionOnly,-nodeprecatedlist)				; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   813
	  $(call OptionPair,-doctitle,$(SMARTCARDIO_DOCTITLE))		; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   814
	  $(call OptionPair,-windowtitle,$(SMARTCARDIO_WINDOWTITLE) $(DRAFT_WINTITLE));\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   815
	  $(call OptionPair,-header,$(SMARTCARDIO_HEADER)$(DRAFT_HEADER)); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   816
	  $(call OptionPair,-bottom,$(SMARTCARDIO_BOTTOM)$(DRAFT_BOTTOM)); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   817
	  $(call OptionTrip,-linkoffline,$(SMARTCARDIO2COREAPI),$(COREAPI_DOCSDIR)/); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   818
        ) >> $@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   819
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   820
# Create a file with the package names in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   821
$(SMARTCARDIO_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(SMARTCARDIO_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   822
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   823
	$(call PackageFilter,$(SMARTCARDIO_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   824
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   825
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   826
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   827
# httpserverdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   828
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   829
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   830
ALL_OTHER_TARGETS += httpserverdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   831
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   832
HTTPSERVER_DOCDIR      := $(JRE_API_DOCSDIR)/net/httpserver/spec
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   833
HTTPSERVER2COREAPI     := ../../../$(JDKJRE2COREAPI)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   834
HTTPSERVER_DOCTITLE    := Java$(TRADEMARK) HTTP Server
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   835
HTTPSERVER_WINDOWTITLE := Java HTTP Server
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   836
HTTPSERVER_HEADER      := <strong>Java HTTP Server</strong>
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   837
HTTPSERVER_BOTTOM      := $(call CommonBottom,$(HTTPSERVER_FIRST_COPYRIGHT_YEAR))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   838
# HTTPSERVER_PKGS is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   839
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   840
HTTPSERVER_INDEX_HTML    = $(HTTPSERVER_DOCDIR)/index.html
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   841
HTTPSERVER_OPTIONS_FILE  = $(DOCSTMPDIR)/httpserver.options
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   842
HTTPSERVER_PACKAGES_FILE = $(DOCSTMPDIR)/httpserver.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   843
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   844
httpserverdocs: $(HTTPSERVER_INDEX_HTML)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   845
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   846
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   847
$(HTTPSERVER_INDEX_HTML): GET2DOCSDIR=$(HTTPSERVER2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   848
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   849
# Run javadoc if the index file is out of date or missing
14466
2f85b948660b 8003844: build-infra: docs target isn't working properly
erikj
parents: 13697
diff changeset
   850
$(HTTPSERVER_INDEX_HTML): $(HTTPSERVER_OPTIONS_FILE) $(HTTPSERVER_PACKAGES_FILE) coredocs
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   851
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   852
	$(call JavadocSummary,$(HTTPSERVER_OPTIONS_FILE),$(HTTPSERVER_PACKAGES_FILE))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   853
	$(JAVADOC_CMD) -d $(@D) \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   854
	  @$(HTTPSERVER_OPTIONS_FILE) @$(HTTPSERVER_PACKAGES_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   855
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   856
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   857
$(HTTPSERVER_OPTIONS_FILE):
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   858
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   859
	@($(call OptionOnly,$(COMMON_JAVADOCFLAGS))			; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   860
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   861
	  $(call OptionPair,-encoding,ascii)				; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   862
	  $(call OptionOnly,-nodeprecatedlist)				; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   863
	  $(call OptionPair,-doctitle,$(HTTPSERVER_DOCTITLE))		; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   864
	  $(call OptionPair,-windowtitle,$(HTTPSERVER_WINDOWTITLE) $(DRAFT_WINTITLE));\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   865
	  $(call OptionPair,-header,$(HTTPSERVER_HEADER)$(DRAFT_HEADER)); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   866
	  $(call OptionPair,-bottom,$(HTTPSERVER_BOTTOM)$(DRAFT_BOTTOM)); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   867
	  $(call OptionTrip,-linkoffline,$(HTTPSERVER2COREAPI),$(COREAPI_DOCSDIR)/); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   868
        ) >> $@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   869
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   870
# Create a file with the package names in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   871
$(HTTPSERVER_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(HTTPSERVER_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   872
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   873
	$(call PackageFilter,$(HTTPSERVER_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   874
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   875
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   876
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   877
# mgmtdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   878
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   879
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   880
ALL_OTHER_TARGETS += mgmtdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   881
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   882
MGMT_DOCDIR	 := $(JRE_API_DOCSDIR)/management/extension
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   883
MGMT2COREAPI     := ../../$(JDKJRE2COREAPI)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   884
JVM_MIB_NAME     := JVM-MANAGEMENT-MIB.mib
14466
2f85b948660b 8003844: build-infra: docs target isn't working properly
erikj
parents: 13697
diff changeset
   885
JVM_MIB_SRC      := $(JDK_TOPDIR)/src/closed/share/classes/sun/management/snmp/$(JVM_MIB_NAME)
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   886
MGMT_DOCTITLE    := Monitoring and Management Interface for the Java$(TRADEMARK) Platform
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   887
MGMT_WINDOWTITLE := Monitoring and Management Interface for the Java Platform
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   888
MGMT_HEADER      := <strong>Monitoring and Management Interface for the Java Platform</strong>
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   889
MGMT_BOTTOM      := $(call CommonBottom,$(MGMT_FIRST_COPYRIGHT_YEAR))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   890
MGMT_OVERVIEW    := $(JDK_SHARE_CLASSES)/com/sun/management/mgmt-overview.html
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   891
# MGMT_PKGS is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   892
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   893
# The index.html, options, and packages files
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   894
MGMT_INDEX_FILE    = $(MGMT_DOCDIR)/index.html
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   895
MGMT_OPTIONS_FILE  = $(DOCSTMPDIR)/mgmt.options
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   896
MGMT_PACKAGES_FILE = $(DOCSTMPDIR)/mgmt.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   897
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   898
mgmtdocs: $(MGMT_INDEX_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   899
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   900
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   901
$(MGMT_INDEX_FILE): GET2DOCSDIR=$(MGMT2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   902
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   903
# Run javadoc if the index file is out of date or missing
14466
2f85b948660b 8003844: build-infra: docs target isn't working properly
erikj
parents: 13697
diff changeset
   904
$(MGMT_INDEX_FILE): $(MGMT_OPTIONS_FILE) $(MGMT_PACKAGES_FILE) coredocs
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   905
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   906
	@if [ -f $(JVM_MIB_SRC) ] ; then 				\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   907
	  $(ECHO) "$(CP) $(JVM_MIB_SRC) $(@D)/.."; 			\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   908
	  $(CP) $(JVM_MIB_SRC) $(@D)/.. ; 				\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   909
	else 								\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   910
	  $(ECHO) "WARNING: File $(JVM_MIB_NAME) not available."; 	\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   911
	fi
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   912
	$(call JavadocSummary,$(MGMT_OPTIONS_FILE),$(MGMT_PACKAGES_FILE))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   913
	$(JAVADOC_CMD) -d $(@D) \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   914
	  @$(MGMT_OPTIONS_FILE) @$(MGMT_PACKAGES_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   915
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   916
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   917
$(MGMT_OPTIONS_FILE): $(MGMT_OVERVIEW)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   918
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   919
	@($(call OptionOnly,$(COMMON_JAVADOCFLAGS))			; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   920
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   921
	  $(call OptionPair,-encoding,ascii)				; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   922
	  $(call OptionOnly,-nodeprecatedlist)				; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   923
	  $(call OptionPair,-overview,$(MGMT_OVERVIEW))			; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   924
	  $(call OptionPair,-doctitle,$(MGMT_DOCTITLE))			; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   925
	  $(call OptionPair,-windowtitle,$(MGMT_WINDOWTITLE) $(DRAFT_WINTITLE)); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   926
	  $(call OptionPair,-header,$(MGMT_HEADER)$(DRAFT_HEADER))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   927
	  $(call OptionPair,-bottom,$(MGMT_BOTTOM)$(DRAFT_BOTTOM))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   928
	  $(call OptionTrip,-linkoffline,$(MGMT2COREAPI),$(COREAPI_DOCSDIR)/); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   929
        ) >> $@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   930
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   931
# Create a file with the package names in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   932
$(MGMT_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(MGMT_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   933
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   934
	$(call PackageFilter,$(MGMT_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   935
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   936
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   937
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   938
# attachdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   939
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   940
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   941
ALL_OTHER_TARGETS += attachdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   942
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   943
ATTACH_DOCDIR      := $(JDK_API_DOCSDIR)/attach/spec
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   944
ATTACH2COREAPI     := ../../$(JDKJRE2COREAPI)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   945
ATTACH_DOCTITLE    := Attach API
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   946
ATTACH_WINDOWTITLE := Attach API
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   947
ATTACH_HEADER      := <strong>Attach API</strong>
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   948
ATTACH_BOTTOM      := $(call CommonBottom,$(ATTACH_FIRST_COPYRIGHT_YEAR))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   949
# ATTACH_PKGS is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   950
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   951
ATTACH_INDEX_HTML    = $(ATTACH_DOCDIR)/index.html
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   952
ATTACH_OPTIONS_FILE  = $(DOCSTMPDIR)/attach.options
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   953
ATTACH_PACKAGES_FILE = $(DOCSTMPDIR)/attach.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   954
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   955
attachdocs: $(ATTACH_INDEX_HTML)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   956
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   957
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   958
$(ATTACH_INDEX_HTML): GET2DOCSDIR=$(ATTACH2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   959
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   960
# Run javadoc if the index file is out of date or missing
14466
2f85b948660b 8003844: build-infra: docs target isn't working properly
erikj
parents: 13697
diff changeset
   961
$(ATTACH_INDEX_HTML): $(ATTACH_OPTIONS_FILE) $(ATTACH_PACKAGES_FILE) coredocs
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   962
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   963
	$(call JavadocSummary,$(ATTACH_OPTIONS_FILE),$(ATTACH_PACKAGES_FILE))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   964
	$(JAVADOC_CMD) -d $(@D) \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   965
	  @$(ATTACH_OPTIONS_FILE) @$(ATTACH_PACKAGES_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   966
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   967
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   968
$(ATTACH_OPTIONS_FILE):
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   969
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   970
	@($(call OptionOnly,$(COMMON_JAVADOCFLAGS))			; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   971
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   972
	  $(call OptionPair,-encoding,ascii)				; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   973
	  $(call OptionOnly,-nodeprecatedlist)				; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   974
	  $(call OptionPair,-doctitle,$(ATTACH_DOCTITLE))		; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   975
	  $(call OptionPair,-windowtitle,$(ATTACH_WINDOWTITLE) $(DRAFT_WINTITLE));\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   976
	  $(call OptionPair,-header,$(ATTACH_HEADER)$(DRAFT_HEADER))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   977
	  $(call OptionPair,-bottom,$(ATTACH_BOTTOM)$(DRAFT_BOTTOM))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   978
	  $(call OptionTrip,-linkoffline,$(ATTACH2COREAPI),$(COREAPI_DOCSDIR)/); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   979
        ) >> $@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   980
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   981
# Create a file with the package names in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   982
$(ATTACH_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(ATTACH_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   983
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   984
	$(call PackageFilter,$(ATTACH_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   985
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   986
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   987
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   988
# jconsoledocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   989
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   990
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   991
ALL_OTHER_TARGETS += jconsoledocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   992
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   993
JCONSOLE_DOCDIR      := $(JDK_API_DOCSDIR)/jconsole/spec
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   994
JCONSOLE2COREAPI     := ../../$(JDKJRE2COREAPI)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   995
JCONSOLE_DOCTITLE    := JConsole API
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   996
JCONSOLE_WINDOWTITLE := JConsole API
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   997
JCONSOLE_HEADER      := <strong>JConsole API</strong>
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   998
JCONSOLE_BOTTOM      := $(call CommonBottom,$(JCONSOLE_FIRST_COPYRIGHT_YEAR))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
   999
# JCONSOLE_PKGS is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1000
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1001
JCONSOLE_INDEX_HTML    = $(JCONSOLE_DOCDIR)/index.html
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1002
JCONSOLE_OPTIONS_FILE  = $(DOCSTMPDIR)/jconsole.options
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1003
JCONSOLE_PACKAGES_FILE = $(DOCSTMPDIR)/jconsole.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1004
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1005
jconsoledocs: $(JCONSOLE_INDEX_HTML)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1006
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1007
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1008
$(JCONSOLE_INDEX_HTML): GET2DOCSDIR=$(JCONSOLE2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1009
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1010
# Run javadoc if the index file is out of date or missing
14466
2f85b948660b 8003844: build-infra: docs target isn't working properly
erikj
parents: 13697
diff changeset
  1011
$(JCONSOLE_INDEX_HTML): $(JCONSOLE_OPTIONS_FILE) $(JCONSOLE_PACKAGES_FILE) coredocs
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1012
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1013
	$(call JavadocSummary,$(JCONSOLE_OPTIONS_FILE),$(JCONSOLE_PACKAGES_FILE))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1014
	$(JAVADOC_CMD) -d $(@D) \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1015
	  @$(JCONSOLE_OPTIONS_FILE) @$(JCONSOLE_PACKAGES_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1016
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1017
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1018
$(JCONSOLE_OPTIONS_FILE):
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1019
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1020
	@($(call OptionOnly,$(COMMON_JAVADOCFLAGS))			; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1021
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1022
	  $(call OptionPair,-encoding,ascii)				; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1023
	  $(call OptionOnly,-nodeprecatedlist)				; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1024
	  $(call OptionPair,-doctitle,$(JCONSOLE_DOCTITLE))		; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1025
	  $(call OptionPair,-windowtitle,$(JCONSOLE_WINDOWTITLE) $(DRAFT_WINTITLE));\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1026
	  $(call OptionPair,-header,$(JCONSOLE_HEADER)$(DRAFT_HEADER))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1027
	  $(call OptionPair,-bottom,$(JCONSOLE_BOTTOM)$(DRAFT_BOTTOM))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1028
	  $(call OptionTrip,-linkoffline,$(JCONSOLE2COREAPI),$(COREAPI_DOCSDIR)/); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1029
        ) >> $@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1030
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1031
# Create a file with the package names in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1032
$(JCONSOLE_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(JCONSOLE_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1033
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1034
	$(call PackageFilter,$(JCONSOLE_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1035
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1036
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1037
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1038
# treeapidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1039
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1040
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1041
ALL_OTHER_TARGETS += treeapidocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1042
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1043
TREEAPI_DOCDIR       := $(JDK_API_DOCSDIR)/javac/tree
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1044
TREEAPI2COREAPI      := ../../$(JDKJRE2COREAPI)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1045
TREEAPI_DOCTITLE     := Compiler Tree API
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1046
TREEAPI_WINDOWTITLE  := Compiler Tree API
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1047
TREEAPI_HEADER       := <strong>Compiler Tree API</strong>
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1048
TREEAPI_BOTTOM       := $(call CommonBottom,$(TREEAPI_FIRST_COPYRIGHT_YEAR))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1049
TREEAPI_GROUPNAME    := Packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1050
TREEAPI_REGEXP       := com.sun.source.*
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1051
# TREEAPI_PKGS is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1052
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1053
TREEAPI_INDEX_HTML    = $(TREEAPI_DOCDIR)/index.html
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1054
TREEAPI_OPTIONS_FILE  = $(DOCSTMPDIR)/treeapi.options
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1055
TREEAPI_PACKAGES_FILE = $(DOCSTMPDIR)/treeapi.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1056
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1057
treeapidocs: $(TREEAPI_INDEX_HTML)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1058
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1059
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1060
$(TREEAPI_INDEX_HTML): GET2DOCSDIR=$(TREEAPI2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1061
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1062
# Run javadoc if the index file is out of date or missing
14466
2f85b948660b 8003844: build-infra: docs target isn't working properly
erikj
parents: 13697
diff changeset
  1063
$(TREEAPI_INDEX_HTML): $(TREEAPI_OPTIONS_FILE) $(TREEAPI_PACKAGES_FILE) coredocs
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1064
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1065
	$(call JavadocSummary,$(TREEAPI_OPTIONS_FILE),$(TREEAPI_PACKAGES_FILE))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1066
	$(JAVADOC_CMD) -d $(@D) \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1067
	  @$(TREEAPI_OPTIONS_FILE) @$(TREEAPI_PACKAGES_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1068
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1069
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1070
$(TREEAPI_OPTIONS_FILE):
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1071
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1072
	@($(call OptionOnly,$(COMMON_JAVADOCFLAGS))			; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1073
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1074
	  $(call OptionPair,-encoding,ascii)				; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1075
	  $(call OptionPair,-doctitle,$(TREEAPI_DOCTITLE))		; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1076
	  $(call OptionPair,-windowtitle,$(TREEAPI_WINDOWTITLE) $(DRAFT_WINTITLE));\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1077
	  $(call OptionPair,-header,$(TREEAPI_HEADER)$(DRAFT_HEADER))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1078
          $(call OptionPair,-tag,$(TAG_JLS)) 				; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1079
	  $(call OptionPair,-bottom,$(TREEAPI_BOTTOM)$(DRAFT_BOTTOM))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1080
	  $(call OptionTrip,-group,$(TREEAPI_GROUPNAME),$(TREEAPI_REGEXP)); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1081
	  $(call OptionTrip,-linkoffline,$(TREEAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1082
        ) >> $@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1083
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1084
# Create a file with the package names in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1085
$(TREEAPI_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(TREEAPI_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1086
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1087
	$(call PackageFilter,$(TREEAPI_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1088
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1089
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1090
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1091
# sctpdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1092
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1093
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1094
ALL_OTHER_TARGETS += sctpdocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1095
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1096
SCTPAPI_DOCDIR      := $(JRE_API_DOCSDIR)/nio/sctp/spec
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1097
SCTPAPI2COREAPI     := ../../../$(JDKJRE2COREAPI)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1098
SCTPAPI_DOCTITLE    := SCTP API
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1099
SCTPAPI_WINDOWTITLE := SCTP API
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1100
SCTPAPI_HEADER      := <strong>SCTP API</strong>
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1101
SCTPAPI_BOTTOM      := $(call CommonBottom,$(SCTPAPI_FIRST_COPYRIGHT_YEAR))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1102
# SCTPAPI_PKGS is located in NON_CORE_PKGS.gmk
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1103
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1104
SCTPAPI_INDEX_HTML    = $(SCTPAPI_DOCDIR)/index.html
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1105
SCTPAPI_OPTIONS_FILE  = $(DOCSTMPDIR)/sctp.options
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1106
SCTPAPI_PACKAGES_FILE = $(DOCSTMPDIR)/sctp.packages
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1107
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1108
sctpdocs: $(SCTPAPI_INDEX_HTML)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1109
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1110
# Set relative location to core api document root
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1111
$(SCTPAPI_INDEX_HTML): GET2DOCSDIR=$(SCTPAPI2COREAPI)/..
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1112
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1113
# Run javadoc if the index file is out of date or missing
14466
2f85b948660b 8003844: build-infra: docs target isn't working properly
erikj
parents: 13697
diff changeset
  1114
$(SCTPAPI_INDEX_HTML): $(SCTPAPI_OPTIONS_FILE) $(SCTPAPI_PACKAGES_FILE) coredocs
13697
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1115
	$(prep-javadoc)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1116
	$(call JavadocSummary,$(SCTPAPI_OPTIONS_FILE),$(SCTPAPI_PACKAGES_FILE))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1117
	$(JAVADOC_CMD) -d $(@D) \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1118
	  @$(SCTPAPI_OPTIONS_FILE) @$(SCTPAPI_PACKAGES_FILE)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1119
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1120
# Create file with javadoc options in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1121
$(SCTPAPI_OPTIONS_FILE):
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1122
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1123
	@($(call OptionOnly,$(COMMON_JAVADOCFLAGS))			; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1124
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1125
	  $(call OptionPair,-encoding,ascii)				; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1126
	  $(call OptionOnly,-nodeprecatedlist)				; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1127
	  $(call OptionPair,-doctitle,$(SCTPAPI_DOCTITLE))		; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1128
	  $(call OptionPair,-windowtitle,$(SCTPAPI_WINDOWTITLE) $(DRAFT_WINTITLE));\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1129
	  $(call OptionPair,-header,$(SCTPAPI_HEADER)$(DRAFT_HEADER))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1130
	  $(call OptionPair,-bottom,$(SCTPAPI_BOTTOM)$(DRAFT_BOTTOM))	; \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1131
	  $(call OptionTrip,-linkoffline,$(SCTPAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1132
        ) >> $@
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1133
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1134
# Create a file with the package names in it
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1135
$(SCTPAPI_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(SCTPAPI_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1136
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1137
	$(call PackageFilter,$(SCTPAPI_PKGS))
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1138
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1139
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1140
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1141
# Get a cache of all the directories
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1142
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1143
$(DIRECTORY_CACHE): $(ALL_EXISTING_SOURCE_DIRS)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1144
	$(prep-target)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1145
	@for cp in $(ALL_EXISTING_SOURCE_DIRS) ; do 	\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1146
	  $(ECHO) "$(FIND) $${cp} -type f >> $@"; 	\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1147
	  $(FIND) $${cp} -type f >> $@; 		\
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1148
	done
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1149
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1150
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1151
#release version of core packages ########
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1152
# Maximize performance and ensure that build number & milestone are set.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1153
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1154
rel-coredocs: sanitycheckcoredocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1155
	$(MAKE) coredocs
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1156
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1157
rel-docs: rel-coredocs $(ALL_OTHER_TARGETS)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1158
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1159
# end of production targets
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1160
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1161
otherdocs: $(ALL_OTHER_TARGETS)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1162
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1163
clean:
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1164
	$(RM) -r $(DOCSDIR) $(DOCSTMPDIR)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1165
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1166
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1167
# DEBUG TARGET
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1168
# List the values defined in the makefile hierarchy, to make sure everything
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1169
# is set properly, and to help identify values we can use instead of making new ones.
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1170
# (Most of them come from common/shared/Defs.gmk)
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1171
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1172
#  Notes:
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1173
#    * BUILD_NUMBER defaults to b00 if not set on command line with BUILD_NUMBER=<value>
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1174
#    * MILESTONE defaults to internal unless set to beta, rc, or fcs on command line
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1175
#
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1176
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1177
#############################################################
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1178
.PHONY: all docs coredocs rel-docs otherdocs rel-coredocs \
5262b00bc10c 7197849: Update new build-infra makefiles
ohair
parents:
diff changeset
  1179
        sanitycheckcoredocs $(ALL_OTHER_TARGETS)