jdk/make/docs/Makefile
author ohair
Wed, 06 Apr 2011 22:06:11 -0700
changeset 9035 1255eb81cc2f
parent 8585 5877d80a67f6
child 9036 bb5e161d5bb3
permissions -rw-r--r--
7033660: Update copyright year to 2011 on any files changed in 2011 Reviewed-by: dholmes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9035
1255eb81cc2f 7033660: Update copyright year to 2011 on any files changed in 2011
ohair
parents: 8585
diff changeset
     1
# Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
# This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
# under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4716
diff changeset
     6
# published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
# particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4716
diff changeset
     8
# by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
# This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
# version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
# accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
# You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
# 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
#
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4716
diff changeset
    20
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4716
diff changeset
    21
# or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4716
diff changeset
    22
# questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
# Definitions for $(DOCSDIR), $(MKDIR), $(BINDIR), etc.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
BUILDDIR=..
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
PRODUCT=docs
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
include $(BUILDDIR)/common/Defs.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    32
# Get CopyrightLine macro and other shared variables
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    33
include $(BUILDDIR)/common/shared/Defs-javadoc.gmk
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    34
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    35
# Url to root of documents
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    36
DOCSDIR_URL = {@docroot}/$(GET2DOCSDIR)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    37
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    38
# Url to copyright html file
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    39
COPYRIGHT_URL-7 = $(DOCSDIR_URL)/legal/cpyr.html
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    40
COPYRIGHT_URL = $(COPYRIGHT_URL-$(JDK_MINOR_VERSION))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    41
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    42
# Url to bug filing site
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    43
BUG_SUBMIT_URL = http://bugs.sun.com/services/bugreport/index.jsp
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    44
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    45
# Common line for how to submit a bug or rfe
8585
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
    46
BUG_SUBMIT_LINE = <a href="$(BUG_SUBMIT_URL)">Submit a bug or feature</a>
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    47
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    48
# Url to devdocs page
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    49
#   Was: http://java.sun.com/javase/6/webnotes/devdocs-vs-specs.html
6079
931e91f33d25 6974239: Correct reference to jdk document site in javadoc
ohair
parents: 6078
diff changeset
    50
DEV_DOCS_URL-5 = http://java.sun.com/j2se/1.5.0/docs/index.html
931e91f33d25 6974239: Correct reference to jdk document site in javadoc
ohair
parents: 6078
diff changeset
    51
DEV_DOCS_URL-6 = http://download.oracle.com/javase/6/docs/index.html
931e91f33d25 6974239: Correct reference to jdk document site in javadoc
ohair
parents: 6078
diff changeset
    52
DEV_DOCS_URL-7 = http://download.oracle.com/javase/7/docs/index.html
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    53
DEV_DOCS_URL = $(DEV_DOCS_URL-$(JDK_MINOR_VERSION))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    54
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    55
# Url to Java Language Spec
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    56
JLS3_URL = http://java.sun.com/docs/books/jls/
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    57
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    58
# Common Java trademark line
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    59
JAVA_TRADEMARK_LINE = Java is a trademark or registered trademark of \
6787
648846ff9d14 6981436: Variable gets hidden if Defs-javadoc is included
igor
parents: 6079
diff changeset
    60
