ohair@478: # Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
ohair@478: # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
ohair@478: #
ohair@478: # This code is free software; you can redistribute it and/or modify it
ohair@478: # under the terms of the GNU General Public License version 2 only, as
ohair@478: # published by the Free Software Foundation. Oracle designates this
ohair@478: # particular file as subject to the "Classpath" exception as provided
ohair@478: # by Oracle in the LICENSE file that accompanied this code.
ohair@478: #
ohair@478: # This code is distributed in the hope that it will be useful, but WITHOUT
ohair@478: # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ohair@478: # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
ohair@478: # version 2 for more details (a copy is included in the LICENSE file that
ohair@478: # accompanied this code).
ohair@478: #
ohair@478: # You should have received a copy of the GNU General Public License version
ohair@478: # 2 along with this work; if not, write to the Free Software Foundation,
ohair@478: # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
ohair@478: #
ohair@478: # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@478: # or visit www.oracle.com if you need additional information or have any
ohair@478: # questions.
ohair@478: #
ohair@478:
ohair@478: include $(SPEC)
ohair@478: include MakeBase.gmk
ohair@478:
ohair@478: .SUFFIXES: # Delete the default suffixes
ohair@478: .SUFFIXES: .java
ohair@478:
ohair@478: #
ohair@478: # Definitions for $(DOCSDIR), $(MKDIR), $(BINDIR), etc.
ohair@478: #
ohair@478:
ohair@478: DOCSDIR=$(OUTPUT_ROOT)/docs
ohair@478: TEMPDIR=$(OUTPUT_ROOT)/docstemp
ohair@478:
ohair@478: JDK_SHARE_SRC=$(JDK_TOPDIR)/src/share
ohair@478: JDK_SHARE_CLASSES=$(JDK_SHARE_SRC)/classes
ohair@478:
ohair@478: JDK_IMPSRC = $(JDK_OUTPUTDIR)/impsrc
ohair@478:
ohair@478: JDK_GENSRC = $(JDK_OUTPUTDIR)/gensrc
ohair@478:
ohair@478: HOTSPOT_DOCS_IMPORT_PATH=$(HOTSPOT_OUTPUTDIR)/docs
ohair@478:
ohair@478: BUILD_NUMBER=$(JDK_BUILD_NUMBER)
ohair@478:
ohair@478: BOOT_JAVA_CMD=$(JAVA)
ohair@478:
ohair@478: JAVADOC_JAR = $(LANGTOOLS_DIST)/bootstrap/lib/javadoc.jar
ohair@478: JAVADOC_CMD = $(BOOT_JAVA_CMD) \
ohair@478: -Xmx1024m \
ohair@478: -Djava.awt.headless=true \
erikj@518: "-Xbootclasspath/p:$(JAVADOC_JAR)" \
erikj@518: -jar $(JAVADOC_JAR) -bootclasspath $(JDK_OUTPUTDIR)/classes
ohair@478:
ohair@478: # Copyright year for beginning of Java and some of the apis
ohair@478: # (Needed when creating the javadocs)
ohair@478: FIRST_COPYRIGHT_YEAR = 1993
ohair@478: DOMAPI_FIRST_COPYRIGHT_YEAR = 2005
ohair@478: MIRROR_FIRST_COPYRIGHT_YEAR = 2004
ohair@478: DOCLETAPI_FIRST_COPYRIGHT_YEAR = 1993
ohair@478: TAGLETAPI_FIRST_COPYRIGHT_YEAR = 1993
ohair@478: JDI_FIRST_COPYRIGHT_YEAR = 1999
ohair@478: JAAS_FIRST_COPYRIGHT_YEAR = 1998
ohair@478: JGSS_FIRST_COPYRIGHT_YEAR = 2000
ohair@478: SMARTCARDIO_FIRST_COPYRIGHT_YEAR = 2005
ohair@478: HTTPSERVER_FIRST_COPYRIGHT_YEAR = 2005
ohair@478: MGMT_FIRST_COPYRIGHT_YEAR = 2003
ohair@478: ATTACH_FIRST_COPYRIGHT_YEAR = 2005
ohair@478: JCONSOLE_FIRST_COPYRIGHT_YEAR = 2006
ohair@478: SCTPAPI_FIRST_COPYRIGHT_YEAR = 2009
ohair@478: TRACING_FIRST_COPYRIGHT_YEAR = 2008
ohair@478: TREEAPI_FIRST_COPYRIGHT_YEAR = 2005
ohair@478: JNLP_FIRST_COPYRIGHT_YEAR = 1998
ohair@478: PLUGIN2_FIRST_COPYRIGHT_YEAR = 2007
ohair@478:
ohair@478: # Oracle name
ohair@478: FULL_COMPANY_NAME = Oracle and/or its affiliates
ohair@478:
ohair@478: # Copyright address
ohair@478: COMPANY_ADDRESS = 500 Oracle Parkway
Redwood Shores, CA 94065 USA.
ohair@478:
ohair@478: # The trademark symbol
ohair@478: TRADEMARK = ™
ohair@478:
ohair@478: # Common copyright lines used
ohair@478: # The word "Copyright" might optionally be a link to the file cpyr.html.
ohair@478: # The first year of copyright may vary or not be available.
ohair@478: # The address to the company might be optional.
ohair@478: COMMA:= ,
ohair@478: EMPTY:=
ohair@478: SPACE:=$(EMPTY) $(EMPTY)
ohair@478: COPYRIGHT_SYMBOL = &\#x00a9;
ohair@478: # Macro to construct the copyright line
ohair@478: # (The GNU make 3.78.1 "if" conditional is broken, fixed in GNU make 3.81)
ohair@478: define CopyrightLine # optionalurl optionalfirstyear optionaladdress
ohair@478: $(if $(strip $1),Copyright,Copyright) \
ohair@478: $(COPYRIGHT_SYMBOL) $(if $2,$2${COMMA},) $(COPYRIGHT_YEAR),\
ohair@478: $(FULL_COMPANY_NAME). $3 All rights reserved.
ohair@478: endef
ohair@478:
ohair@478: # Url to root of documents
ohair@478: DOCSDIR_URL = {@docroot}/$(GET2DOCSDIR)
ohair@478:
ohair@478: # Url to copyright html file
ohair@478: COPYRIGHT_URL-7 = $(DOCSDIR_URL)/legal/cpyr.html
erikj@518: # This isn't added in old build yet.
erikj@518: #COPYRIGHT_URL-8 = $(DOCSDIR_URL)/legal/cpyr.html
ohair@478: COPYRIGHT_URL = $(COPYRIGHT_URL-$(JDK_MINOR_VERSION))
ohair@478:
ohair@478: # Url to bug filing site
ohair@478: BUG_SUBMIT_URL = http://bugreport.sun.com/bugreport/
ohair@478:
ohair@478: # Common line for how to submit a bug or rfe
ohair@478: BUG_SUBMIT_LINE = Submit a bug or feature
ohair@478:
ohair@478: # Url to devdocs page
ohair@478: # Was: http://java.sun.com/javase/6/webnotes/devdocs-vs-specs.html
ohair@478: DEV_DOCS_URL-7 = http://download.oracle.com/javase/7/docs/index.html
erikj@518: # This isn't added in old build yet.
erikj@518: #DEV_DOCS_URL-8 = http://download.oracle.com/javase/7/docs/index.html
ohair@478: DEV_DOCS_URL = $(DEV_DOCS_URL-$(JDK_MINOR_VERSION))
ohair@478: DOCS_BASE_URL = http://download.oracle.com/javase/7/docs
ohair@478:
ohair@478: # Common Java trademark line
ohair@478: JAVA_TRADEMARK_LINE = Java is a trademark or registered trademark of \
ohair@478: $(FULL_COMPANY_NAME) in the US and other countries.
ohair@478:
ohair@478: #################################################################
ohair@478: # Macros:
ohair@478:
ohair@478:
ohair@478: # List of all possible directories for javadoc to look for sources
ohair@478: # NOTE: Quotes are required around sourcepath argument only on Windows.
ohair@478: # Otherwise, you get "No packages or classes specified." due
erikj@558: # to $(PATH_SEP) being interpreted as an end of
ohair@478: # command (newline or shell ; character)
erikj@518: ALL_SOURCE_DIRS = $(JDK_SHARE_CLASSES) \
erikj@518: $(JDK_IMPSRC) \
ohair@478: $(JDK_GENSRC) \
erikj@518: $(JDK_OUTPUTDIR)/gendocsrc_rmic \
ohair@478: $(JDK_TOPDIR)/src/solaris/classes \
ohair@478: $(JDK_TOPDIR)/src/windows/classes \
ohair@478: $(JDK_SHARE_SRC)/doc/stub
ohair@478:
ohair@478: # List of directories that actually exist
ohair@478: ALL_EXISTING_SOURCE_DIRS := $(wildcard $(ALL_SOURCE_DIRS))
ohair@478:
ohair@478: # List with classpath separator between them
ohair@478: EMPTY:=
ohair@478: SPACE:= $(EMPTY) $(EMPTY)
ohair@478: RELEASEDOCS_SOURCEPATH = \
erikj@558: $(subst $(SPACE),$(PATH_SEP),$(strip $(ALL_SOURCE_DIRS)))
ohair@478:
ohair@478: define prep-target
ohair@478: $(MKDIR) -p $(@D)
ohair@478: $(RM) $@
ohair@478: endef
ohair@478:
ohair@478: # Prep for javadoc creation, assumes $@ is an index.html file
ohair@478: define prep-javadoc
ohair@478: @if [ -f "$@" -a "$?" != "" ] ; then \
ohair@478: $(ECHO) "# Dependencies have changed: $?"; \
ohair@478: fi
ohair@478: $(RM) -r $(@D)
ohair@478: $(MKDIR) -p $(@D)
ohair@478: endef
ohair@478:
ohair@478: # A cache of the directories in ALL_SOURCE_DIRS
ohair@478: DIRECTORY_CACHE = $(DOCSTMPDIR)/directory.cache
ohair@478:
ohair@478: # Given a list of packages, return a list of files or dirs to be dependent on
ohair@478: # (Currently only returning a list of directories)
ohair@478: define PackageDependencies # packages
ohair@478: $(shell \
ohair@478: if [ "$1" != "" -a -f $(DIRECTORY_CACHE) ] ; then \
ohair@478: for p in $1 ; do \
ohair@478: pd=`$(ECHO) $${p} | $(SED) -e 's@[.]@/@g'`; \
ohair@478: $(CAT) $(DIRECTORY_CACHE) | $(GREP) "/$${pd}/" ; \
ohair@478: done; \
ohair@478: fi \
ohair@478: )
ohair@478: endef
ohair@478:
ohair@478: # Given a list of packages, add packages that exist to $@, print summary
ohair@478: define PackageFilter # packages
ohair@478: @if [ "$1" != "" ] ; then \
ohair@478: for p in $1 ; do \
ohair@478: pd=`$(ECHO) $${p} | $(SED) -e 's@[.]@/@g'`; \
ohair@478: found="false"; \
ohair@478: for cp in $(ALL_SOURCE_DIRS) ; do \
ohair@478: if [ -d $${cp}/$${pd} ] ; then \
ohair@478: $(ECHO) "$${p}" >> $@; \
ohair@478: found="true"; \
ohair@478: break; \
ohair@478: fi; \
ohair@478: done; \
ohair@478: if [ "$${found}" = "false" ] ; then \
ohair@478: $(ECHO) "WARNING: Package not found: $${p}"; \
ohair@478: fi; \
ohair@478: done; \
ohair@478: fi
ohair@478: endef
ohair@478:
ohair@478: # Print out a summary of the javadoc command about to be run
ohair@478: define JavadocSummary # optionsfile packagesfile
ohair@478: @$(ECHO) "# Summary for $@";\
ohair@478: $(ECHO) "# Options (`$(BASENAME) $1`):"; $(SED) -e 's@^@# @' $1; \
ohair@478: $(ECHO) "# Packages (`$(BASENAME) $2`):";$(SED) -e 's@^@# @' $2
ohair@478: endef
ohair@478:
ohair@478: #
ohair@478: # Temporary directory for javadoc creation
ohair@478: #
ohair@478: DOCSTMPDIR = $(TEMPDIR)/doctmp
ohair@478:
ohair@478: #
ohair@478: # Different api directories created from root directory
ohair@478: #
ohair@478: COREAPI_DOCSDIR = $(DOCSDIR)/api
ohair@478: JDK_API_DOCSDIR = $(DOCSDIR)/jdk/api
ohair@478: JRE_API_DOCSDIR = $(DOCSDIR)/jre/api
ohair@478: PLATFORM_DOCSDIR = $(DOCSDIR)/platform
ohair@478:
ohair@478: # The non-core api javadocs need to be able to access the root of the core
ohair@478: # api directory, so for jdk/api or jre/api to get to the core api/
ohair@478: # directory we would use this:
ohair@478: JDKJRE2COREAPI = ../../api
ohair@478:
ohair@478: # Common bottom argument
ohair@478: define CommonBottom # year
ohair@478:
$(call CopyrightLine,,$1,)
ohair@478: endef
ohair@478:
ohair@478: # Common trademark bottom argument (Not sure why this is used sometimes)
ohair@478: define CommonTrademarkBottom # year
ohair@478: \
ohair@478: $(BUG_SUBMIT_LINE)
$(JAVA_TRADEMARK_LINE)
\
ohair@478: $(call CopyrightLine,,$1,$(COMPANY_ADDRESS))\
ohair@478:
ohair@478: endef
ohair@478:
ohair@478: # Common echo of option
ohair@478: define OptionOnly # opt
ohair@478: $(PRINTF) "%s\n" "$1"
ohair@478: endef
ohair@478: define OptionPair # opt arg
ohair@478: $(PRINTF) "%s '%s'\n" "$1" '$2'
ohair@478: endef
ohair@478: define OptionTrip # opt arg arg
ohair@478: $(PRINTF) "%s '%s' '%s'\n" "$1" '$2' '$3'
ohair@478: endef
ohair@478:
ohair@478: # Core api bottom argument (with special sauce)
ohair@478: COREAPI_BOTTOM = $(BUG_SUBMIT_LINE)\
ohair@478:
For further API reference and developer documentation, \
ohair@478: see Java SE Documentation. \
ohair@478: That documentation contains more detailed, developer-targeted descriptions, \
ohair@478: with conceptual overviews, definitions of terms, workarounds, \
ohair@478: and working code examples.
\
ohair@478: $(call CopyrightLine,$(COPYRIGHT_URL),$(FIRST_COPYRIGHT_YEAR),)\
ohair@478:
ohair@478:
ohair@478: # Common javadoc options used by all
ohair@478: COMMON_JAVADOCFLAGS = \
ohair@478: -XDignore.symbol.file=true \
ohair@478: -quiet \
ohair@478: -use \
ohair@478: -keywords \
ohair@478: $(ADDITIONAL_JAVADOCFLAGS)
ohair@478:
ohair@478: ifdef OPENJDK
ohair@478: ADDITIONAL_JAVADOCFLAGS = \
ohair@478: -Xdocrootparent $(DOCS_BASE_URL)
ohair@478: else
ohair@478: ADDITIONAL_JAVADOCFLAGS =
ohair@478: endif
ohair@478:
ohair@478: # Draft used for non-fcs documents
ohair@478: DRAFT_HEADER =
ohair@478: ifneq ($(MILESTONE), fcs)
ohair@478: DRAFT_HEADER =
DRAFT $(MILESTONE)-$(BUILD_NUMBER)
ohair@478: DRAFT_BOTTOM =
DRAFT $(MILESTONE)-$(BUILD_NUMBER)
ohair@478: DRAFT_WINTITLE = $(BUILD_NUMBER)
ohair@478: # Early access top text (not used in FCS releases)
ohair@478: COREAPI_TOP_EARLYACCESS = \
ohair@478:
\
ohair@478:
\
ohair@478: Please note that the specifications and other information \
ohair@478: contained herein are not final and are subject to change. \
ohair@478: The information is being made available to you solely for purpose of \
ohair@478: evaluation. \
ohair@478:
ohair@478: endif
ohair@478:
ohair@478: #################################################################
ohair@478:
ohair@478: #
ohair@478: # CORE_PKGS environment variable has been moved to the following file
ohair@478: #
ohair@478: include CORE_PKGS.gmk
ohair@478:
ohair@478: #
ohair@478: # Load environment variables for API package names that are not part of
ohair@478: # the Java SE platform
ohair@478: #
ohair@478: include NON_CORE_PKGS.gmk
ohair@478:
ohair@478: #################################################################
ohair@478:
ohair@478: #
ohair@478: # Default target is same as docs target, create core api and all others it can
ohair@478: #
ohair@478:
ohair@478: all: docs
ohair@478: docs: coredocs otherdocs
ohair@478:
ohair@478: #################################################################
ohair@478: # Production Targets -- USE THESE TARGETS WHEN:
ohair@478: # a) You're generating docs outside of release engineering's
ohair@478: # standard control build.
ohair@478: # b) The docs will be pushed to the web and/or included in
ohair@478: # the downloaded doc bundle.
ohair@478: #
ohair@478: # See: Notes.html#releaseTargets
ohair@478: # Note: Spaces precede ifdef/ifndef indents. Tabs precede target commands (!)
ohair@478: #
ohair@478:
ohair@478: sanitycheckcoredocs:
ohair@478: @$(ECHO) ""
ohair@478: @$(ECHO) "Building core api docs with these values:"
ohair@478: @$(ECHO) " BUILD_NUMBER = $(BUILD_NUMBER)"
ohair@478: @$(ECHO) " MILESTONE = $(MILESTONE)"
ohair@478: @$(ECHO) ""
ohair@478: ifeq ($(BUILD_NUMBER), b00)
ohair@478: @$(ECHO) "ERROR: Build number must be defined"
ohair@478: @$(ECHO) "MILESTONE is set to $(MILESTONE)"
ohair@478: @$(ECHO) ""
ohair@478: exit 1
ohair@478: endif
ohair@478:
ohair@478: #############################################################
ohair@478: #
ohair@478: # coredocs
ohair@478: #
ohair@478: COREAPI_DOCTITLE = Java$(TRADEMARK) Platform, Standard Edition \
ohair@478: $(JDK_MINOR_VERSION)
API Specification
ohair@478: COREAPI_WINDOWTITLE = Java Platform SE $(JDK_MINOR_VERSION)
ohair@478: COREAPI_HEADER = \
ohair@478: Java$(TRADEMARK) Platform
Standard Ed. $(JDK_MINOR_VERSION)
ohair@478:
ohair@478: # Java language specification cite
ohair@478: TAG_JLS = jls:a:See \
ohair@478: The Java™ Language Specification:
ohair@478:
ohair@478: # Overview file for core apis
ohair@478: COREAPI_OVERVIEW = $(JDK_SHARE_CLASSES)/overview-core.html
ohair@478:
ohair@478: # The index.html, options, and packages files
ohair@478: COREAPI_INDEX_FILE = $(COREAPI_DOCSDIR)/index.html
ohair@478: COREAPI_OPTIONS_FILE = $(DOCSTMPDIR)/coredocs.options
ohair@478: COREAPI_PACKAGES_FILE = $(DOCSTMPDIR)/coredocs.packages
ohair@478:
ohair@478: coredocs: $(COREAPI_INDEX_FILE)
ohair@478:
ohair@478: # Set relative location to core api document root
ohair@478: $(COREAPI_INDEX_FILE): GET2DOCSDIR=..
ohair@478:
ohair@478: # Run javadoc if the index file is out of date or missing
ohair@478: $(COREAPI_INDEX_FILE): $(COREAPI_OPTIONS_FILE) $(COREAPI_PACKAGES_FILE)
ohair@478: $(prep-javadoc)
ohair@478: $(call JavadocSummary,$(COREAPI_OPTIONS_FILE),$(COREAPI_PACKAGES_FILE))
ohair@478: $(JAVADOC_CMD) -d $(@D) \
ohair@478: @$(COREAPI_OPTIONS_FILE) @$(COREAPI_PACKAGES_FILE)
ohair@478:
ohair@478: # Create file with javadoc options in it
ohair@478: $(COREAPI_OPTIONS_FILE): $(COREAPI_OVERVIEW)
ohair@478: $(prep-target)
ohair@478: @($(call OptionOnly,$(COMMON_JAVADOCFLAGS)) ; \
ohair@478: $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \
ohair@478: $(call OptionPair,-encoding,ISO-8859-1) ; \
ohair@478: $(call OptionPair,-tag,beaninfo:X) ; \
ohair@478: $(call OptionPair,-tag,revised:X) ; \
ohair@478: $(call OptionPair,-tag,since.unbundled:X) ; \
ohair@478: $(call OptionPair,-tag,spec:X) ; \
ohair@478: $(call OptionPair,-tag,specdefault:X) ; \
ohair@478: $(call OptionPair,-tag,Note:X) ; \
ohair@478: $(call OptionPair,-tag,ToDo:X) ; \
ohair@478: $(call OptionPair,-tag,$(TAG_JLS)) ; \
ohair@478: $(call OptionOnly,-splitIndex) ; \
ohair@478: $(call OptionPair,-overview,$(COREAPI_OVERVIEW)) ; \
ohair@478: $(call OptionPair,-doctitle,$(COREAPI_DOCTITLE)) ; \
ohair@478: $(call OptionPair,-windowtitle,$(COREAPI_WINDOWTITLE) $(DRAFT_WINTITLE)) ;\
ohair@478: $(call OptionPair,-header,$(COREAPI_HEADER)$(DRAFT_HEADER)) ; \
ohair@478: $(call OptionPair,-bottom,$(COREAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
ohair@478: ) >> $@
ohair@478: ifdef COREAPI_TOP_EARLYACCESS
ohair@478: @$(call OptionPair,-top,$(COREAPI_TOP_EARLYACCESS)) >> $@
ohair@478: endif
ohair@478:
ohair@478: # Create a file with the package names in it
ohair@478: $(COREAPI_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(CORE_PKGS))
ohair@478: $(prep-target)
ohair@478: $(call PackageFilter,$(CORE_PKGS))
ohair@478:
ohair@478: #############################################################
ohair@478: #
ohair@478: # docletapidocs
ohair@478: #
ohair@478:
ohair@478: ALL_OTHER_TARGETS += docletapidocs
ohair@478:
ohair@478: DOCLETAPI_DOCDIR := $(JDK_API_DOCSDIR)/javadoc/doclet
ohair@478: DOCLETAPI2COREAPI := ../../$(JDKJRE2COREAPI)
ohair@478: DOCLETAPI_DOCTITLE := Doclet API
ohair@478: DOCLETAPI_WINDOWTITLE := Doclet API
ohair@478: DOCLETAPI_HEADER := Doclet API
ohair@478: DOCLETAPI_BOTTOM := $(call CommonTrademarkBottom,$(DOCLETAPI_FIRST_COPYRIGHT_YEAR))
ohair@478: DOCLETAPI_GROUPNAME := Packages
ohair@478: DOCLETAPI_REGEXP := com.sun.javadoc
ohair@478: # DOCLETAPI_PKGS is located in NON_CORE_PKGS.gmk
ohair@478:
ohair@478: # The index.html, options, and packages files
ohair@478: DOCLETAPI_INDEX_FILE = $(DOCLETAPI_DOCDIR)/index.html
ohair@478: DOCLETAPI_OPTIONS_FILE = $(DOCSTMPDIR)/docletapi.options
ohair@478: DOCLETAPI_PACKAGES_FILE = $(DOCSTMPDIR)/docletapi.packages
ohair@478:
ohair@478: docletapidocs: $(DOCLETAPI_INDEX_FILE)
ohair@478:
ohair@478: # Set relative location to core api document root
ohair@478: $(DOCLETAPI_INDEX_FILE): GET2DOCSDIR=$(DOCLETAPI2COREAPI)/..
ohair@478:
ohair@478: # Run javadoc if the index file is out of date or missing
erikj@518: $(DOCLETAPI_INDEX_FILE): $(DOCLETAPI_OPTIONS_FILE) $(DOCLETAPI_PACKAGES_FILE) coredocs
ohair@478: $(prep-javadoc)
ohair@478: $(call JavadocSummary,$(DOCLETAPI_OPTIONS_FILE),$(DOCLETAPI_PACKAGES_FILE))
ohair@478: $(JAVADOC_CMD) -d $(@D) \
ohair@478: @$(DOCLETAPI_OPTIONS_FILE) @$(DOCLETAPI_PACKAGES_FILE)
ohair@478:
ohair@478: # Create file with javadoc options in it
ohair@478: $(DOCLETAPI_OPTIONS_FILE):
ohair@478: $(prep-target)
ohair@478: @($(call OptionOnly,$(COMMON_JAVADOCFLAGS)) ; \
ohair@478: $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \
ohair@478: $(call OptionPair,-encoding,ascii) ; \
ohair@478: $(call OptionOnly,-breakiterator) ; \
ohair@478: $(call OptionPair,-doctitle,$(DOCLETAPI_DOCTITLE)) ; \
ohair@478: $(call OptionPair,-windowtitle,$(DOCLETAPI_WINDOWTITLE) $(DRAFT_WINTITLE));\
ohair@478: $(call OptionPair,-header,$(DOCLETAPI_HEADER)$(DRAFT_HEADER)) ; \
ohair@478: $(call OptionPair,-bottom,$(DOCLETAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
ohair@478: $(call OptionTrip,-group,$(DOCLETAPI_GROUPNAME),$(DOCLETAPI_REGEXP)); \
ohair@478: $(call OptionTrip,-linkoffline,$(DOCLETAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
ohair@478: ) >> $@
ohair@478:
ohair@478: # Create a file with the package names in it
ohair@478: $(DOCLETAPI_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(DOCLETAPI_PKGS))
ohair@478: $(prep-target)
ohair@478: $(call PackageFilter,$(DOCLETAPI_PKGS))
ohair@478:
ohair@478: #############################################################
ohair@478: #
ohair@478: # tagletapidocs
ohair@478: #
ohair@478:
ohair@478: ALL_OTHER_TARGETS += tagletapidocs
ohair@478: TAGLETAPI_DOCDIR := $(JDK_API_DOCSDIR)/javadoc/taglet
ohair@478: TAGLETAPI2COREAPI := ../../$(JDKJRE2COREAPI)
ohair@478: TAGLETAPI_BOTTOM := $(call CommonTrademarkBottom,$(TAGLETAPI_FIRST_COPYRIGHT_YEAR))
ohair@478: # TAGLETAPI_FILE is located in NON_CORE_PKGS.gmk
ohair@478:
ohair@478: # Temporary directory (special generation rules)
ohair@478: TAGLETAPI_TEMPDIR = $(DOCSTMPDIR)/taglets_temp
ohair@478:
ohair@478: # The index.html, options, and packages files
erikj@518: TAGLETAPI_INDEX_FILE = $(TAGLETAPI_DOCDIR)/index.html
ohair@478: TAGLETAPI_OPTIONS_FILE = $(DOCSTMPDIR)/tagletapi.options
ohair@478: TAGLETAPI_PACKAGES_FILE = $(DOCSTMPDIR)/tagletapi.packages
ohair@478:
ohair@478: tagletapidocs: $(TAGLETAPI_INDEX_FILE)
ohair@478:
ohair@478: # Set relative location to core api document root
ohair@478: $(TAGLETAPI_INDEX_FILE): GET2DOCSDIR=$(TAGLETAPI2COREAPI)/..
ohair@478:
ohair@478: # Run javadoc if the index file is out of date or missing
erikj@518: $(TAGLETAPI_INDEX_FILE): $(TAGLETAPI_OPTIONS_FILE) $(TAGLETAPI_PACKAGES_FILE) coredocs
ohair@478: $(prep-javadoc)
ohair@478: $(RM) -r $(TAGLETAPI_TEMPDIR)
ohair@478: $(MKDIR) -p $(TAGLETAPI_TEMPDIR)
ohair@478: $(call JavadocSummary,$(TAGLETAPI_OPTIONS_FILE),$(TAGLETAPI_PACKAGES_FILE))
ohair@478: $(JAVADOC_CMD) -d $(TAGLETAPI_TEMPDIR) \
ohair@478: @$(TAGLETAPI_OPTIONS_FILE) @$(TAGLETAPI_PACKAGES_FILE)
ohair@478: cp -r $(TAGLETAPI_TEMPDIR)/com $(@D)
ohair@478: cp $(TAGLETAPI_TEMPDIR)/stylesheet.css $(@D)
ohair@478: $(RM) -r $(TAGLETAPI_TEMPDIR)
ohair@478:
ohair@478: # Create file with javadoc options in it
ohair@478: $(TAGLETAPI_OPTIONS_FILE):
ohair@478: $(prep-target)
ohair@478: @($(call OptionOnly,$(COMMON_JAVADOCFLAGS)) ; \
ohair@478: $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \
ohair@478: $(call OptionPair,-encoding,ascii) ; \
ohair@478: $(call OptionOnly,-nonavbar) ; \
ohair@478: $(call OptionOnly,-noindex) ; \
ohair@478: $(call OptionPair,-bottom,$(TAGLETAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
ohair@478: $(call OptionTrip,-linkoffline,$(TAGLETAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
ohair@478: ) >> $@
ohair@478:
ohair@478: # Create a file with the package names in it
ohair@478: $(TAGLETAPI_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(TAGLETAPI_PKGS))
ohair@478: $(prep-target)
erikj@518: @($(ECHO) "$(JDK_IMPSRC)/$(TAGLETAPI_FILE)" ) > $@
ohair@478:
ohair@478: #############################################################
ohair@478: #
ohair@478: # domapidocs
ohair@478: #
ohair@478:
ohair@478: ALL_OTHER_TARGETS += domapidocs
ohair@478:
ohair@478: DOMAPI_DOCDIR := $(JRE_API_DOCSDIR)/plugin/dom
ohair@478: DOMAPI2COREAPI := ../../$(JDKJRE2COREAPI)
ohair@478: DOMAPI_DOCTITLE := Common DOM API
ohair@478: DOMAPI_WINDOWTITLE := Common DOM API
ohair@478: DOMAPI_HEADER := Common DOM API
ohair@478: DOMAPI_BOTTOM := $(call CommonTrademarkBottom,$(DOMAPI_FIRST_COPYRIGHT_YEAR))
ohair@478: DOMAPI_GROUPNAME := Packages
ohair@478: DOMAPI_REGEXP := com.sun.java.browser.dom:org.w3c.dom*
ohair@478: # DOMAPI_PKGS is located in NON_CORE_PKGS.gmk
ohair@478:
ohair@478: # The index.html, options, and packages files
ohair@478: DOMAPI_INDEX_FILE = $(DOMAPI_DOCDIR)/index.html
ohair@478: DOMAPI_OPTIONS_FILE = $(DOCSTMPDIR)/domapi.options
ohair@478: DOMAPI_PACKAGES_FILE = $(DOCSTMPDIR)/domapi.packages
ohair@478:
ohair@478: domapidocs: $(DOMAPI_INDEX_FILE)
ohair@478:
ohair@478: # Set relative location to core api document root
ohair@478: $(DOMAPI_INDEX_FILE): GET2DOCSDIR=$(DOMAPI2COREAPI)/..
ohair@478:
ohair@478: # Run javadoc if the index file is out of date or missing
erikj@518: $(DOMAPI_INDEX_FILE): $(DOMAPI_OPTIONS_FILE) $(DOMAPI_PACKAGES_FILE) coredocs
ohair@478: $(prep-javadoc)
ohair@478: $(call JavadocSummary,$(DOMAPI_OPTIONS_FILE),$(DOMAPI_PACKAGES_FILE))
ohair@478: $(JAVADOC_CMD) -d $(@D) \
ohair@478: @$(DOMAPI_OPTIONS_FILE) @$(DOMAPI_PACKAGES_FILE)
ohair@478:
ohair@478: # Create file with javadoc options in it
ohair@478: $(DOMAPI_OPTIONS_FILE):
ohair@478: $(prep-target)
ohair@478: @($(call OptionOnly,$(COMMON_JAVADOCFLAGS)) ; \
ohair@478: $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \
ohair@478: $(call OptionPair,-encoding,ascii) ; \
ohair@478: $(call OptionOnly,-splitIndex) ; \
ohair@478: $(call OptionPair,-doctitle,$(DOMAPI_DOCTITLE)) ; \
ohair@478: $(call OptionPair,-windowtitle,$(DOMAPI_WINDOWTITLE) $(DRAFT_WINTITLE));\
ohair@478: $(call OptionPair,-header,$(DOMAPI_HEADER)$(DRAFT_HEADER)) ; \
ohair@478: $(call OptionPair,-bottom,$(DOMAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
ohair@478: $(call OptionTrip,-group,$(DOMAPI_GROUPNAME),$(DOMAPI_REGEXP)); \
ohair@478: $(call OptionTrip,-linkoffline,$(DOMAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
ohair@478: ) >> $@
ohair@478:
ohair@478: # Create a file with the package names in it
ohair@478: $(DOMAPI_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(DOMAPI_PKGS))
ohair@478: $(prep-target)
ohair@478: $(call PackageFilter,$(DOMAPI_PKGS))
ohair@478:
ohair@478: #############################################################
ohair@478: #
ohair@478: # jpdadocs
ohair@478: #
ohair@478:
ohair@478: ALL_OTHER_TARGETS += jpdadocs
ohair@478:
ohair@478: jpdadocs: jdidocs jdwpdocs jvmtidocs
ohair@478:
ohair@478: #############################################################
ohair@478: #
ohair@478: # jdidocs
ohair@478: #
ohair@478:
ohair@478: ALL_OTHER_TARGETS += jdidocs
ohair@478:
ohair@478: JDI_DOCDIR := $(JDK_API_DOCSDIR)/jpda/jdi
ohair@478: JDI2COREAPI := ../../$(JDKJRE2COREAPI)
ohair@478: JDI_DOCTITLE := Java$(TRADEMARK) Debug Interface
ohair@478: JDI_WINDOWTITLE := Java Debug Interface
ohair@478: JDI_HEADER := Java Debug Interface
ohair@478: JDI_BOTTOM := $(call CommonBottom,$(JDI_FIRST_COPYRIGHT_YEAR))
ohair@478: JDI_OVERVIEW := $(JDK_SHARE_CLASSES)/jdi-overview.html
ohair@478: # JDI_PKGS is located in NON_CORE_PKGS.gmk
ohair@478:
ohair@478: # The index.html, options, and packages files
ohair@478: JDI_INDEX_FILE = $(JDI_DOCDIR)/index.html
ohair@478: JDI_OPTIONS_FILE = $(DOCSTMPDIR)/jdi.options
ohair@478: JDI_PACKAGES_FILE = $(DOCSTMPDIR)/jdi.packages
ohair@478:
ohair@478: jdidocs: $(JDI_INDEX_FILE)
ohair@478:
ohair@478: # Set relative location to core api document root
ohair@478: $(JDI_INDEX_FILE): GET2DOCSDIR=$(JDI2COREAPI)/..
ohair@478:
ohair@478: # Run javadoc if the index file is out of date or missing
erikj@518: $(JDI_INDEX_FILE): $(JDI_OPTIONS_FILE) $(JDI_PACKAGES_FILE) coredocs
ohair@478: $(prep-javadoc)
ohair@478: $(call JavadocSummary,$(JDI_OPTIONS_FILE),$(JDI_PACKAGES_FILE))
ohair@478: $(JAVADOC_CMD) -d $(@D) \
ohair@478: @$(JDI_OPTIONS_FILE) @$(JDI_PACKAGES_FILE)
ohair@478:
ohair@478: # Create file with javadoc options in it
ohair@478: $(JDI_OPTIONS_FILE): $(JDI_OVERVIEW)
ohair@478: $(prep-target)
ohair@478: @($(call OptionOnly,$(COMMON_JAVADOCFLAGS)) ; \
ohair@478: $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \
ohair@478: $(call OptionPair,-encoding,ascii) ; \
ohair@478: $(call OptionPair,-overview,$(JDI_OVERVIEW)) ; \
ohair@478: $(call OptionPair,-doctitle,$(JDI_DOCTITLE)) ; \
ohair@478: $(call OptionPair,-windowtitle,$(JDI_WINDOWTITLE) $(DRAFT_WINTITLE)); \
ohair@478: $(call OptionPair,-header,$(JDI_HEADER)$(DRAFT_HEADER)) ; \
ohair@478: $(call OptionPair,-bottom,$(JDI_BOTTOM)$(DRAFT_BOTTOM)) ; \
ohair@478: $(call OptionTrip,-linkoffline,$(JDI2COREAPI),$(COREAPI_DOCSDIR)/); \
ohair@478: ) >> $@
ohair@478:
ohair@478: # Create a file with the package names in it
ohair@478: $(JDI_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(JDI_PKGS))
ohair@478: $(prep-target)
ohair@478: $(call PackageFilter,$(JDI_PKGS))
ohair@478:
ohair@478: #############################################################
ohair@478: #
ohair@478: # jdwpdocs
ohair@478: #
ohair@478:
ohair@478: ALL_OTHER_TARGETS += jdwpdocs
ohair@478:
ohair@478: JDWP_DOCDIR = $(PLATFORM_DOCSDIR)/jpda/jdwp
ohair@478:
ohair@478: jdwpdocs: $(JDWP_DOCDIR)/jdwp-protocol.html
ohair@478: $(JDWP_DOCDIR)/jdwp-protocol.html : $(JDK_OUTPUTDIR)/gensrc_jdwp_doc/jdwp-protocol.html
ohair@478: $(MKDIR) -p $(@D)
ohair@478: $(RM) $@
ohair@478: $(CP) $< $@
ohair@478:
ohair@478: #############################################################
ohair@478: #
ohair@478: # jvmtidocs
ohair@478: #
ohair@478:
ohair@478: ALL_OTHER_TARGETS += jvmtidocs
ohair@478:
ohair@478: JVMTI_DOCDIR = $(PLATFORM_DOCSDIR)/jvmti
ohair@478: JVMTI_HTML = $(HOTSPOT_DIST)/docs/platform/jvmti/jvmti.html
ohair@478:
ohair@478: jvmtidocs: $(JVMTI_DOCDIR)/jvmti.html
ohair@478: $(JVMTI_DOCDIR)/jvmti.html:
ohair@478: @$(prep-javadoc)
ohair@478: @if [ -f $(JVMTI_HTML) ] ; then \
ohair@478: $(ECHO) "$(CP) $(JVMTI_HTML) $@"; \
ohair@478: $(CP) $(JVMTI_HTML) $@; \
ohair@478: else \
ohair@478: $(ECHO) "WARNING: Generated file does not exist: $(JVMTI_HTML)"; \
ohair@478: fi
ohair@478:
ohair@478: #############################################################
ohair@478: #
ohair@478: # jaasdocs
ohair@478: #
ohair@478:
ohair@478: ALL_OTHER_TARGETS += jaasdocs
ohair@478:
ohair@478: JAAS_DOCDIR := $(JRE_API_DOCSDIR)/security/jaas/spec
ohair@478: JAAS2COREAPI := ../../../$(JDKJRE2COREAPI)
ohair@478: JAAS_DOCTITLE := Java$(TRADEMARK) Authentication and Authorization Service
ohair@478: JAAS_WINDOWTITLE := Java Authentication and Authorization Service
ohair@478: JAAS_HEADER := Java Authentication and Authorization Service
ohair@478: JAAS_BOTTOM := $(call CommonBottom,$(JAAS_FIRST_COPYRIGHT_YEAR))
ohair@478: # JAAS_PKGS is located in NON_CORE_PKGS.gmk
ohair@478: JAAS_OVERVIEW := $(JDK_SHARE_CLASSES)/com/sun/security/auth/jaas-overview.html
ohair@478:
ohair@478: # The index.html, options, and packages files
ohair@478: JAAS_INDEX_FILE = $(JAAS_DOCDIR)/index.html
ohair@478: JAAS_OPTIONS_FILE = $(DOCSTMPDIR)/jaas.options
ohair@478: JAAS_PACKAGES_FILE = $(DOCSTMPDIR)/jaas.packages
ohair@478:
ohair@478: jaasdocs: $(JAAS_INDEX_FILE)
ohair@478:
ohair@478: # Set relative location to core api document root
ohair@478: $(JAAS_INDEX_FILE): GET2DOCSDIR=$(JAAS2COREAPI)/..
ohair@478:
ohair@478: # Run javadoc if the index file is out of date or missing
erikj@518: $(JAAS_INDEX_FILE): $(JAAS_OPTIONS_FILE) $(JAAS_PACKAGES_FILE) coredocs
ohair@478: $(prep-javadoc)
ohair@478: $(call JavadocSummary,$(JAAS_OPTIONS_FILE),$(JAAS_PACKAGES_FILE))
ohair@478: $(JAVADOC_CMD) -d $(@D) \
ohair@478: @$(JAAS_OPTIONS_FILE) @$(JAAS_PACKAGES_FILE)
ohair@478:
ohair@478: # Create file with javadoc options in it
ohair@478: $(JAAS_OPTIONS_FILE): $(JAAS_OVERVIEW)
ohair@478: $(prep-target)
ohair@478: @($(call OptionOnly,$(COMMON_JAVADOCFLAGS)) ; \
ohair@478: $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \
ohair@478: $(call OptionPair,-encoding,ascii) ; \
ohair@478: $(call OptionPair,-overview,$(JAAS_OVERVIEW)) ; \
ohair@478: $(call OptionPair,-doctitle,$(JAAS_DOCTITLE)) ; \
ohair@478: $(call OptionPair,-windowtitle,$(JAAS_WINDOWTITLE) $(DRAFT_WINTITLE)); \
ohair@478: $(call OptionPair,-header,$(JAAS_HEADER)$(DRAFT_HEADER)) ; \
ohair@478: $(call OptionPair,-bottom,$(JAAS_BOTTOM)$(DRAFT_BOTTOM)) ; \
ohair@478: $(call OptionTrip,-linkoffline,$(JAAS2COREAPI),$(COREAPI_DOCSDIR)/); \
ohair@478: ) >> $@
ohair@478:
ohair@478: # Create a file with the package names in it
ohair@478: $(JAAS_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(JAAS_PKGS))
ohair@478: $(prep-target)
ohair@478: $(call PackageFilter,$(JAAS_PKGS))
ohair@478:
ohair@478: #############################################################
ohair@478: #
ohair@478: # jgssdocs
ohair@478: #
ohair@478:
ohair@478: ALL_OTHER_TARGETS += jgssdocs
ohair@478:
ohair@478: JGSS_DOCDIR := $(JRE_API_DOCSDIR)/security/jgss/spec
ohair@478: JGSS2COREAPI := ../../../$(JDKJRE2COREAPI)
ohair@478: JGSS_DOCTITLE := Java$(TRADEMARK) GSS-API Utilities
ohair@478: JGSS_WINDOWTITLE := Java GSS-API Utilities
ohair@478: JGSS_HEADER := Java GSS-API Utilities
ohair@478: JGSS_BOTTOM := $(call CommonBottom,$(JGSS_FIRST_COPYRIGHT_YEAR))
ohair@478: JGSS_OVERVIEW := $(JDK_SHARE_CLASSES)/com/sun/security/jgss/jgss-overview.html
ohair@478: # JGSS_PKGS is located in NON_CORE_PKGS.gmk
ohair@478:
ohair@478: # The index.html, options, and packages files
ohair@478: JGSS_INDEX_FILE = $(JGSS_DOCDIR)/index.html
ohair@478: JGSS_OPTIONS_FILE = $(DOCSTMPDIR)/jgss.options
ohair@478: JGSS_PACKAGES_FILE = $(DOCSTMPDIR)/jgss.packages
ohair@478:
ohair@478: jgssdocs: $(JGSS_INDEX_FILE)
ohair@478:
ohair@478: # Set relative location to core api document root
ohair@478: $(JGSS_INDEX_FILE): GET2DOCSDIR=$(JGSS2COREAPI)/..
ohair@478:
ohair@478: # Run javadoc if the index file is out of date or missing
erikj@518: $(JGSS_INDEX_FILE): $(JGSS_OPTIONS_FILE) $(JGSS_PACKAGES_FILE) coredocs
ohair@478: $(prep-javadoc)
ohair@478: $(call JavadocSummary,$(JGSS_OPTIONS_FILE),$(JGSS_PACKAGES_FILE))
ohair@478: $(JAVADOC_CMD) -d $(@D) \
ohair@478: @$(JGSS_OPTIONS_FILE) @$(JGSS_PACKAGES_FILE)
ohair@478:
ohair@478: # Create file with javadoc options in it
ohair@478: $(JGSS_OPTIONS_FILE): $(JGSS_OVERVIEW)
ohair@478: $(prep-target)
ohair@478: @($(call OptionOnly,$(COMMON_JAVADOCFLAGS)) ; \
ohair@478: $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \
ohair@478: $(call OptionPair,-encoding,ascii) ; \
ohair@478: $(call OptionOnly,-nodeprecatedlist) ; \
ohair@478: $(call OptionPair,-overview,$(JGSS_OVERVIEW)) ; \
ohair@478: $(call OptionPair,-doctitle,$(JGSS_DOCTITLE)) ; \
ohair@478: $(call OptionPair,-windowtitle,$(JGSS_WINDOWTITLE) $(DRAFT_WINTITLE)); \
ohair@478: $(call OptionPair,-header,$(JGSS_HEADER)$(DRAFT_HEADER)) ; \
ohair@478: $(call OptionPair,-bottom,$(JGSS_BOTTOM)$(DRAFT_BOTTOM)) ; \
ohair@478: $(call OptionTrip,-linkoffline,$(JGSS2COREAPI),$(COREAPI_DOCSDIR)/); \
ohair@478: ) >> $@
ohair@478:
ohair@478: # Create a file with the package names in it
ohair@478: $(JGSS_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(JGSS_PKGS))
ohair@478: $(prep-target)
ohair@478: $(call PackageFilter,$(JGSS_PKGS))
ohair@478:
ohair@478: #############################################################
ohair@478: #
ohair@478: # smartcardiodocs
ohair@478: #
ohair@478:
ohair@478: ALL_OTHER_TARGETS += smartcardiodocs
ohair@478:
ohair@478: SMARTCARDIO_DOCDIR := $(JRE_API_DOCSDIR)/security/smartcardio/spec
ohair@478: SMARTCARDIO2COREAPI := ../../../$(JDKJRE2COREAPI)
ohair@478: SMARTCARDIO_DOCTITLE := Java$(TRADEMARK) Smart Card I/O
ohair@478: SMARTCARDIO_WINDOWTITLE := Java Smart Card I/O
ohair@478: SMARTCARDIO_HEADER := Java Smart Card I/O
ohair@478: SMARTCARDIO_BOTTOM := $(call CommonBottom,$(SMARTCARDIO_FIRST_COPYRIGHT_YEAR))
ohair@478: # SMARTCARDIO_PKGS is located in NON_CORE_PKGS.gmk
ohair@478:
ohair@478: # The index.html, options, and packages files
ohair@478: SMARTCARDIO_INDEX_FILE = $(SMARTCARDIO_DOCDIR)/index.html
ohair@478: SMARTCARDIO_OPTIONS_FILE = $(DOCSTMPDIR)/smartcardio.options
ohair@478: SMARTCARDIO_PACKAGES_FILE = $(DOCSTMPDIR)/smartcardio.packages
ohair@478:
ohair@478: smartcardiodocs: $(SMARTCARDIO_INDEX_FILE)
ohair@478:
ohair@478: # Set relative location to core api document root
ohair@478: $(SMARTCARDIO_INDEX_FILE): GET2DOCSDIR=$(SMARTCARDIO2COREAPI)/..
ohair@478:
ohair@478: # Run javadoc if the index file is out of date or missing
erikj@518: $(SMARTCARDIO_INDEX_FILE): $(SMARTCARDIO_OPTIONS_FILE) $(SMARTCARDIO_PACKAGES_FILE) coredocs
ohair@478: $(prep-javadoc)
ohair@478: $(call JavadocSummary,$(SMARTCARDIO_OPTIONS_FILE),$(SMARTCARDIO_PACKAGES_FILE))
ohair@478: $(JAVADOC_CMD) -d $(@D) \
ohair@478: @$(SMARTCARDIO_OPTIONS_FILE) @$(SMARTCARDIO_PACKAGES_FILE)
ohair@478:
ohair@478: # Create file with javadoc options in it
ohair@478: $(SMARTCARDIO_OPTIONS_FILE):
ohair@478: $(prep-target)
ohair@478: @($(call OptionOnly,$(COMMON_JAVADOCFLAGS)) ; \
ohair@478: $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \
ohair@478: $(call OptionPair,-encoding,ascii) ; \
ohair@478: $(call OptionOnly,-nodeprecatedlist) ; \
ohair@478: $(call OptionPair,-doctitle,$(SMARTCARDIO_DOCTITLE)) ; \
ohair@478: $(call OptionPair,-windowtitle,$(SMARTCARDIO_WINDOWTITLE) $(DRAFT_WINTITLE));\
ohair@478: $(call OptionPair,-header,$(SMARTCARDIO_HEADER)$(DRAFT_HEADER)); \
ohair@478: $(call OptionPair,-bottom,$(SMARTCARDIO_BOTTOM)$(DRAFT_BOTTOM)); \
ohair@478: $(call OptionTrip,-linkoffline,$(SMARTCARDIO2COREAPI),$(COREAPI_DOCSDIR)/); \
ohair@478: ) >> $@
ohair@478:
ohair@478: # Create a file with the package names in it
ohair@478: $(SMARTCARDIO_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(SMARTCARDIO_PKGS))
ohair@478: $(prep-target)
ohair@478: $(call PackageFilter,$(SMARTCARDIO_PKGS))
ohair@478:
ohair@478: #############################################################
ohair@478: #
ohair@478: # httpserverdocs
ohair@478: #
ohair@478:
ohair@478: ALL_OTHER_TARGETS += httpserverdocs
ohair@478:
ohair@478: HTTPSERVER_DOCDIR := $(JRE_API_DOCSDIR)/net/httpserver/spec
ohair@478: HTTPSERVER2COREAPI := ../../../$(JDKJRE2COREAPI)
ohair@478: HTTPSERVER_DOCTITLE := Java$(TRADEMARK) HTTP Server
ohair@478: HTTPSERVER_WINDOWTITLE := Java HTTP Server
ohair@478: HTTPSERVER_HEADER := Java HTTP Server
ohair@478: HTTPSERVER_BOTTOM := $(call CommonBottom,$(HTTPSERVER_FIRST_COPYRIGHT_YEAR))
ohair@478: # HTTPSERVER_PKGS is located in NON_CORE_PKGS.gmk
ohair@478:
ohair@478: HTTPSERVER_INDEX_HTML = $(HTTPSERVER_DOCDIR)/index.html
ohair@478: HTTPSERVER_OPTIONS_FILE = $(DOCSTMPDIR)/httpserver.options
ohair@478: HTTPSERVER_PACKAGES_FILE = $(DOCSTMPDIR)/httpserver.packages
ohair@478:
ohair@478: httpserverdocs: $(HTTPSERVER_INDEX_HTML)
ohair@478:
ohair@478: # Set relative location to core api document root
ohair@478: $(HTTPSERVER_INDEX_HTML): GET2DOCSDIR=$(HTTPSERVER2COREAPI)/..
ohair@478:
ohair@478: # Run javadoc if the index file is out of date or missing
erikj@518: $(HTTPSERVER_INDEX_HTML): $(HTTPSERVER_OPTIONS_FILE) $(HTTPSERVER_PACKAGES_FILE) coredocs
ohair@478: $(prep-javadoc)
ohair@478: $(call JavadocSummary,$(HTTPSERVER_OPTIONS_FILE),$(HTTPSERVER_PACKAGES_FILE))
ohair@478: $(JAVADOC_CMD) -d $(@D) \
ohair@478: @$(HTTPSERVER_OPTIONS_FILE) @$(HTTPSERVER_PACKAGES_FILE)
ohair@478:
ohair@478: # Create file with javadoc options in it
ohair@478: $(HTTPSERVER_OPTIONS_FILE):
ohair@478: $(prep-target)
ohair@478: @($(call OptionOnly,$(COMMON_JAVADOCFLAGS)) ; \
ohair@478: $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \
ohair@478: $(call OptionPair,-encoding,ascii) ; \
ohair@478: $(call OptionOnly,-nodeprecatedlist) ; \
ohair@478: $(call OptionPair,-doctitle,$(HTTPSERVER_DOCTITLE)) ; \
ohair@478: $(call OptionPair,-windowtitle,$(HTTPSERVER_WINDOWTITLE) $(DRAFT_WINTITLE));\
ohair@478: $(call OptionPair,-header,$(HTTPSERVER_HEADER)$(DRAFT_HEADER)); \
ohair@478: $(call OptionPair,-bottom,$(HTTPSERVER_BOTTOM)$(DRAFT_BOTTOM)); \
ohair@478: $(call OptionTrip,-linkoffline,$(HTTPSERVER2COREAPI),$(COREAPI_DOCSDIR)/); \
ohair@478: ) >> $@
ohair@478:
ohair@478: # Create a file with the package names in it
ohair@478: $(HTTPSERVER_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(HTTPSERVER_PKGS))
ohair@478: $(prep-target)
ohair@478: $(call PackageFilter,$(HTTPSERVER_PKGS))
ohair@478:
ohair@478: #############################################################
ohair@478: #
ohair@478: # mgmtdocs
ohair@478: #
ohair@478:
ohair@478: ALL_OTHER_TARGETS += mgmtdocs
ohair@478:
ohair@478: MGMT_DOCDIR := $(JRE_API_DOCSDIR)/management/extension
ohair@478: MGMT2COREAPI := ../../$(JDKJRE2COREAPI)
ohair@478: JVM_MIB_NAME := JVM-MANAGEMENT-MIB.mib
erikj@518: JVM_MIB_SRC := $(JDK_TOPDIR)/src/closed/share/classes/sun/management/snmp/$(JVM_MIB_NAME)
ohair@478: MGMT_DOCTITLE := Monitoring and Management Interface for the Java$(TRADEMARK) Platform
ohair@478: MGMT_WINDOWTITLE := Monitoring and Management Interface for the Java Platform
ohair@478: MGMT_HEADER := Monitoring and Management Interface for the Java Platform
ohair@478: MGMT_BOTTOM := $(call CommonBottom,$(MGMT_FIRST_COPYRIGHT_YEAR))
ohair@478: MGMT_OVERVIEW := $(JDK_SHARE_CLASSES)/com/sun/management/mgmt-overview.html
ohair@478: # MGMT_PKGS is located in NON_CORE_PKGS.gmk
ohair@478:
ohair@478: # The index.html, options, and packages files
ohair@478: MGMT_INDEX_FILE = $(MGMT_DOCDIR)/index.html
ohair@478: MGMT_OPTIONS_FILE = $(DOCSTMPDIR)/mgmt.options
ohair@478: MGMT_PACKAGES_FILE = $(DOCSTMPDIR)/mgmt.packages
ohair@478:
ohair@478: mgmtdocs: $(MGMT_INDEX_FILE)
ohair@478:
ohair@478: # Set relative location to core api document root
ohair@478: $(MGMT_INDEX_FILE): GET2DOCSDIR=$(MGMT2COREAPI)/..
ohair@478:
ohair@478: # Run javadoc if the index file is out of date or missing
erikj@518: $(MGMT_INDEX_FILE): $(MGMT_OPTIONS_FILE) $(MGMT_PACKAGES_FILE) coredocs
ohair@478: $(prep-javadoc)
ohair@478: @if [ -f $(JVM_MIB_SRC) ] ; then \
ohair@478: $(ECHO) "$(CP) $(JVM_MIB_SRC) $(@D)/.."; \
ohair@478: $(CP) $(JVM_MIB_SRC) $(@D)/.. ; \
ohair@478: else \
ohair@478: $(ECHO) "WARNING: File $(JVM_MIB_NAME) not available."; \
ohair@478: fi
ohair@478: $(call JavadocSummary,$(MGMT_OPTIONS_FILE),$(MGMT_PACKAGES_FILE))
ohair@478: $(JAVADOC_CMD) -d $(@D) \
ohair@478: @$(MGMT_OPTIONS_FILE) @$(MGMT_PACKAGES_FILE)
ohair@478:
ohair@478: # Create file with javadoc options in it
ohair@478: $(MGMT_OPTIONS_FILE): $(MGMT_OVERVIEW)
ohair@478: $(prep-target)
ohair@478: @($(call OptionOnly,$(COMMON_JAVADOCFLAGS)) ; \
ohair@478: $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \
ohair@478: $(call OptionPair,-encoding,ascii) ; \
ohair@478: $(call OptionOnly,-nodeprecatedlist) ; \
ohair@478: $(call OptionPair,-overview,$(MGMT_OVERVIEW)) ; \
ohair@478: $(call OptionPair,-doctitle,$(MGMT_DOCTITLE)) ; \
ohair@478: $(call OptionPair,-windowtitle,$(MGMT_WINDOWTITLE) $(DRAFT_WINTITLE)); \
ohair@478: $(call OptionPair,-header,$(MGMT_HEADER)$(DRAFT_HEADER)) ; \
ohair@478: $(call OptionPair,-bottom,$(MGMT_BOTTOM)$(DRAFT_BOTTOM)) ; \
ohair@478: $(call OptionTrip,-linkoffline,$(MGMT2COREAPI),$(COREAPI_DOCSDIR)/); \
ohair@478: ) >> $@
ohair@478:
ohair@478: # Create a file with the package names in it
ohair@478: $(MGMT_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(MGMT_PKGS))
ohair@478: $(prep-target)
ohair@478: $(call PackageFilter,$(MGMT_PKGS))
ohair@478:
ohair@478: #############################################################
ohair@478: #
ohair@478: # attachdocs
ohair@478: #
ohair@478:
ohair@478: ALL_OTHER_TARGETS += attachdocs
ohair@478:
ohair@478: ATTACH_DOCDIR := $(JDK_API_DOCSDIR)/attach/spec
ohair@478: ATTACH2COREAPI := ../../$(JDKJRE2COREAPI)
ohair@478: ATTACH_DOCTITLE := Attach API
ohair@478: ATTACH_WINDOWTITLE := Attach API
ohair@478: ATTACH_HEADER := Attach API
ohair@478: ATTACH_BOTTOM := $(call CommonBottom,$(ATTACH_FIRST_COPYRIGHT_YEAR))
ohair@478: # ATTACH_PKGS is located in NON_CORE_PKGS.gmk
ohair@478:
ohair@478: ATTACH_INDEX_HTML = $(ATTACH_DOCDIR)/index.html
ohair@478: ATTACH_OPTIONS_FILE = $(DOCSTMPDIR)/attach.options
ohair@478: ATTACH_PACKAGES_FILE = $(DOCSTMPDIR)/attach.packages
ohair@478:
ohair@478: attachdocs: $(ATTACH_INDEX_HTML)
ohair@478:
ohair@478: # Set relative location to core api document root
ohair@478: $(ATTACH_INDEX_HTML): GET2DOCSDIR=$(ATTACH2COREAPI)/..
ohair@478:
ohair@478: # Run javadoc if the index file is out of date or missing
erikj@518: $(ATTACH_INDEX_HTML): $(ATTACH_OPTIONS_FILE) $(ATTACH_PACKAGES_FILE) coredocs
ohair@478: $(prep-javadoc)
ohair@478: $(call JavadocSummary,$(ATTACH_OPTIONS_FILE),$(ATTACH_PACKAGES_FILE))
ohair@478: $(JAVADOC_CMD) -d $(@D) \
ohair@478: @$(ATTACH_OPTIONS_FILE) @$(ATTACH_PACKAGES_FILE)
ohair@478:
ohair@478: # Create file with javadoc options in it
ohair@478: $(ATTACH_OPTIONS_FILE):
ohair@478: $(prep-target)
ohair@478: @($(call OptionOnly,$(COMMON_JAVADOCFLAGS)) ; \
ohair@478: $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \
ohair@478: $(call OptionPair,-encoding,ascii) ; \
ohair@478: $(call OptionOnly,-nodeprecatedlist) ; \
ohair@478: $(call OptionPair,-doctitle,$(ATTACH_DOCTITLE)) ; \
ohair@478: $(call OptionPair,-windowtitle,$(ATTACH_WINDOWTITLE) $(DRAFT_WINTITLE));\
ohair@478: $(call OptionPair,-header,$(ATTACH_HEADER)$(DRAFT_HEADER)) ; \
ohair@478: $(call OptionPair,-bottom,$(ATTACH_BOTTOM)$(DRAFT_BOTTOM)) ; \
ohair@478: $(call OptionTrip,-linkoffline,$(ATTACH2COREAPI),$(COREAPI_DOCSDIR)/); \
ohair@478: ) >> $@
ohair@478:
ohair@478: # Create a file with the package names in it
ohair@478: $(ATTACH_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(ATTACH_PKGS))
ohair@478: $(prep-target)
ohair@478: $(call PackageFilter,$(ATTACH_PKGS))
ohair@478:
ohair@478: #############################################################
ohair@478: #
ohair@478: # jconsoledocs
ohair@478: #
ohair@478:
ohair@478: ALL_OTHER_TARGETS += jconsoledocs
ohair@478:
ohair@478: JCONSOLE_DOCDIR := $(JDK_API_DOCSDIR)/jconsole/spec
ohair@478: JCONSOLE2COREAPI := ../../$(JDKJRE2COREAPI)
ohair@478: JCONSOLE_DOCTITLE := JConsole API
ohair@478: JCONSOLE_WINDOWTITLE := JConsole API
ohair@478: JCONSOLE_HEADER := JConsole API
ohair@478: JCONSOLE_BOTTOM := $(call CommonBottom,$(JCONSOLE_FIRST_COPYRIGHT_YEAR))
ohair@478: # JCONSOLE_PKGS is located in NON_CORE_PKGS.gmk
ohair@478:
ohair@478: JCONSOLE_INDEX_HTML = $(JCONSOLE_DOCDIR)/index.html
ohair@478: JCONSOLE_OPTIONS_FILE = $(DOCSTMPDIR)/jconsole.options
ohair@478: JCONSOLE_PACKAGES_FILE = $(DOCSTMPDIR)/jconsole.packages
ohair@478:
ohair@478: jconsoledocs: $(JCONSOLE_INDEX_HTML)
ohair@478:
ohair@478: # Set relative location to core api document root
ohair@478: $(JCONSOLE_INDEX_HTML): GET2DOCSDIR=$(JCONSOLE2COREAPI)/..
ohair@478:
ohair@478: # Run javadoc if the index file is out of date or missing
erikj@518: $(JCONSOLE_INDEX_HTML): $(JCONSOLE_OPTIONS_FILE) $(JCONSOLE_PACKAGES_FILE) coredocs
ohair@478: $(prep-javadoc)
ohair@478: $(call JavadocSummary,$(JCONSOLE_OPTIONS_FILE),$(JCONSOLE_PACKAGES_FILE))
ohair@478: $(JAVADOC_CMD) -d $(@D) \
ohair@478: @$(JCONSOLE_OPTIONS_FILE) @$(JCONSOLE_PACKAGES_FILE)
ohair@478:
ohair@478: # Create file with javadoc options in it
ohair@478: $(JCONSOLE_OPTIONS_FILE):
ohair@478: $(prep-target)
ohair@478: @($(call OptionOnly,$(COMMON_JAVADOCFLAGS)) ; \
ohair@478: $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \
ohair@478: $(call OptionPair,-encoding,ascii) ; \
ohair@478: $(call OptionOnly,-nodeprecatedlist) ; \
ohair@478: $(call OptionPair,-doctitle,$(JCONSOLE_DOCTITLE)) ; \
ohair@478: $(call OptionPair,-windowtitle,$(JCONSOLE_WINDOWTITLE) $(DRAFT_WINTITLE));\
ohair@478: $(call OptionPair,-header,$(JCONSOLE_HEADER)$(DRAFT_HEADER)) ; \
ohair@478: $(call OptionPair,-bottom,$(JCONSOLE_BOTTOM)$(DRAFT_BOTTOM)) ; \
ohair@478: $(call OptionTrip,-linkoffline,$(JCONSOLE2COREAPI),$(COREAPI_DOCSDIR)/); \
ohair@478: ) >> $@
ohair@478:
ohair@478: # Create a file with the package names in it
ohair@478: $(JCONSOLE_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(JCONSOLE_PKGS))
ohair@478: $(prep-target)
ohair@478: $(call PackageFilter,$(JCONSOLE_PKGS))
ohair@478:
ohair@478: #############################################################
ohair@478: #
ohair@478: # treeapidocs
ohair@478: #
ohair@478:
ohair@478: ALL_OTHER_TARGETS += treeapidocs
ohair@478:
ohair@478: TREEAPI_DOCDIR := $(JDK_API_DOCSDIR)/javac/tree
ohair@478: TREEAPI2COREAPI := ../../$(JDKJRE2COREAPI)
ohair@478: TREEAPI_DOCTITLE := Compiler Tree API
ohair@478: TREEAPI_WINDOWTITLE := Compiler Tree API
ohair@478: TREEAPI_HEADER := Compiler Tree API
ohair@478: TREEAPI_BOTTOM := $(call CommonBottom,$(TREEAPI_FIRST_COPYRIGHT_YEAR))
ohair@478: TREEAPI_GROUPNAME := Packages
ohair@478: TREEAPI_REGEXP := com.sun.source.*
ohair@478: # TREEAPI_PKGS is located in NON_CORE_PKGS.gmk
ohair@478:
ohair@478: TREEAPI_INDEX_HTML = $(TREEAPI_DOCDIR)/index.html
ohair@478: TREEAPI_OPTIONS_FILE = $(DOCSTMPDIR)/treeapi.options
ohair@478: TREEAPI_PACKAGES_FILE = $(DOCSTMPDIR)/treeapi.packages
ohair@478:
ohair@478: treeapidocs: $(TREEAPI_INDEX_HTML)
ohair@478:
ohair@478: # Set relative location to core api document root
ohair@478: $(TREEAPI_INDEX_HTML): GET2DOCSDIR=$(TREEAPI2COREAPI)/..
ohair@478:
ohair@478: # Run javadoc if the index file is out of date or missing
erikj@518: $(TREEAPI_INDEX_HTML): $(TREEAPI_OPTIONS_FILE) $(TREEAPI_PACKAGES_FILE) coredocs
ohair@478: $(prep-javadoc)
ohair@478: $(call JavadocSummary,$(TREEAPI_OPTIONS_FILE),$(TREEAPI_PACKAGES_FILE))
ohair@478: $(JAVADOC_CMD) -d $(@D) \
ohair@478: @$(TREEAPI_OPTIONS_FILE) @$(TREEAPI_PACKAGES_FILE)
ohair@478:
ohair@478: # Create file with javadoc options in it
ohair@478: $(TREEAPI_OPTIONS_FILE):
ohair@478: $(prep-target)
ohair@478: @($(call OptionOnly,$(COMMON_JAVADOCFLAGS)) ; \
ohair@478: $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \
ohair@478: $(call OptionPair,-encoding,ascii) ; \
ohair@478: $(call OptionPair,-doctitle,$(TREEAPI_DOCTITLE)) ; \
ohair@478: $(call OptionPair,-windowtitle,$(TREEAPI_WINDOWTITLE) $(DRAFT_WINTITLE));\
ohair@478: $(call OptionPair,-header,$(TREEAPI_HEADER)$(DRAFT_HEADER)) ; \
ohair@478: $(call OptionPair,-tag,$(TAG_JLS)) ; \
ohair@478: $(call OptionPair,-bottom,$(TREEAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
ohair@478: $(call OptionTrip,-group,$(TREEAPI_GROUPNAME),$(TREEAPI_REGEXP)); \
ohair@478: $(call OptionTrip,-linkoffline,$(TREEAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
ohair@478: ) >> $@
ohair@478:
ohair@478: # Create a file with the package names in it
ohair@478: $(TREEAPI_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(TREEAPI_PKGS))
ohair@478: $(prep-target)
ohair@478: $(call PackageFilter,$(TREEAPI_PKGS))
ohair@478:
ohair@478: #############################################################
ohair@478: #
ohair@478: # sctpdocs
ohair@478: #
ohair@478:
ohair@478: ALL_OTHER_TARGETS += sctpdocs
ohair@478:
ohair@478: SCTPAPI_DOCDIR := $(JRE_API_DOCSDIR)/nio/sctp/spec
ohair@478: SCTPAPI2COREAPI := ../../../$(JDKJRE2COREAPI)
ohair@478: SCTPAPI_DOCTITLE := SCTP API
ohair@478: SCTPAPI_WINDOWTITLE := SCTP API
ohair@478: SCTPAPI_HEADER := SCTP API
ohair@478: SCTPAPI_BOTTOM := $(call CommonBottom,$(SCTPAPI_FIRST_COPYRIGHT_YEAR))
ohair@478: # SCTPAPI_PKGS is located in NON_CORE_PKGS.gmk
ohair@478:
ohair@478: SCTPAPI_INDEX_HTML = $(SCTPAPI_DOCDIR)/index.html
ohair@478: SCTPAPI_OPTIONS_FILE = $(DOCSTMPDIR)/sctp.options
ohair@478: SCTPAPI_PACKAGES_FILE = $(DOCSTMPDIR)/sctp.packages
ohair@478:
ohair@478: sctpdocs: $(SCTPAPI_INDEX_HTML)
ohair@478:
ohair@478: # Set relative location to core api document root
ohair@478: $(SCTPAPI_INDEX_HTML): GET2DOCSDIR=$(SCTPAPI2COREAPI)/..
ohair@478:
ohair@478: # Run javadoc if the index file is out of date or missing
erikj@518: $(SCTPAPI_INDEX_HTML): $(SCTPAPI_OPTIONS_FILE) $(SCTPAPI_PACKAGES_FILE) coredocs
ohair@478: $(prep-javadoc)
ohair@478: $(call JavadocSummary,$(SCTPAPI_OPTIONS_FILE),$(SCTPAPI_PACKAGES_FILE))
ohair@478: $(JAVADOC_CMD) -d $(@D) \
ohair@478: @$(SCTPAPI_OPTIONS_FILE) @$(SCTPAPI_PACKAGES_FILE)
ohair@478:
ohair@478: # Create file with javadoc options in it
ohair@478: $(SCTPAPI_OPTIONS_FILE):
ohair@478: $(prep-target)
ohair@478: @($(call OptionOnly,$(COMMON_JAVADOCFLAGS)) ; \
ohair@478: $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \
ohair@478: $(call OptionPair,-encoding,ascii) ; \
ohair@478: $(call OptionOnly,-nodeprecatedlist) ; \
ohair@478: $(call OptionPair,-doctitle,$(SCTPAPI_DOCTITLE)) ; \
ohair@478: $(call OptionPair,-windowtitle,$(SCTPAPI_WINDOWTITLE) $(DRAFT_WINTITLE));\
ohair@478: $(call OptionPair,-header,$(SCTPAPI_HEADER)$(DRAFT_HEADER)) ; \
ohair@478: $(call OptionPair,-bottom,$(SCTPAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \
ohair@478: $(call OptionTrip,-linkoffline,$(SCTPAPI2COREAPI),$(COREAPI_DOCSDIR)/); \
ohair@478: ) >> $@
ohair@478:
ohair@478: # Create a file with the package names in it
ohair@478: $(SCTPAPI_PACKAGES_FILE): $(DIRECTORY_CACHE) $(call PackageDependencies,$(SCTPAPI_PKGS))
ohair@478: $(prep-target)
ohair@478: $(call PackageFilter,$(SCTPAPI_PKGS))
ohair@478:
ohair@478: #############################################################
ohair@478: #
ohair@478: # Get a cache of all the directories
ohair@478:
ohair@478: $(DIRECTORY_CACHE): $(ALL_EXISTING_SOURCE_DIRS)
ohair@478: $(prep-target)
ohair@478: @for cp in $(ALL_EXISTING_SOURCE_DIRS) ; do \
ohair@478: $(ECHO) "$(FIND) $${cp} -type f >> $@"; \
ohair@478: $(FIND) $${cp} -type f >> $@; \
ohair@478: done
ohair@478:
ohair@478: #############################################################
ohair@478: #release version of core packages ########
ohair@478: # Maximize performance and ensure that build number & milestone are set.
ohair@478:
ohair@478: rel-coredocs: sanitycheckcoredocs
ohair@478: $(MAKE) coredocs
ohair@478:
ohair@478: rel-docs: rel-coredocs $(ALL_OTHER_TARGETS)
ohair@478: #
ohair@478: # end of production targets
ohair@478:
ohair@478: otherdocs: $(ALL_OTHER_TARGETS)
ohair@478:
ohair@478: clean:
ohair@478: $(RM) -r $(DOCSDIR) $(DOCSTMPDIR)
ohair@478:
ohair@478: #############################################################
ohair@478: # DEBUG TARGET
ohair@478: # List the values defined in the makefile hierarchy, to make sure everything
ohair@478: # is set properly, and to help identify values we can use instead of making new ones.
ohair@478: # (Most of them come from common/shared/Defs.gmk)
ohair@478: #
ohair@478: # Notes:
ohair@478: # * BUILD_NUMBER defaults to b00 if not set on command line with BUILD_NUMBER=
ohair@478: # * MILESTONE defaults to internal unless set to beta, rc, or fcs on command line
ohair@478: #
ohair@478:
ohair@478: #############################################################
ohair@478: .PHONY: all docs coredocs rel-docs otherdocs rel-coredocs \
ohair@478: sanitycheckcoredocs $(ALL_OTHER_TARGETS)