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