$(FULL_COMPANY_NAME) in the US and other countries.
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    61
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    62
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    63
# Definitions for imported components
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    64
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    65
include $(BUILDDIR)/common/internal/ImportComponents.gmk
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    66
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
# We override whatever the max VM memory setting is here.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
#    NOTE: javadoc will not complete without these larger settings.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
#    WARNING: This could cause thrashing on low memory machines.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
ifeq ($(ARCH_DATA_MODEL),64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
  MAX_VM_MEMORY = 1024
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
  MAX_VM_MEMORY = 512
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    76
# List of all possible directories for javadoc to look for sources
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    77
#    NOTE: Quotes are required around sourcepath argument only on Windows.
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    78
#          Otherwise, you get "No packages or classes specified." due 
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    79
#          to $(CLASSPATH_SEPARATOR) being interpreted as an end of 
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    80
#          command (newline or shell ; character)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    81
ALL_SOURCE_DIRS = $(SHARE_SRC)/classes \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    82
                  $(IMPORTSRCDIR) \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    83
                  $(GENSRCDIR) \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    84
                  $(SHARE_SRC)/../solaris/classes \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    85
	          $(SHARE_SRC)/../windows/classes \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    86
		  $(SHARE_SRC)/doc/stub
6078
a2ce0450136c 6971426: jdk/make/docs docs target does not work on windows
ohair
parents: 5961
diff changeset
    87
a2ce0450136c 6971426: jdk/make/docs docs target does not work on windows
ohair
parents: 5961
diff changeset
    88
# List of directories that actually exist
a2ce0450136c 6971426: jdk/make/docs docs target does not work on windows
ohair
parents: 5961
diff changeset
    89
ALL_EXISTING_SOURCE_DIRS := $(wildcard $(ALL_SOURCE_DIRS))
a2ce0450136c 6971426: jdk/make/docs docs target does not work on windows
ohair
parents: 5961
diff changeset
    90
a2ce0450136c 6971426: jdk/make/docs docs target does not work on windows
ohair
parents: 5961
diff changeset
    91
# List with classpath separator between them
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    92
EMPTY:=
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    93
SPACE:= $(EMPTY) $(EMPTY)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    94
RELEASEDOCS_SOURCEPATH = \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    95
    $(subst $(SPACE),$(CLASSPATH_SEPARATOR),$(strip $(ALL_SOURCE_DIRS)))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    96
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    97
# Prep for javadoc creation, assumes $@ is an index.html file
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    98
define prep-javadoc
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
    99
@if [ -f "$@" -a "$?" != "" ] ; then \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   100
  $(ECHO) "# Dependencies have changed: $?"; \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   101
fi
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   102
$(RM) -r $(@D)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   103
$(MKDIR) -p $(@D)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   104
endef
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   105
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   106
# A cache of the directories in ALL_SOURCE_DIRS
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   107
DIRECTORY_CACHE = $(DOCSTMPDIR)/directory.cache
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   108
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   109
# Given a list of packages, return a list of files or dirs to be dependent on
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   110
#   (Currently only returning a list of directories)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   111
define PackageDependencies # packages
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   112
$(shell							\
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   113
  if [ "$1" != "" -a -f $(DIRECTORY_CACHE) ] ; then	\
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   114
    for p in $1 ; do 					\
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   115
      pd=`$(ECHO) $${p} | $(SED) -e 's@[.]@/@g'`;	\
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   116
      $(CAT) $(DIRECTORY_CACHE) | $(GREP) "/$${pd}/" ; 	\
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   117
    done; 						\
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   118
  fi							\
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   119
)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   120
endef
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   121
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   122
# Given a list of packages, add packages that exist to $@, print summary
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   123
define PackageFilter # packages
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   124
@if [ "$1" != "" ] ; then 				\
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   125
  for p in $1 ; do 					\
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   126
    pd=`$(ECHO) $${p} | $(SED) -e 's@[.]@/@g'`; 	\
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   127
    found="false"; 					\
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   128
    for cp in $(ALL_SOURCE_DIRS) ; do 			\
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   129
      if [ -d $${cp}/$${pd} ] ; then 			\
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   130
        $(ECHO) "$${p}" >> $@; 				\
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   131
	found="true";					\
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   132
	break; 						\
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   133
      fi; 						\
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   134
    done; 						\
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   135
    if [ "$${found}" = "false" ] ; then 		\
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   136
      $(ECHO) "WARNING: Package not found: $${p}"; 	\
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   137
    fi; 						\
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   138
  done; 						\
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   139
fi
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   140
endef
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   141
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   142
# Print out a summary of the javadoc command about to be run
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   143
define JavadocSummary # optionsfile packagesfile
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   144
@$(ECHO) "# Summary for $@";\
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   145
 $(ECHO) "# Options (`$(BASENAME) $1`):"; $(SED) -e 's@^@#   @' $1; \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   146
 $(ECHO) "# Packages (`$(BASENAME) $2`):";$(SED) -e 's@^@#   @' $2
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   147
endef
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   148
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
#
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   150
# Temporary directory for javadoc creation
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   151
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   152
DOCSTMPDIR = $(TEMPDIR)/doctmp
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   153
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   154
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   155
# Different api directories created from root directory
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   156
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   157
COREAPI_DOCSDIR   = $(DOCSDIR)/api
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   158
JDK_API_DOCSDIR   = $(DOCSDIR)/jdk/api
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   159
JRE_API_DOCSDIR   = $(DOCSDIR)/jre/api
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   160
PLATFORM_DOCSDIR  = $(DOCSDIR)/platform
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   161
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   162
# The non-core api javadocs need to be able to access the root of the core
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   163
#   api directory, so for jdk/api or jre/api to get to the core api/
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   164
#   directory we would use this:
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   165
JDKJRE2COREAPI    = ../../api
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   166
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   167
# Common bottom argument
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   168
define CommonBottom # year
8585
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   169
<font size="-1"><br> $(call CopyrightLine,,$1,)</font>
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   170
endef
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   172
# Common trademark bottom argument (Not sure why this is used sometimes)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   173
define CommonTrademarkBottom # year
8585
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   174
<font size="-1">\
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   175
$(BUG_SUBMIT_LINE)<br>$(JAVA_TRADEMARK_LINE)<br>\
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   176
$(call CopyrightLine,,$1,$(COMPANY_ADDRESS))\
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   177
</font>
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   178
endef
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   179
8585
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   180
# Common echo of option
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   181
define OptionOnly # opt
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   182
$(PRINTF) "%s\n" "$1"
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   183
endef
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   184
define OptionPair # opt arg
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   185
$(PRINTF) "%s '%s'\n" "$1" '$2'
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   186
endef
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   187
define OptionTrip # opt arg arg
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   188
$(PRINTF) "%s '%s' '%s'\n" "$1" '$2' '$3'
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   189
endef
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   190
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   191
# Core api bottom argument (with special sauce)
8585
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   192
COREAPI_BOTTOM = <font size="-1"> $(BUG_SUBMIT_LINE)\
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   193
<br>For further API reference and developer documentation, \
8585
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   194
see <a href="$(DEV_DOCS_URL)" target="_blank">Java SE Documentation</a>. \
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   195
That documentation contains more detailed, developer-targeted descriptions, \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   196
with conceptual overviews, definitions of terms, workarounds, \
8452
2aee9117a090 7016175: HTML generated from new JavaDoc has tags added from makefile
ohair
parents: 7529
diff changeset
   197
and working code examples.<br>\
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   198
$(call CopyrightLine,$(COPYRIGHT_URL),$(FIRST_COPYRIGHT_YEAR),)\
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   199
</font>
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   200
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   201
# Common javadoc options used by all
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
COMMON_JAVADOCFLAGS =					\
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   203
                $(NO_PROPRIETARY_API_WARNINGS)          \
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
		-quiet					\
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
                -use					\
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
                -keywords				\
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
		$(ADDITIONAL_JAVADOCFLAGS)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
ADDITIONAL_JAVADOCFLAGS =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   210
# Draft used for non-fcs documents
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   211
JDK_IS_FCS = false
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   212
DRAFT_HEADER =
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   213
ifeq ($(JDK_MINOR_VERSION),5)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   214
  JDK_IS_FCS = true
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   215
endif
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   216
ifeq ($(JDK_MINOR_VERSION),6)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   217
  JDK_IS_FCS = true
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   218
endif
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   219
ifeq ($(JDK_IS_FCS),false)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   220
  ifneq ($(MILESTONE), fcs)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   221
    DRAFT_HEADER = <br><strong>DRAFT&nbsp;$(MILESTONE)-$(BUILD_NUMBER)</strong>
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   222
    DRAFT_BOTTOM = <br><strong>DRAFT&nbsp;$(MILESTONE)-$(BUILD_NUMBER)</strong>
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   223
    DRAFT_WINTITLE = $(BUILD_NUMBER)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   224
    # Early access top text (not used in FCS releases)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   225
    COREAPI_TOP_EARLYACCESS = \
8585
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   226
<div style="background-color: \#EEEEEE"> \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   227
<div style="padding: 6px; margin-top: 2px; margin-bottom: 6px; \
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   228
margin-left: 6px; margin-right: 6px; text-align: justify; \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   229
font-size: 80%; font-family: Helvetica, Arial, sans-serif; \
8585
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   230
font-weight: normal;"> \
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   231
Please note that the specifications and other information \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   232
contained herein are not final and are subject to change. \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   233
The information is being made available to you solely for purpose of \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   234
evaluation. \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   235
</div> </div>
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   236
  endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   239
#################################################################
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
# CORE_PKGS environment variable has been moved to the following file
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
include CORE_PKGS.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
# Load environment variables for API package names that are not part of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
# the Java SE platform
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
include NON_CORE_PKGS.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   252
#################################################################
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   254
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   255
# Default target is same as docs target, create core api and all others it can
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   256
#
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
6078
a2ce0450136c 6971426: jdk/make/docs docs target does not work on windows
ohair
parents: 5961
diff changeset
   258
all: docs
a2ce0450136c 6971426: jdk/make/docs docs target does not work on windows
ohair
parents: 5961
diff changeset
   259
docs: coredocs otherdocs
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
#################################################################
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
# Production Targets -- USE THESE TARGETS WHEN:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
#    a) You're generating docs outside of release engineering's
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
#       standard control build.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
#    b) The docs will be pushed to the web and/or included in
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
#       the downloaded doc bundle.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
# See:  Notes.html#releaseTargets
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   269
# Note: Spaces precede ifdef/ifndef indents. Tabs precede target commands (!)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
#
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   271
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
sanitycheckcoredocs:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
	@$(ECHO) ""
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
	@$(ECHO) "Building core api docs with these values:"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
	@$(ECHO) "    BUILD_NUMBER = $(BUILD_NUMBER)"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
	@$(ECHO) "    MILESTONE = $(MILESTONE)"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
	@$(ECHO) ""
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
  ifeq ($(BUILD_NUMBER), b00)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
	@$(ECHO) "ERROR: Build number must be defined"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
	@$(ECHO) "MILESTONE is set to $(MILESTONE)"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
	@$(ECHO) ""
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
	exit 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   285
#############################################################
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   286
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   287
# coredocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   288
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   289
COREAPI_DOCTITLE  = Java$(TRADEMARK) Platform, Standard Edition \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   290
$(JDK_MINOR_VERSION)<br>API Specification
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   291
COREAPI_WINDOWTITLE  = Java Platform SE $(JDK_MINOR_VERSION)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   292
COREAPI_HEADER = \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   293
<strong>Java$(TRADEMARK)&nbsp;Platform<br>Standard&nbsp;Ed.&nbsp;$(JDK_MINOR_VERSION)</strong>
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   294
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   295
# Java language specification cite
8585
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   296
TAG_JLS3 = jls3:a:See <cite><a href="$(JLS3_URL)"> \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   297
The Java Language Specification, Third Edition</a></cite>:
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   298
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   299
# Overview file for core apis
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   300
COREAPI_OVERVIEW = $(SHARE_SRC)/classes/overview-core.html
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   301
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   302
# The index.html, options, and packages files
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   303
COREAPI_INDEX_FILE    = $(COREAPI_DOCSDIR)/index.html
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   304
COREAPI_OPTIONS_FILE  = $(DOCSTMPDIR)/coredocs.options
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   305
COREAPI_PACKAGES_FILE = $(DOCSTMPDIR)/coredocs.packages
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   306
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   307
coredocs: $(COREAPI_INDEX_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   308
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   309
# Set relative location to core api document root
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   310
$(COREAPI_INDEX_FILE): GET2DOCSDIR=..
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   312
# Run javadoc if the index file is out of date or missing
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   313
$(COREAPI_INDEX_FILE): $(COREAPI_OPTIONS_FILE) $(COREAPI_PACKAGES_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   314
	$(prep-javadoc)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   315
	$(call JavadocSummary,$(COREAPI_OPTIONS_FILE),$(COREAPI_PACKAGES_FILE))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   316
	$(JAVADOC_CMD) $(JAVADOC_VM_MEMORY_FLAGS) -d $(@D) \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   317
	  @$(COREAPI_OPTIONS_FILE) @$(COREAPI_PACKAGES_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   318
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   319
# Create file with javadoc options in it
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   320
$(COREAPI_OPTIONS_FILE): $(COREAPI_OVERVIEW)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   321
	$(prep-target)
8585
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   322
	@($(call OptionOnly,$(COMMON_JAVADOCFLAGS))			; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   323
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   324
	  $(call OptionPair,-encoding,ISO-8859-1)			; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   325
	  $(call OptionPair,-tag,beaninfo:X)				; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   326
	  $(call OptionPair,-tag,revised:X)				; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   327
	  $(call OptionPair,-tag,since.unbundled:X)			; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   328
	  $(call OptionPair,-tag,spec:X)				; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   329
	  $(call OptionPair,-tag,specdefault:X)				; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   330
	  $(call OptionPair,-tag,Note:X)				; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   331
	  $(call OptionPair,-tag,ToDo:X)				; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   332
          $(call OptionPair,-tag,$(TAG_JLS3)) 				; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   333
	  $(call OptionOnly,-splitIndex)				; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   334
	  $(call OptionPair,-overview,$(COREAPI_OVERVIEW))		; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   335
	  $(call OptionPair,-doctitle,$(COREAPI_DOCTITLE))		; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   336
	  $(call OptionPair,-windowtitle,$(COREAPI_WINDOWTITLE) $(DRAFT_WINTITLE)) ;\
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   337
	  $(call OptionPair,-header,$(COREAPI_HEADER)$(DRAFT_HEADER))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   338
	  $(call OptionPair,-bottom,$(COREAPI_BOTTOM)$(DRAFT_BOTTOM))	; \
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   339
        ) >> $@
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   340
ifdef COREAPI_TOP_EARLYACCESS
8585
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   341
	@$(call OptionPair,-top,$(COREAPI_TOP_EARLYACCESS)) >> $@
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   342
endif
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   343
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   344
# Create a file with the package names in it
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   345
$(COREAPI_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(CORE_PKGS))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   346
	$(prep-target)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   347
	$(call PackageFilter,$(CORE_PKGS))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   348
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   349
#############################################################
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
#
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   351
# mirrordocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   352
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   353
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   354
# Part of langtools
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   355
ifdef LANGTOOLS_DIST
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   356
  ALL_OTHER_TARGETS += mirrordocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   357
endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   359
MIRROR_DOCDIR      := $(JDK_API_DOCSDIR)/apt/mirror
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   360
MIRROR2COREAPI     := ../../$(JDKJRE2COREAPI)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   361
MIRROR_DOCTITLE    := Mirror API
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   362
MIRROR_WINDOWTITLE := Mirror API
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   363
MIRROR_HEADER      := <strong>Mirror API</strong>
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   364
MIRROR_BOTTOM      := $(call CommonBottom,$(MIRROR_FIRST_COPYRIGHT_YEAR))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   365
MIRROR_GROUPNAME   := Packages
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   366
MIRROR_OVERVIEW    := $(IMPORTSRCDIR)/com/sun/mirror/overview.html
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   367
MIRROR_REGEXP      := com.sun.mirror.*
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   368
# MIRROR_PKGS is located in NON_CORE_PKGS.gmk
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   369
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   370
# The index.html, options, and packages files
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   371
MIRROR_INDEX_FILE    = $(MIRROR_DOCDIR)/index.html
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   372
MIRROR_OPTIONS_FILE  = $(DOCSTMPDIR)/mirror.options
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   373
MIRROR_PACKAGES_FILE = $(DOCSTMPDIR)/mirror.packages
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   374
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   375
mirrordocs: $(MIRROR_INDEX_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   376
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   377
# Set relative location to core api document root
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   378
$(MIRROR_INDEX_FILE): GET2DOCSDIR=$(MIRROR2COREAPI)/..
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   379
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   380
# Run javadoc if the index file is out of date or missing
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   381
$(MIRROR_INDEX_FILE): $(MIRROR_OPTIONS_FILE) $(MIRROR_PACKAGES_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   382
	$(prep-javadoc)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   383
	$(call JavadocSummary,$(MIRROR_OPTIONS_FILE),$(MIRROR_PACKAGES_FILE))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   384
	$(JAVADOC_CMD) $(JAVADOC_VM_MEMORY_FLAGS) -d $(@D) \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   385
	  @$(MIRROR_OPTIONS_FILE) @$(MIRROR_PACKAGES_FILE)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   387
# Create file with javadoc options in it
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   388
$(MIRROR_OPTIONS_FILE): $(MIRROR_OVERVIEW)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   389
	$(prep-target)
8585
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   390
	@($(call OptionOnly,$(COMMON_JAVADOCFLAGS))			; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   391
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   392
	  $(call OptionPair,-encoding,ascii)				; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   393
	  $(call OptionPair,-overview,$(MIRROR_OVERVIEW))		; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   394
	  $(call OptionPair,-doctitle,$(MIRROR_DOCTITLE))		; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   395
	  $(call OptionPair,-windowtitle,$(MIRROR_WINDOWTITLE) $(DRAFT_WINTITLE));\
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   396
	  $(call OptionPair,-header,$(MIRROR_HEADER)$(DRAFT_HEADER))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   397
	  $(call OptionPair,-bottom,$(MIRROR_BOTTOM)$(DRAFT_BOTTOM)) 	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   398
	  $(call OptionTrip,-group,$(MIRROR_GROUPNAME),$(MIRROR_REGEXP)); \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   399
	  $(call OptionTrip,-linkoffline,$(MIRROR2COREAPI),$(COREAPI_DOCSDIR)); \
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   400
        ) >> $@
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   401
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   402
# Create a file with the package names in it
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   403
$(MIRROR_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(MIRROR_PKGS))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   404
	$(prep-target)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   405
	$(call PackageFilter,$(MIRROR_PKGS))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   406
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   407
#############################################################
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   408
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   409
# docletapidocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   410
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   411
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   412
# Part of langtools
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   413
ifdef LANGTOOLS_DIST
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   414
  ALL_OTHER_TARGETS += docletapidocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   415
endif
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   416
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   417
DOCLETAPI_DOCDIR       := $(JDK_API_DOCSDIR)/javadoc/doclet
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   418
DOCLETAPI2COREAPI      := ../../$(JDKJRE2COREAPI)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   419
DOCLETAPI_DOCTITLE     := Doclet API
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   420
DOCLETAPI_WINDOWTITLE  := Doclet API
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   421
DOCLETAPI_HEADER       := <strong>Doclet API</strong>
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   422
DOCLETAPI_BOTTOM       := $(call CommonTrademarkBottom,$(DOCLETAPI_FIRST_COPYRIGHT_YEAR))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   423
DOCLETAPI_GROUPNAME    := Packages
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   424
DOCLETAPI_REGEXP       := com.sun.javadoc
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   425
# DOCLETAPI_PKGS is located in NON_CORE_PKGS.gmk
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   426
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   427
# The index.html, options, and packages files
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   428
DOCLETAPI_INDEX_FILE    = $(DOCLETAPI_DOCDIR)/index.html
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   429
DOCLETAPI_OPTIONS_FILE  = $(DOCSTMPDIR)/docletapi.options
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   430
DOCLETAPI_PACKAGES_FILE = $(DOCSTMPDIR)/docletapi.packages
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   431
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   432
docletapidocs: $(DOCLETAPI_INDEX_FILE)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   433
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   434
# Set relative location to core api document root
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   435
$(DOCLETAPI_INDEX_FILE): GET2DOCSDIR=$(DOCLETAPI2COREAPI)/..
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   436
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   437
# Run javadoc if the index file is out of date or missing
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   438
$(DOCLETAPI_INDEX_FILE): $(DOCLETAPI_OPTIONS_FILE) $(DOCLETAPI_PACKAGES_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   439
	$(prep-javadoc)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   440
	$(call JavadocSummary,$(DOCLETAPI_OPTIONS_FILE),$(DOCLETAPI_PACKAGES_FILE))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   441
	$(JAVADOC_CMD) $(JAVADOC_VM_MEMORY_FLAGS) -d $(@D) \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   442
	  @$(DOCLETAPI_OPTIONS_FILE) @$(DOCLETAPI_PACKAGES_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   443
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   444
# Create file with javadoc options in it
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   445
$(DOCLETAPI_OPTIONS_FILE):
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   446
	$(prep-target)
8585
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   447
	@($(call OptionOnly,$(COMMON_JAVADOCFLAGS))			; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   448
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   449
	  $(call OptionPair,-encoding,ascii)				; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   450
	  $(call OptionOnly,-breakiterator)				; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   451
	  $(call OptionPair,-doctitle,$(DOCLETAPI_DOCTITLE))		; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   452
	  $(call OptionPair,-windowtitle,$(DOCLETAPI_WINDOWTITLE) $(DRAFT_WINTITLE));\
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   453
	  $(call OptionPair,-header,$(DOCLETAPI_HEADER)$(DRAFT_HEADER))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   454
	  $(call OptionPair,-bottom,$(DOCLETAPI_BOTTOM)$(DRAFT_BOTTOM))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   455
	  $(call OptionTrip,-group,$(DOCLETAPI_GROUPNAME),$(DOCLETAPI_REGEXP)); \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   456
	  $(call OptionTrip,-linkoffline,$(DOCLETAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   457
        ) >> $@
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   458
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   459
# Create a file with the package names in it
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   460
$(DOCLETAPI_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(DOCLETAPI_PKGS))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   461
	$(prep-target)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   462
	$(call PackageFilter,$(DOCLETAPI_PKGS))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   463
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   464
#############################################################
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   465
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   466
# tagletapidocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   467
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   468
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   469
# Part of langtools
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   470
ifdef LANGTOOLS_DIST
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   471
  ALL_OTHER_TARGETS += tagletapidocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   472
endif
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   473
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   474
TAGLETAPI_DOCDIR   := $(JDK_API_DOCSDIR)/javadoc/taglet
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   475
TAGLETAPI2COREAPI  := ../../$(JDKJRE2COREAPI)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   476
TAGLETAPI_BOTTOM   := $(call CommonTrademarkBottom,$(TAGLETAPI_FIRST_COPYRIGHT_YEAR))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   477
# TAGLETAPI_FILE is located in NON_CORE_PKGS.gmk
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   478
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   479
# Temporary directory (special generation rules)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   480
TAGLETAPI_TEMPDIR       = $(DOCSTMPDIR)/taglets_temp
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   481
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   482
# The index.html, options, and packages files
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   483
TAGLETAPI_INDEX_FILE    = $(TAGLETAPI_DOCDIR)/index.html
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   484
TAGLETAPI_OPTIONS_FILE  = $(DOCSTMPDIR)/tagletapi.options
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   485
TAGLETAPI_PACKAGES_FILE = $(DOCSTMPDIR)/tagletapi.packages
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   486
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   487
tagletapidocs: $(TAGLETAPI_INDEX_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   488
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   489
# Set relative location to core api document root
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   490
$(TAGLETAPI_INDEX_FILE): GET2DOCSDIR=$(TAGLETAPI2COREAPI)/..
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   491
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   492
# Run javadoc if the index file is out of date or missing
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   493
$(TAGLETAPI_INDEX_FILE): $(TAGLETAPI_OPTIONS_FILE) $(TAGLETAPI_PACKAGES_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   494
	$(prep-javadoc)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   495
	$(RM) -r $(TAGLETAPI_TEMPDIR)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   496
	$(MKDIR) -p $(TAGLETAPI_TEMPDIR)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   497
	$(call JavadocSummary,$(TAGLETAPI_OPTIONS_FILE),$(TAGLETAPI_PACKAGES_FILE))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   498
	$(JAVADOC_CMD) $(JAVADOC_VM_MEMORY_FLAGS) -d $(TAGLETAPI_TEMPDIR) \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   499
	  @$(TAGLETAPI_OPTIONS_FILE) @$(TAGLETAPI_PACKAGES_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   500
	cp -r $(TAGLETAPI_TEMPDIR)/com $(@D)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   501
	cp $(TAGLETAPI_TEMPDIR)/stylesheet.css $(@D)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   502
	$(RM) -r $(TAGLETAPI_TEMPDIR)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   503
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   504
# Create file with javadoc options in it
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   505
$(TAGLETAPI_OPTIONS_FILE):
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   506
	$(prep-target)
8585
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   507
	@($(call OptionOnly,$(COMMON_JAVADOCFLAGS))			; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   508
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   509
	  $(call OptionPair,-encoding,ascii)				; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   510
	  $(call OptionOnly,-nonavbar)					; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   511
	  $(call OptionOnly,-noindex)					; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   512
	  $(call OptionPair,-bottom,$(TAGLETAPI_BOTTOM)$(DRAFT_BOTTOM))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   513
	  $(call OptionTrip,-linkoffline,$(TAGLETAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   514
        ) >> $@
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   515
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   516
# Create a file with the package names in it
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   517
$(TAGLETAPI_PACKAGES_FILE): $(IMPORTSRCDIR)/$(TAGLETAPI_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   518
	$(prep-target)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   519
	@($(ECHO) "$(IMPORTSRCDIR)/$(TAGLETAPI_FILE)" ) > $@
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   520
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   521
#############################################################
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   522
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   523
# domapidocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   524
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   525
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   526
ALL_OTHER_TARGETS += domapidocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   527
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   528
DOMAPI_DOCDIR       := $(JRE_API_DOCSDIR)/plugin/dom
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   529
DOMAPI2COREAPI      := ../../$(JDKJRE2COREAPI)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   530
DOMAPI_DOCTITLE     := Common DOM API
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   531
DOMAPI_WINDOWTITLE  := Common DOM API
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   532
DOMAPI_HEADER       := <strong>Common DOM API</strong>
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   533
DOMAPI_BOTTOM       := $(call CommonTrademarkBottom,$(DOMAPI_FIRST_COPYRIGHT_YEAR))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   534
DOMAPI_GROUPNAME    := Packages
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   535
DOMAPI_REGEXP       := com.sun.java.browser.dom:org.w3c.dom*
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   536
# DOMAPI_PKGS is located in NON_CORE_PKGS.gmk
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   537
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   538
# The index.html, options, and packages files
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   539
DOMAPI_INDEX_FILE    = $(DOMAPI_DOCDIR)/index.html
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   540
DOMAPI_OPTIONS_FILE  = $(DOCSTMPDIR)/domapi.options
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   541
DOMAPI_PACKAGES_FILE = $(DOCSTMPDIR)/domapi.packages
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   542
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   543
domapidocs: $(DOMAPI_INDEX_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   544
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   545
# Set relative location to core api document root
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   546
$(DOMAPI_INDEX_FILE): GET2DOCSDIR=$(DOMAPI2COREAPI)/..
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   547
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   548
# Run javadoc if the index file is out of date or missing
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   549
$(DOMAPI_INDEX_FILE): $(DOMAPI_OPTIONS_FILE) $(DOMAPI_PACKAGES_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   550
	$(prep-javadoc)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   551
	$(call JavadocSummary,$(DOMAPI_OPTIONS_FILE),$(DOMAPI_PACKAGES_FILE))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   552
	$(JAVADOC_CMD) $(JAVADOC_VM_MEMORY_FLAGS) -d $(@D) \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   553
	  @$(DOMAPI_OPTIONS_FILE) @$(DOMAPI_PACKAGES_FILE)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   554
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   555
# Create file with javadoc options in it
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   556
$(DOMAPI_OPTIONS_FILE):
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   557
	$(prep-target)
8585
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   558
	@($(call OptionOnly,$(COMMON_JAVADOCFLAGS))			; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   559
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   560
	  $(call OptionPair,-encoding,ascii)				; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   561
	  $(call OptionOnly,-splitIndex)				; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   562
	  $(call OptionPair,-doctitle,$(DOMAPI_DOCTITLE))		; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   563
	  $(call OptionPair,-windowtitle,$(DOMAPI_WINDOWTITLE) $(DRAFT_WINTITLE));\
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   564
	  $(call OptionPair,-header,$(DOMAPI_HEADER)$(DRAFT_HEADER))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   565
	  $(call OptionPair,-bottom,$(DOMAPI_BOTTOM)$(DRAFT_BOTTOM))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   566
	  $(call OptionTrip,-group,$(DOMAPI_GROUPNAME),$(DOMAPI_REGEXP)); \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   567
	  $(call OptionTrip,-linkoffline,$(DOMAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   568
        ) >> $@
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   569
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   570
# Create a file with the package names in it
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   571
$(DOMAPI_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(DOMAPI_PKGS))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   572
	$(prep-target)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   573
	$(call PackageFilter,$(DOMAPI_PKGS))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   574
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   575
#############################################################
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   576
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   577
# jpdadocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   578
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   579
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   580
ALL_OTHER_TARGETS += jpdadocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   581
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   582
jpdadocs: jdidocs jdwpdocs jvmtidocs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   583
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   584
#############################################################
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   585
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   586
# jdidocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   587
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   588
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   589
ALL_OTHER_TARGETS += jdidocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   590
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   591
JDI_DOCDIR      := $(JDK_API_DOCSDIR)/jpda/jdi
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   592
JDI2COREAPI     := ../../$(JDKJRE2COREAPI)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   593
JDI_DOCTITLE    := Java$(TRADEMARK) Debug Interface
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   594
JDI_WINDOWTITLE := Java Debug Interface
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   595
JDI_HEADER      := <strong>Java Debug Interface</strong>
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   596
JDI_BOTTOM      := $(call CommonBottom,$(JDI_FIRST_COPYRIGHT_YEAR))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   597
JDI_OVERVIEW    := $(SHARE_SRC)/classes/jdi-overview.html
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   598
# JDI_PKGS is located in NON_CORE_PKGS.gmk
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   599
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   600
# The index.html, options, and packages files
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   601
JDI_INDEX_FILE    = $(JDI_DOCDIR)/index.html
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   602
JDI_OPTIONS_FILE  = $(DOCSTMPDIR)/jdi.options
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   603
JDI_PACKAGES_FILE = $(DOCSTMPDIR)/jdi.packages
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   604
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   605
jdidocs: $(JDI_INDEX_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   606
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   607
# Set relative location to core api document root
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   608
$(JDI_INDEX_FILE): GET2DOCSDIR=$(JDI2COREAPI)/..
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   609
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   610
# Run javadoc if the index file is out of date or missing
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   611
$(JDI_INDEX_FILE): $(JDI_OPTIONS_FILE) $(JDI_PACKAGES_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   612
	$(prep-javadoc)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   613
	$(call JavadocSummary,$(JDI_OPTIONS_FILE),$(JDI_PACKAGES_FILE))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   614
	$(JAVADOC_CMD) $(JAVADOC_VM_MEMORY_FLAGS) -d $(@D) \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   615
	  @$(JDI_OPTIONS_FILE) @$(JDI_PACKAGES_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   616
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   617
# Create file with javadoc options in it
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   618
$(JDI_OPTIONS_FILE): $(JDI_OVERVIEW)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   619
	$(prep-target)
8585
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   620
	@($(call OptionOnly,$(COMMON_JAVADOCFLAGS))			; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   621
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   622
	  $(call OptionPair,-encoding,ascii)				; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   623
	  $(call OptionPair,-overview,$(JDI_OVERVIEW))			; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   624
	  $(call OptionPair,-doctitle,$(JDI_DOCTITLE))			; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   625
	  $(call OptionPair,-windowtitle,$(JDI_WINDOWTITLE) $(DRAFT_WINTITLE)); \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   626
	  $(call OptionPair,-header,$(JDI_HEADER)$(DRAFT_HEADER))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   627
	  $(call OptionPair,-bottom,$(JDI_BOTTOM)$(DRAFT_BOTTOM))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   628
	  $(call OptionTrip,-linkoffline,$(JDI2COREAPI),$(COREAPI_DOCSDIR)/); \
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   629
        ) >> $@
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   630
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   631
# Create a file with the package names in it
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   632
$(JDI_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(JDI_PKGS))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   633
	$(prep-target)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   634
	$(call PackageFilter,$(JDI_PKGS))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   635
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   636
#############################################################
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   637
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   638
# jdwpdocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   639
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   640
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   641
ALL_OTHER_TARGETS += jdwpdocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   642
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   643
JDWP_DOCDIR     = $(PLATFORM_DOCSDIR)/jpda/jdwp
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   644
JDWP_SPEC       = $(BUILDDIR)/jpda/jdwp/jdwp.spec
90ce3da70b43 Initial load
duke
parents:
diff changeset
   645
JDWPGEN_JARFILE = $(BUILDTOOLJARDIR)/jdwpgen.jar
90ce3da70b43 Initial load
duke
parents:
diff changeset
   646
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   647
jdwpdocs: $(JDWP_DOCDIR)/jdwp-protocol.html
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   648
$(JDWP_DOCDIR)/jdwp-protocol.html: $(JDWPGEN_JARFILE) $(JDWP_SPEC)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   649
	$(prep-javadoc)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   650
	$(BOOT_JAVA_CMD) -jar $(JDWPGEN_JARFILE) $(JDWP_SPEC) -doc $@
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   651
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   652
#############################################################
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   653
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   654
# jvmtidocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   655
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   656
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   657
ALL_OTHER_TARGETS += jvmtidocs
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   658
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   659
JVMTI_DOCDIR      = $(PLATFORM_DOCSDIR)/jvmti
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   660
JVMTI_HTML        = $(HOTSPOT_DOCS_IMPORT_PATH)/platform/jvmti/jvmti.html
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   661
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   662
jvmtidocs:  $(JVMTI_DOCDIR)/jvmti.html
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   663
$(JVMTI_DOCDIR)/jvmti.html:
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   664
	@$(prep-javadoc)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   665
	@if [ -f $(JVMTI_HTML) ] ; then		                           \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   666
	  $(ECHO) "$(CP) $(JVMTI_HTML) $@";                 	           \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   667
	  $(CP) $(JVMTI_HTML) $@; 	                 	           \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   668
	else 						                   \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   669
	  $(ECHO) "WARNING: Generated file does not exist: $(JVMTI_HTML)"; \
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   670
	fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   671
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   672
#############################################################
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   673
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   674
# jaasdocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   675
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   676
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   677
ALL_OTHER_TARGETS += jaasdocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   678
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   679
JAAS_DOCDIR	 := $(JRE_API_DOCSDIR)/security/jaas/spec
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   680
JAAS2COREAPI     := ../../../$(JDKJRE2COREAPI)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   681
JAAS_DOCTITLE    := Java$(TRADEMARK) Authentication and Authorization Service
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   682
JAAS_WINDOWTITLE := Java Authentication and Authorization Service
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   683
JAAS_HEADER      := <strong>Java Authentication and Authorization Service</strong>
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   684
JAAS_BOTTOM      := $(call CommonBottom,$(JAAS_FIRST_COPYRIGHT_YEAR))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   685
# JAAS_PKGS is located in NON_CORE_PKGS.gmk
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   686
JAAS_OVERVIEW    := $(SHARE_SRC)/classes/com/sun/security/auth/jaas-overview.html
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   687
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   688
# The index.html, options, and packages files
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   689
JAAS_INDEX_FILE    = $(JAAS_DOCDIR)/index.html
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   690
JAAS_OPTIONS_FILE  = $(DOCSTMPDIR)/jaas.options
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   691
JAAS_PACKAGES_FILE = $(DOCSTMPDIR)/jaas.packages
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   692
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   693
jaasdocs: $(JAAS_INDEX_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   694
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   695
# Set relative location to core api document root
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   696
$(JAAS_INDEX_FILE): GET2DOCSDIR=$(JAAS2COREAPI)/..
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   697
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   698
# Run javadoc if the index file is out of date or missing
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   699
$(JAAS_INDEX_FILE): $(JAAS_OPTIONS_FILE) $(JAAS_PACKAGES_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   700
	$(prep-javadoc)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   701
	$(call JavadocSummary,$(JAAS_OPTIONS_FILE),$(JAAS_PACKAGES_FILE))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   702
	$(JAVADOC_CMD) $(JAVADOC_VM_MEMORY_FLAGS) -d $(@D) \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   703
	  @$(JAAS_OPTIONS_FILE) @$(JAAS_PACKAGES_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   704
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   705
# Create file with javadoc options in it
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   706
$(JAAS_OPTIONS_FILE): $(JAAS_OVERVIEW)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   707
	$(prep-target)
8585
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   708
	@($(call OptionOnly,$(COMMON_JAVADOCFLAGS))			; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   709
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   710
	  $(call OptionPair,-encoding,ascii)				; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   711
	  $(call OptionPair,-overview,$(JAAS_OVERVIEW))			; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   712
	  $(call OptionPair,-doctitle,$(JAAS_DOCTITLE))			; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   713
	  $(call OptionPair,-windowtitle,$(JAAS_WINDOWTITLE) $(DRAFT_WINTITLE)); \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   714
	  $(call OptionPair,-header,$(JAAS_HEADER)$(DRAFT_HEADER))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   715
	  $(call OptionPair,-bottom,$(JAAS_BOTTOM)$(DRAFT_BOTTOM))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   716
	  $(call OptionTrip,-linkoffline,$(JAAS2COREAPI),$(COREAPI_DOCSDIR)/); \
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   717
        ) >> $@
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   718
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   719
# Create a file with the package names in it
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   720
$(JAAS_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(JAAS_PKGS))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   721
	$(prep-target)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   722
	$(call PackageFilter,$(JAAS_PKGS))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   723
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   724
#############################################################
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   725
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   726
# jgssdocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   727
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   728
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   729
ALL_OTHER_TARGETS += jgssdocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   730
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   731
JGSS_DOCDIR	 := $(JRE_API_DOCSDIR)/security/jgss/spec
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   732
JGSS2COREAPI     := ../../../$(JDKJRE2COREAPI)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   733
JGSS_DOCTITLE    := Java$(TRADEMARK) GSS-API Utilities
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   734
JGSS_WINDOWTITLE := Java GSS-API Utilities
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   735
JGSS_HEADER      := <strong>Java GSS-API Utilities</strong>
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   736
JGSS_BOTTOM      := $(call CommonBottom,$(JGSS_FIRST_COPYRIGHT_YEAR))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   737
JGSS_OVERVIEW    := $(SHARE_SRC)/classes/com/sun/security/jgss/jgss-overview.html
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   738
# JGSS_PKGS is located in NON_CORE_PKGS.gmk
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   739
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   740
# The index.html, options, and packages files
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   741
JGSS_INDEX_FILE    = $(JGSS_DOCDIR)/index.html
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   742
JGSS_OPTIONS_FILE  = $(DOCSTMPDIR)/jgss.options
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   743
JGSS_PACKAGES_FILE = $(DOCSTMPDIR)/jgss.packages
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   744
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   745
jgssdocs: $(JGSS_INDEX_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   746
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   747
# Set relative location to core api document root
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   748
$(JGSS_INDEX_FILE): GET2DOCSDIR=$(JGSS2COREAPI)/..
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   749
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   750
# Run javadoc if the index file is out of date or missing
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   751
$(JGSS_INDEX_FILE): $(JGSS_OPTIONS_FILE) $(JGSS_PACKAGES_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   752
	$(prep-javadoc)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   753
	$(call JavadocSummary,$(JGSS_OPTIONS_FILE),$(JGSS_PACKAGES_FILE))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   754
	$(JAVADOC_CMD) $(JAVADOC_VM_MEMORY_FLAGS) -d $(@D) \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   755
	  @$(JGSS_OPTIONS_FILE) @$(JGSS_PACKAGES_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   756
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   757
# Create file with javadoc options in it
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   758
$(JGSS_OPTIONS_FILE): $(JGSS_OVERVIEW)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   759
	$(prep-target)
8585
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   760
	@($(call OptionOnly,$(COMMON_JAVADOCFLAGS))			; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   761
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   762
	  $(call OptionPair,-encoding,ascii)				; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   763
	  $(call OptionOnly,-nodeprecatedlist)				; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   764
	  $(call OptionPair,-overview,$(JGSS_OVERVIEW))			; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   765
	  $(call OptionPair,-doctitle,$(JGSS_DOCTITLE))			; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   766
	  $(call OptionPair,-windowtitle,$(JGSS_WINDOWTITLE) $(DRAFT_WINTITLE)); \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   767
	  $(call OptionPair,-header,$(JGSS_HEADER)$(DRAFT_HEADER))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   768
	  $(call OptionPair,-bottom,$(JGSS_BOTTOM)$(DRAFT_BOTTOM))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   769
	  $(call OptionTrip,-linkoffline,$(JGSS2COREAPI),$(COREAPI_DOCSDIR)/); \
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   770
        ) >> $@
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   771
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   772
# Create a file with the package names in it
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   773
$(JGSS_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(JGSS_PKGS))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   774
	$(prep-target)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   775
	$(call PackageFilter,$(JGSS_PKGS))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   776
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   777
#############################################################
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   778
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   779
# smartcardiodocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   780
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   781
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   782
ALL_OTHER_TARGETS += smartcardiodocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   783
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   784
SMARTCARDIO_DOCDIR	:= $(JRE_API_DOCSDIR)/security/smartcardio/spec
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   785
SMARTCARDIO2COREAPI     := ../../../$(JDKJRE2COREAPI)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   786
SMARTCARDIO_DOCTITLE    := Java$(TRADEMARK) Smart Card I/O
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   787
SMARTCARDIO_WINDOWTITLE := Java Smart Card I/O
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   788
SMARTCARDIO_HEADER      := <strong>Java Smart Card I/O</strong>
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   789
SMARTCARDIO_BOTTOM      := $(call CommonBottom,$(SMARTCARDIO_FIRST_COPYRIGHT_YEAR))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   790
# SMARTCARDIO_PKGS is located in NON_CORE_PKGS.gmk
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   791
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   792
# The index.html, options, and packages files
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   793
SMARTCARDIO_INDEX_FILE    = $(SMARTCARDIO_DOCDIR)/index.html
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   794
SMARTCARDIO_OPTIONS_FILE  = $(DOCSTMPDIR)/smartcardio.options
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   795
SMARTCARDIO_PACKAGES_FILE = $(DOCSTMPDIR)/smartcardio.packages
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   796
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   797
smartcardiodocs: $(SMARTCARDIO_INDEX_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   798
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   799
# Set relative location to core api document root
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   800
$(SMARTCARDIO_INDEX_FILE): GET2DOCSDIR=$(SMARTCARDIO2COREAPI)/..
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   801
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   802
# Run javadoc if the index file is out of date or missing
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   803
$(SMARTCARDIO_INDEX_FILE): $(SMARTCARDIO_OPTIONS_FILE) $(SMARTCARDIO_PACKAGES_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   804
	$(prep-javadoc)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   805
	$(call JavadocSummary,$(SMARTCARDIO_OPTIONS_FILE),$(SMARTCARDIO_PACKAGES_FILE))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   806
	$(JAVADOC_CMD) $(JAVADOC_VM_MEMORY_FLAGS) -d $(@D) \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   807
	  @$(SMARTCARDIO_OPTIONS_FILE) @$(SMARTCARDIO_PACKAGES_FILE)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   808
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   809
# Create file with javadoc options in it
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   810
$(SMARTCARDIO_OPTIONS_FILE):
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   811
	$(prep-target)
8585
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   812
	@($(call OptionOnly,$(COMMON_JAVADOCFLAGS))			; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   813
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   814
	  $(call OptionPair,-encoding,ascii)				; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   815
	  $(call OptionOnly,-nodeprecatedlist)				; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   816
	  $(call OptionPair,-doctitle,$(SMARTCARDIO_DOCTITLE))		; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   817
	  $(call OptionPair,-windowtitle,$(SMARTCARDIO_WINDOWTITLE) $(DRAFT_WINTITLE));\
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   818
	  $(call OptionPair,-header,$(SMARTCARDIO_HEADER)$(DRAFT_HEADER)); \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   819
	  $(call OptionPair,-bottom,$(SMARTCARDIO_BOTTOM)$(DRAFT_BOTTOM)); \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   820
	  $(call OptionTrip,-linkoffline,$(SMARTCARDIO2COREAPI),$(COREAPI_DOCSDIR)/); \
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   821
        ) >> $@
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   822
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   823
# Create a file with the package names in it
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   824
$(SMARTCARDIO_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(SMARTCARDIO_PKGS))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   825
	$(prep-target)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   826
	$(call PackageFilter,$(SMARTCARDIO_PKGS))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   827
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   828
#############################################################
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   829
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   830
# httpserverdocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   831
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   832
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   833
ALL_OTHER_TARGETS += httpserverdocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   834
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   835
HTTPSERVER_DOCDIR      := $(JRE_API_DOCSDIR)/net/httpserver/spec
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   836
HTTPSERVER2COREAPI     := ../../../$(JDKJRE2COREAPI)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   837
HTTPSERVER_DOCTITLE    := Java$(TRADEMARK) HTTP Server
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   838
HTTPSERVER_WINDOWTITLE := Java HTTP Server
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   839
HTTPSERVER_HEADER      := <strong>Java HTTP Server</strong>
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   840
HTTPSERVER_BOTTOM      := $(call CommonBottom,$(HTTPSERVER_FIRST_COPYRIGHT_YEAR))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   841
# HTTPSERVER_PKGS is located in NON_CORE_PKGS.gmk
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   842
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   843
HTTPSERVER_INDEX_HTML    = $(HTTPSERVER_DOCDIR)/index.html
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   844
HTTPSERVER_OPTIONS_FILE  = $(DOCSTMPDIR)/httpserver.options
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   845
HTTPSERVER_PACKAGES_FILE = $(DOCSTMPDIR)/httpserver.packages
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   846
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   847
httpserverdocs: $(HTTPSERVER_INDEX_HTML)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   848
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   849
# Set relative location to core api document root
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   850
$(HTTPSERVER_INDEX_HTML): GET2DOCSDIR=$(HTTPSERVER2COREAPI)/..
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   851
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   852
# Run javadoc if the index file is out of date or missing
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   853
$(HTTPSERVER_INDEX_HTML): $(HTTPSERVER_OPTIONS_FILE) $(HTTPSERVER_PACKAGES_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   854
	$(prep-javadoc)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   855
	$(call JavadocSummary,$(HTTPSERVER_OPTIONS_FILE),$(HTTPSERVER_PACKAGES_FILE))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   856
	$(JAVADOC_CMD) $(JAVADOC_VM_MEMORY_FLAGS) -d $(@D) \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   857
	  @$(HTTPSERVER_OPTIONS_FILE) @$(HTTPSERVER_PACKAGES_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   858
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   859
# Create file with javadoc options in it
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   860
$(HTTPSERVER_OPTIONS_FILE):
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   861
	$(prep-target)
8585
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   862
	@($(call OptionOnly,$(COMMON_JAVADOCFLAGS))			; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   863
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   864
	  $(call OptionPair,-encoding,ascii)				; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   865
	  $(call OptionOnly,-nodeprecatedlist)				; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   866
	  $(call OptionPair,-doctitle,$(HTTPSERVER_DOCTITLE))		; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   867
	  $(call OptionPair,-windowtitle,$(HTTPSERVER_WINDOWTITLE) $(DRAFT_WINTITLE));\
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   868
	  $(call OptionPair,-header,$(HTTPSERVER_HEADER)$(DRAFT_HEADER)); \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   869
	  $(call OptionPair,-bottom,$(HTTPSERVER_BOTTOM)$(DRAFT_BOTTOM)); \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   870
	  $(call OptionTrip,-linkoffline,$(HTTPSERVER2COREAPI),$(COREAPI_DOCSDIR)/); \
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   871
        ) >> $@
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   872
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   873
# Create a file with the package names in it
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   874
$(HTTPSERVER_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(HTTPSERVER_PKGS))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   875
	$(prep-target)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   876
	$(call PackageFilter,$(HTTPSERVER_PKGS))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   877
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   878
#############################################################
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   879
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   880
# mgmtdocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   881
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   882
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   883
ALL_OTHER_TARGETS += mgmtdocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   884
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   885
MGMT_DOCDIR	 := $(JRE_API_DOCSDIR)/management/extension
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   886
MGMT2COREAPI     := ../../$(JDKJRE2COREAPI)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   887
JVM_MIB_NAME     := JVM-MANAGEMENT-MIB.mib
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   888
JVM_MIB_SRC      := $(CLOSED_SRC)/share/classes/sun/management/snmp/$(JVM_MIB_NAME)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   889
MGMT_DOCTITLE    := Monitoring and Management Interface for the Java$(TRADEMARK) Platform
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   890
MGMT_WINDOWTITLE := Monitoring and Management Interface for the Java Platform
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   891
MGMT_HEADER      := <strong>Monitoring and Management Interface for the Java Platform</strong>
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   892
MGMT_BOTTOM      := $(call CommonBottom,$(MGMT_FIRST_COPYRIGHT_YEAR))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   893
MGMT_OVERVIEW    := $(SHARE_SRC)/classes/com/sun/management/mgmt-overview.html
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   894
# MGMT_PKGS is located in NON_CORE_PKGS.gmk
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   895
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   896
# The index.html, options, and packages files
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   897
MGMT_INDEX_FILE    = $(MGMT_DOCDIR)/index.html
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   898
MGMT_OPTIONS_FILE  = $(DOCSTMPDIR)/mgmt.options
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   899
MGMT_PACKAGES_FILE = $(DOCSTMPDIR)/mgmt.packages
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   900
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   901
mgmtdocs: $(MGMT_INDEX_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   902
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   903
# Set relative location to core api document root
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   904
$(MGMT_INDEX_FILE): GET2DOCSDIR=$(MGMT2COREAPI)/..
406
bde3a21bcab0 6690122: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents: 2
diff changeset
   905
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   906
# Run javadoc if the index file is out of date or missing
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   907
$(MGMT_INDEX_FILE): $(MGMT_OPTIONS_FILE) $(MGMT_PACKAGES_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   908
	$(prep-javadoc)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   909
	@if [ -f $(JVM_MIB_SRC) ] ; then 				\
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   910
	  $(ECHO) "$(CP) $(JVM_MIB_SRC) $(@D)/.."; 			\
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   911
	  $(CP) $(JVM_MIB_SRC) $(@D)/.. ; 				\
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   912
	else 								\
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   913
	  $(ECHO) "WARNING: File $(JVM_MIB_NAME) not available."; 	\
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   914
	fi
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   915
	$(call JavadocSummary,$(MGMT_OPTIONS_FILE),$(MGMT_PACKAGES_FILE))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   916
	$(JAVADOC_CMD) $(JAVADOC_VM_MEMORY_FLAGS) -d $(@D) \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   917
	  @$(MGMT_OPTIONS_FILE) @$(MGMT_PACKAGES_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   918
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   919
# Create file with javadoc options in it
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   920
$(MGMT_OPTIONS_FILE): $(MGMT_OVERVIEW)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   921
	$(prep-target)
8585
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   922
	@($(call OptionOnly,$(COMMON_JAVADOCFLAGS))			; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   923
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   924
	  $(call OptionPair,-encoding,ascii)				; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   925
	  $(call OptionOnly,-nodeprecatedlist)				; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   926
	  $(call OptionPair,-overview,$(MGMT_OVERVIEW))			; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   927
	  $(call OptionPair,-doctitle,$(MGMT_DOCTITLE))			; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   928
	  $(call OptionPair,-windowtitle,$(MGMT_WINDOWTITLE) $(DRAFT_WINTITLE)); \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   929
	  $(call OptionPair,-header,$(MGMT_HEADER)$(DRAFT_HEADER))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   930
	  $(call OptionPair,-bottom,$(MGMT_BOTTOM)$(DRAFT_BOTTOM))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   931
	  $(call OptionTrip,-linkoffline,$(MGMT2COREAPI),$(COREAPI_DOCSDIR)/); \
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   932
        ) >> $@
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   933
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   934
# Create a file with the package names in it
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   935
$(MGMT_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(MGMT_PKGS))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   936
	$(prep-target)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   937
	$(call PackageFilter,$(MGMT_PKGS))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   938
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   939
#############################################################
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   940
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   941
# attachdocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   942
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   943
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   944
ALL_OTHER_TARGETS += attachdocs
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   945
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   946
ATTACH_DOCDIR      := $(JDK_API_DOCSDIR)/attach/spec
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   947
ATTACH2COREAPI     := ../../$(JDKJRE2COREAPI)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   948
ATTACH_DOCTITLE    := Attach API
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   949
ATTACH_WINDOWTITLE := Attach API
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   950
ATTACH_HEADER      := <strong>Attach API</strong>
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   951
ATTACH_BOTTOM      := $(call CommonBottom,$(ATTACH_FIRST_COPYRIGHT_YEAR))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   952
# ATTACH_PKGS is located in NON_CORE_PKGS.gmk
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   953
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   954
ATTACH_INDEX_HTML    = $(ATTACH_DOCDIR)/index.html
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   955
ATTACH_OPTIONS_FILE  = $(DOCSTMPDIR)/attach.options
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   956
ATTACH_PACKAGES_FILE = $(DOCSTMPDIR)/attach.packages
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   957
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   958
attachdocs: $(ATTACH_INDEX_HTML)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   959
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   960
# Set relative location to core api document root
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   961
$(ATTACH_INDEX_HTML): GET2DOCSDIR=$(ATTACH2COREAPI)/..
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   962
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   963
# Run javadoc if the index file is out of date or missing
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   964
$(ATTACH_INDEX_HTML): $(ATTACH_OPTIONS_FILE) $(ATTACH_PACKAGES_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   965
	$(prep-javadoc)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   966
	$(call JavadocSummary,$(ATTACH_OPTIONS_FILE),$(ATTACH_PACKAGES_FILE))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   967
	$(JAVADOC_CMD) $(JAVADOC_VM_MEMORY_FLAGS) -d $(@D) \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   968
	  @$(ATTACH_OPTIONS_FILE) @$(ATTACH_PACKAGES_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   969
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   970
# Create file with javadoc options in it
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   971
$(ATTACH_OPTIONS_FILE):
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   972
	$(prep-target)
8585
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   973
	@($(call OptionOnly,$(COMMON_JAVADOCFLAGS))			; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   974
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   975
	  $(call OptionPair,-encoding,ascii)				; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   976
	  $(call OptionOnly,-nodeprecatedlist)				; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   977
	  $(call OptionPair,-doctitle,$(ATTACH_DOCTITLE))		; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   978
	  $(call OptionPair,-windowtitle,$(ATTACH_WINDOWTITLE) $(DRAFT_WINTITLE));\
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   979
	  $(call OptionPair,-header,$(ATTACH_HEADER)$(DRAFT_HEADER))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   980
	  $(call OptionPair,-bottom,$(ATTACH_BOTTOM)$(DRAFT_BOTTOM))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
   981
	  $(call OptionTrip,-linkoffline,$(ATTACH2COREAPI),$(COREAPI_DOCSDIR)/); \
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   982
        ) >> $@
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   983
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   984
# Create a file with the package names in it
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   985
$(ATTACH_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(ATTACH_PKGS))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   986
	$(prep-target)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   987
	$(call PackageFilter,$(ATTACH_PKGS))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   988
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   989
#############################################################
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   990
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   991
# jconsoledocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   992
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   993
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   994
ALL_OTHER_TARGETS += jconsoledocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   995
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   996
JCONSOLE_DOCDIR      := $(JDK_API_DOCSDIR)/jconsole/spec
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   997
JCONSOLE2COREAPI     := ../../$(JDKJRE2COREAPI)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   998
JCONSOLE_DOCTITLE    := JConsole API
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
   999
JCONSOLE_WINDOWTITLE := JConsole API
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1000
JCONSOLE_HEADER      := <strong>JConsole API</strong>
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1001
JCONSOLE_BOTTOM      := $(call CommonBottom,$(JCONSOLE_FIRST_COPYRIGHT_YEAR))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1002
# JCONSOLE_PKGS is located in NON_CORE_PKGS.gmk
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1003
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1004
JCONSOLE_INDEX_HTML    = $(JCONSOLE_DOCDIR)/index.html
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1005
JCONSOLE_OPTIONS_FILE  = $(DOCSTMPDIR)/jconsole.options
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1006
JCONSOLE_PACKAGES_FILE = $(DOCSTMPDIR)/jconsole.packages
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1007
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1008
jconsoledocs: $(JCONSOLE_INDEX_HTML)
2792
0d9dc3243c22 6837982: SCTP API docs not being generated.
chegar
parents: 2280
diff changeset
  1009
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1010
# Set relative location to core api document root
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1011
$(JCONSOLE_INDEX_HTML): GET2DOCSDIR=$(JCONSOLE2COREAPI)/..
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1012
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1013
# Run javadoc if the index file is out of date or missing
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1014
$(JCONSOLE_INDEX_HTML): $(JCONSOLE_OPTIONS_FILE) $(JCONSOLE_PACKAGES_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1015
	$(prep-javadoc)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1016
	$(call JavadocSummary,$(JCONSOLE_OPTIONS_FILE),$(JCONSOLE_PACKAGES_FILE))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1017
	$(JAVADOC_CMD) $(JAVADOC_VM_MEMORY_FLAGS) -d $(@D) \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1018
	  @$(JCONSOLE_OPTIONS_FILE) @$(JCONSOLE_PACKAGES_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1019
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1020
# Create file with javadoc options in it
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1021
$(JCONSOLE_OPTIONS_FILE):
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1022
	$(prep-target)
8585
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1023
	@($(call OptionOnly,$(COMMON_JAVADOCFLAGS))			; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1024
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1025
	  $(call OptionPair,-encoding,ascii)				; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1026
	  $(call OptionOnly,-nodeprecatedlist)				; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1027
	  $(call OptionPair,-doctitle,$(JCONSOLE_DOCTITLE))		; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1028
	  $(call OptionPair,-windowtitle,$(JCONSOLE_WINDOWTITLE) $(DRAFT_WINTITLE));\
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1029
	  $(call OptionPair,-header,$(JCONSOLE_HEADER)$(DRAFT_HEADER))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1030
	  $(call OptionPair,-bottom,$(JCONSOLE_BOTTOM)$(DRAFT_BOTTOM))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1031
	  $(call OptionTrip,-linkoffline,$(JCONSOLE2COREAPI),$(COREAPI_DOCSDIR)/); \
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1032
        ) >> $@
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1033
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1034
# Create a file with the package names in it
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1035
$(JCONSOLE_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(JCONSOLE_PKGS))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1036
	$(prep-target)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1037
	$(call PackageFilter,$(JCONSOLE_PKGS))
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1038
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1039
#############################################################
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1040
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1041
# treeapidocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1042
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1043
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1044
# Part of langtools
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1045
ifdef LANGTOOLS_DIST
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1046
  ALL_OTHER_TARGETS += treeapidocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1047
endif
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1048
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1049
TREEAPI_DOCDIR       := $(JDK_API_DOCSDIR)/javac/tree
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1050
TREEAPI2COREAPI      := ../../$(JDKJRE2COREAPI)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1051
TREEAPI_DOCTITLE     := Compiler Tree API
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1052
TREEAPI_WINDOWTITLE  := Compiler Tree API
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1053
TREEAPI_HEADER       := <strong>Compiler Tree API</strong>
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1054
TREEAPI_BOTTOM       := $(call CommonBottom,$(TREEAPI_FIRST_COPYRIGHT_YEAR))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1055
TREEAPI_GROUPNAME    := Packages
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1056
TREEAPI_REGEXP       := com.sun.source.*
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1057
# TREEAPI_PKGS is located in NON_CORE_PKGS.gmk
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1058
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1059
TREEAPI_INDEX_HTML    = $(TREEAPI_DOCDIR)/index.html
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1060
TREEAPI_OPTIONS_FILE  = $(DOCSTMPDIR)/treeapi.options
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1061
TREEAPI_PACKAGES_FILE = $(DOCSTMPDIR)/treeapi.packages
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1062
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1063
treeapidocs: $(TREEAPI_INDEX_HTML)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1064
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1065
# Set relative location to core api document root
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1066
$(TREEAPI_INDEX_HTML): GET2DOCSDIR=$(TREEAPI2COREAPI)/..
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1067
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1068
# Run javadoc if the index file is out of date or missing
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1069
$(TREEAPI_INDEX_HTML): $(TREEAPI_OPTIONS_FILE) $(TREEAPI_PACKAGES_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1070
	$(prep-javadoc)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1071
	$(call JavadocSummary,$(TREEAPI_OPTIONS_FILE),$(TREEAPI_PACKAGES_FILE))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1072
	$(JAVADOC_CMD) $(JAVADOC_VM_MEMORY_FLAGS) -d $(@D) \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1073
	  @$(TREEAPI_OPTIONS_FILE) @$(TREEAPI_PACKAGES_FILE)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1074
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1075
# Create file with javadoc options in it
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1076
$(TREEAPI_OPTIONS_FILE):
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1077
	$(prep-target)
8585
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1078
	@($(call OptionOnly,$(COMMON_JAVADOCFLAGS))			; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1079
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1080
	  $(call OptionPair,-encoding,ascii)				; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1081
	  $(call OptionPair,-doctitle,$(TREEAPI_DOCTITLE))		; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1082
	  $(call OptionPair,-windowtitle,$(TREEAPI_WINDOWTITLE) $(DRAFT_WINTITLE));\
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1083
	  $(call OptionPair,-header,$(TREEAPI_HEADER)$(DRAFT_HEADER))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1084
	  $(call OptionPair,-bottom,$(TREEAPI_BOTTOM)$(DRAFT_BOTTOM))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1085
	  $(call OptionTrip,-group,$(TREEAPI_GROUPNAME),$(TREEAPI_REGEXP)); \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1086
	  $(call OptionTrip,-linkoffline,$(TREEAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1087
        ) >> $@
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1088
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1089
# Create a file with the package names in it
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1090
$(TREEAPI_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(TREEAPI_PKGS))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1091
	$(prep-target)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1092
	$(call PackageFilter,$(TREEAPI_PKGS))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1093
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1094
#############################################################
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1095
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1096
# sctpdocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1097
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1098
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1099
ALL_OTHER_TARGETS += sctpdocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1100
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1101
SCTPAPI_DOCDIR      := $(JRE_API_DOCSDIR)/nio/sctp/spec
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1102
SCTPAPI2COREAPI     := ../../../$(JDKJRE2COREAPI)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1103
SCTPAPI_DOCTITLE    := SCTP API
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1104
SCTPAPI_WINDOWTITLE := SCTP API
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1105
SCTPAPI_HEADER      := <strong>SCTP API</strong>
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1106
SCTPAPI_BOTTOM      := $(call CommonBottom,$(SCTPAPI_FIRST_COPYRIGHT_YEAR))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1107
# SCTPAPI_PKGS is located in NON_CORE_PKGS.gmk
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1108
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1109
SCTPAPI_INDEX_HTML    = $(SCTPAPI_DOCDIR)/index.html
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1110
SCTPAPI_OPTIONS_FILE  = $(DOCSTMPDIR)/sctp.options
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1111
SCTPAPI_PACKAGES_FILE = $(DOCSTMPDIR)/sctp.packages
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1112
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1113
sctpdocs: $(SCTPAPI_INDEX_HTML)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1114
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1115
# Set relative location to core api document root
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1116
$(SCTSCTSCTP: GET2DOCSDIR=$(SCTPAPI2COREAPI)/..
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1117
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1118
# Run javadoc if the index file is out of date or missing
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1119
$(SCTPAPI_INDEX_HTML): $(SCTPAPI_OPTIONS_FILE) $(SCTPAPI_PACKAGES_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1120
	$(prep-javadoc)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1121
	$(call JavadocSummary,$(SCTPAPI_OPTIONS_FILE),$(SCTPAPI_PACKAGES_FILE))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1122
	$(JAVADOC_CMD) $(JAVADOC_VM_MEMORY_FLAGS) -d $(@D) \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1123
	  @$(SCTPAPI_OPTIONS_FILE) @$(SCTPAPI_PACKAGES_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1124
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1125
# Create file with javadoc options in it
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1126
$(SCTPAPI_OPTIONS_FILE):
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1127
	$(prep-target)
8585
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1128
	@($(call OptionOnly,$(COMMON_JAVADOCFLAGS))			; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1129
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1130
	  $(call OptionPair,-encoding,ascii)				; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1131
	  $(call OptionOnly,-nodeprecatedlist)				; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1132
	  $(call OptionPair,-doctitle,$(SCTPAPI_DOCTITLE))		; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1133
	  $(call OptionPair,-windowtitle,$(SCTPAPI_WINDOWTITLE) $(DRAFT_WINTITLE));\
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1134
	  $(call OptionPair,-header,$(SCTPAPI_HEADER)$(DRAFT_HEADER))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1135
	  $(call OptionPair,-bottom,$(SCTPAPI_BOTTOM)$(DRAFT_BOTTOM))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1136
	  $(call OptionTrip,-linkoffline,$(SCTPAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1137
        ) >> $@
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1138
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1139
# Create a file with the package names in it
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1140
$(SCTPAPI_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(SCTPAPI_PKGS))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1141
	$(prep-target)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1142
	$(call PackageFilter,$(SCTPAPI_PKGS))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1143
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1144
#############################################################
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1145
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1146
# tracingdocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1147
#
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1148
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1149
ALL_OTHER_TARGETS += tracingdocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1150
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1151
TRACING_DOCDIR      := $(JRE_API_DOCSDIR)/tracing
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1152
TRACING2COREAPI     := ../$(JDKJRE2COREAPI)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1153
TRACING_DOCTITLE    := Java$(TRADEMARK) Platform Tracing
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1154
TRACING_WINDOWTITLE := Platform Tracing
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1155
TRACING_HEADER      := <strong>Platform Tracing</strong>
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1156
TRACING_BOTTOM      := $(call CommonBottom,$(TRACING_FIRST_COPYRIGHT_YEAR))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1157
# TRACING_PKGS is located in NON_CORE_PKGS.gmk
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1158
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1159
TRACING_INDEX_HTML    = $(TRACING_DOCDIR)/index.html
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1160
TRACING_OPTIONS_FILE  = $(DOCSTMPDIR)/tracing.options
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1161
TRACING_PACKAGES_FILE = $(DOCSTMPDIR)/tracing.packages
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1162
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1163
tracingdocs: $(TRACING_INDEX_HTML)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1164
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1165
# Set relative location to core api document root
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1166
$(TRACING_INDEX_HTML): GET2DOCSDIR=$(TRACING2COREAPI)/..
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1167
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1168
# Run javadoc if the index file is out of date or missing
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1169
$(TRACING_INDEX_HTML): $(TRACING_OPTIONS_FILE) $(TRACING_PACKAGES_FILE)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1170
	$(prep-javadoc)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1171
	$(call JavadocSummary,$(TRACING_OPTIONS_FILE),$(TRACING_PACKAGES_FILE))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1172
	$(JAVADOC_CMD) $(JAVADOC_VM_MEMORY_FLAGS) -d $(@D) \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1173
	  @$(TRACING_OPTIONS_FILE) @$(TRACING_PACKAGES_FILE)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1174
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1175
# Create file with javadoc options in it
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1176
$(TRACING_OPTIONS_FILE):
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1177
	$(prep-target)
8585
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1178
	@($(call OptionOnly,$(COMMON_JAVADOCFLAGS))			; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1179
	  $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1180
	  $(call OptionPair,-encoding,ascii)				; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1181
	  $(call OptionOnly,-nodeprecatedlist)				; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1182
	  $(call OptionPair,-doctitle,$(TRACING_DOCTITLE))		; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1183
	  $(call OptionPair,-windowtitle,$(TRACING_WINDOWTITLE) $(DRAFT_WINTITLE));\
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1184
	  $(call OptionPair,-header,$(TRACING_HEADER)$(DRAFT_HEADER))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1185
	  $(call OptionPair,-bottom,$(TRACING_BOTTOM)$(DRAFT_BOTTOM))	; \
5877d80a67f6 7025412: make381 issues with quotes in jdk/make/docs/Makefile and other places
ohair
parents: 8452
diff changeset
  1186
	  $(call OptionTrip,-linkoffline,$(TRACING2COREAPI),$(COREAPI_DOCSDIR)/); \
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1187
        ) >> $@
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1188
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1189
# Create a file with the package names in it
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1190
$(TRACING_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(TRACING_PKGS))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1191
	$(prep-target)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1192
	$(call PackageFilter,$(TRACING_PKGS))
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1193
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1194
#############################################################
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1195
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1196
# Get a cache of all the directories
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1197
6078
a2ce0450136c 6971426: jdk/make/docs docs target does not work on windows
ohair
parents: 5961
diff changeset
  1198
$(DIRECTORY_CACHE): $(ALL_EXISTING_SOURCE_DIRS)
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1199
	$(prep-target)
6078
a2ce0450136c 6971426: jdk/make/docs docs target does not work on windows
ohair
parents: 5961
diff changeset
  1200
	@for cp in $(ALL_EXISTING_SOURCE_DIRS) ; do 	\
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1201
	  $(ECHO) "$(FIND) $${cp} -type f >> $@"; 	\
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1202
	  $(FIND) $${cp} -type f >> $@; 		\
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1203
	done
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1204
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1205
#############################################################
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1206
#release version of core packages ########
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1207
# Maximize performance and ensure that build number & milestone are set.
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1208
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1209
rel-coredocs: sanitycheckcoredocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1210
	$(MAKE) coredocs
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1211
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1212
rel-docs: rel-coredocs $(ALL_OTHER_TARGETS)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1213
#
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1214
# end of production targets
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1215
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1216
otherdocs: $(ALL_OTHER_TARGETS)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1217
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1218
clean:
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1219
	$(RM) -r $(DOCSDIR) $(DOCSTMPDIR)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1220
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1221
#############################################################
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1222
# DEBUG TARGET
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1223
# List the values defined in the makefile hierarchy, to make sure everything
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1224
# is set properly, and to help identify values we can use instead of making new ones.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1225
# (Most of them come from common/shared/Defs.gmk)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1226
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1227
#  Notes:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1228
#    * BUILD_NUMBER defaults to b00 if not set on command line with BUILD_NUMBER=<value>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1229
#    * MILESTONE defaults to internal unless set to beta, rc, or fcs on command line
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1230
#
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1231
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1232
echovalues:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1233
	@$(ECHO) ""
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1234
	@$(ECHO) --------------Imports---------------------------
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1235
	@$(ECHO) "IMPORT_PACKAGES = $(IMPORT_PACKAGES)"
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1236
	@$(ECHO) "IMPORT_PACKAGE_FILTER = $(IMPORT_PACKAGE_FILTER)"
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1237
	@$(ECHO) --------------Imports---------------------------
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1238
	@$(ECHO) ""
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1239
	@$(ECHO) --------------Shared---------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1240
	@$(ECHO) BUILD_NUMBER = $(BUILD_NUMBER)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1241
	@$(ECHO) FULL_VERSION = $(FULL_VERSION)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1242
	@$(ECHO) JDK_VERSION = $(JDK_VERSION)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1243
	@$(ECHO) JDK_MAJOR_VERSION = $(JDK_MAJOR_VERSION)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1244
	@$(ECHO) JDK_MINOR_VERSION = $(JDK_MINOR_VERSION)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1245
	@$(ECHO) JDK_MICRO_VERSION = $(JDK_MICRO_VERSION)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1246
	@$(ECHO) JDK_UPDATE_VERSION = $(JDK_UPDATE_VERSION)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1247
	@$(ECHO) JDK_MKTG_VERSION = $(JDK_MKTG_VERSION)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1248
	@$(ECHO) JDK_UNDERSCORE_VERSION = $(JDK_UNDERSCORE_VERSION)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1249
	@$(ECHO) JDK_MKTG_UNDERSCORE_VERSION = $(JDK_MKTG_UNDERSCORE_VERSION)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1250
	@$(ECHO) MARKETING_NUMBER = $(MARKETING_NUMBER)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1251
	@$(ECHO) MARKET_NAME = $(MARKET_NAME)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1252
	@$(ECHO) MILESTONE = $(MILESTONE)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1253
	@$(ECHO) RELEASE = $(RELEASE)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1254
	@$(ECHO) USER_RELEASE_SUFFIX = $(USER_RELEASE_SUFFIX)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1255
	@$(ECHO) --------------Shared---------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1256
	@$(ECHO) ""
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1257
	@$(ECHO) --------------common/Defs---------------------------
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1258
	@$(ECHO) "RELEASEDOCS_SOURCEPATH"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1259
	@$(ECHO) "   SHARE_SRC/classes: $(SHARE_SRC)/classes"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1260
	@$(ECHO) "   PLATFORM_SRC/classes: $(PLATFORM_SRC)/classes"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1261
	@$(ECHO) "   GENSRCDIR: $(GENSRCDIR)"
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1262
	@$(ECHO) "   SHARE_SRC/doc/stub: $(SHARE_SRC)/doc/stub"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1263
	@$(ECHO) "   IMPORTSRCDIR: $(IMPORTSRCDIR)"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1264
	@$(ECHO) --------------common/Defs---------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1265
	@$(ECHO) ""
5961
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1266
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1267
#############################################################
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1268
.PHONY: all docs coredocs rel-docs echovalues otherdocs rel-coredocs \
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1269
        sanitycheckcoredocs $(ALL_OTHER_TARGETS)
ab6481b9b57c 6931871: Rebranding of javadoc generation in makefiles
ohair
parents: 5506
diff changeset
  1270