jjg@592: # Copyright (c) 1997, 2013, 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: ohrstrom@607: JAVADOC_CMD = $(JAVA) \ ihse@839: -Xmx1024m \ ihse@839: -Djava.awt.headless=true \ ihse@839: $(NEW_JAVADOC) \ ihse@839: -bootclasspath $(JDK_OUTPUTDIR)/classes ohair@478: ohair@478: # Copyright year for beginning of Java and some of the apis ihse@839: # (Needed when creating the javadocs) ihse@839: FIRST_COPYRIGHT_YEAR = 1993 ihse@839: DOMAPI_FIRST_COPYRIGHT_YEAR = 2005 ihse@839: MIRROR_FIRST_COPYRIGHT_YEAR = 2004 ihse@839: DOCLETAPI_FIRST_COPYRIGHT_YEAR = 1993 ihse@839: TAGLETAPI_FIRST_COPYRIGHT_YEAR = 1993 ihse@839: JDI_FIRST_COPYRIGHT_YEAR = 1999 ihse@839: JAAS_FIRST_COPYRIGHT_YEAR = 1998 ihse@839: JGSS_FIRST_COPYRIGHT_YEAR = 2000 ihse@839: SMARTCARDIO_FIRST_COPYRIGHT_YEAR = 2005 ihse@839: HTTPSERVER_FIRST_COPYRIGHT_YEAR = 2005 ihse@839: MGMT_FIRST_COPYRIGHT_YEAR = 2003 ihse@839: ATTACH_FIRST_COPYRIGHT_YEAR = 2005 ihse@839: JCONSOLE_FIRST_COPYRIGHT_YEAR = 2006 ihse@839: SCTPAPI_FIRST_COPYRIGHT_YEAR = 2009 ihse@839: TRACING_FIRST_COPYRIGHT_YEAR = 2008 ihse@839: TREEAPI_FIRST_COPYRIGHT_YEAR = 2005 ihse@839: JNLP_FIRST_COPYRIGHT_YEAR = 1998 ihse@839: 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 ihse@839: # The word "Copyright" might optionally be a link to the file cpyr.html. ihse@839: # The first year of copyright may vary or not be available. ihse@839: # 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 ihse@839: # (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 ihse@839: # 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 bpatel@817: DEV_DOCS_URL-8 = http://download.oracle.com/javase/8/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 ihse@839: # NOTE: Quotes are required around sourcepath argument only on Windows. ihse@839: # Otherwise, you get "No packages or classes specified." due ihse@839: # to $(PATH_SEP) being interpreted as an end of ihse@839: # command (newline or shell ; character) erikj@518: ALL_SOURCE_DIRS = $(JDK_SHARE_CLASSES) \ ihse@839: $(JDK_IMPSRC) \ ihse@839: $(JDK_GENSRC) \ ihse@839: $(JDK_OUTPUTDIR)/gendocsrc_rmic \ ihse@839: $(JDK_TOPDIR)/src/solaris/classes \ ihse@839: $(JDK_TOPDIR)/src/windows/classes \ ihse@839: $(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 ihse@839: $(MKDIR) -p $(@D) ihse@839: $(RM) $@ ohair@478: endef ohair@478: ohair@478: # Prep for javadoc creation, assumes $@ is an index.html file ohair@478: define prep-javadoc ihse@839: @if [ -f "$@" -a "$?" != "" ] ; then \ ihse@839: $(ECHO) "# Dependencies have changed: $?"; \ ihse@839: fi ihse@839: $(RM) -r $(@D) ihse@839: $(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 ihse@839: # (Currently only returning a list of directories) ohair@478: define PackageDependencies # packages ihse@839: $(shell \ ihse@839: if [ "$1" != "" -a -f $(DIRECTORY_CACHE) ] ; then \ ihse@839: for p in $1 ; do \ ihse@839: pd=`$(ECHO) $${p} | $(SED) -e 's@[.]@/@g'`; \ ihse@839: $(CAT) $(DIRECTORY_CACHE) | $(GREP) "/$${pd}/" ; \ ihse@839: done; \ ihse@839: fi \ ihse@839: ) ohair@478: endef ohair@478: ohair@478: # Given a list of packages, add packages that exist to $@, print summary ohair@478: define PackageFilter # packages ihse@839: @if [ "$1" != "" ] ; then \ ihse@839: for p in $1 ; do \ ihse@839: pd=`$(ECHO) $${p} | $(SED) -e 's@[.]@/@g'`; \ ihse@839: found="false"; \ ihse@839: for cp in $(ALL_SOURCE_DIRS) ; do \ ihse@839: if [ -d $${cp}/$${pd} ] ; then \ ihse@839: $(ECHO) "$${p}" >> $@; \ ihse@839: found="true"; \ ihse@839: break; \ ihse@839: fi; \ ihse@839: done; \ ihse@839: if [ "$${found}" = "false" ] ; then \ ihse@839: $(ECHO) "WARNING: Package not found: $${p}"; \ ihse@839: fi; \ ihse@839: done; \ ihse@839: 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 ihse@839: @$(ECHO) "# Summary for $@"; \ ihse@839: $(ECHO) "# Options (`$(BASENAME) $1`):"; $(SED) -e 's@^@# @' $1; \ ihse@839: $(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: # ihse@839: COREAPI_DOCSDIR = $(DOCSDIR)/api ihse@839: JDK_API_DOCSDIR = $(DOCSDIR)/jdk/api ihse@839: JRE_API_DOCSDIR = $(DOCSDIR)/jre/api ihse@839: PLATFORM_DOCSDIR = $(DOCSDIR)/platform ohair@478: ohair@478: # The non-core api javadocs need to be able to access the root of the core ihse@839: # api directory, so for jdk/api or jre/api to get to the core api/ ihse@839: # directory we would use this: ihse@839: 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 ihse@839: $(PRINTF) "%s\n" "$1" ohair@478: endef ohair@478: define OptionPair # opt arg ihse@839: $(PRINTF) "%s '%s'\n" "$1" '$2' ohair@478: endef ohair@478: define OptionTrip # opt arg arg ihse@839: $(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 ihse@839: COMMON_JAVADOCFLAGS = \ ihse@839: -XDignore.symbol.file=true \ ihse@839: -quiet \ ihse@839: -use \ ihse@839: -keywords \ ihse@839: -Xdoclint:none \ ihse@912: -Xprofilespath $(JDK_TOPDIR)/make/profile-rtjar-includes.txt \ ihse@839: $(ADDITIONAL_JAVADOCFLAGS) ohair@478: ohair@478: ifdef OPENJDK ihse@839: ADDITIONAL_JAVADOCFLAGS = \ ihse@839: -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) ihse@839: DRAFT_HEADER =
DRAFT $(MILESTONE)-$(BUILD_NUMBER) ihse@839: DRAFT_BOTTOM =
DRAFT $(MILESTONE)-$(BUILD_NUMBER) ihse@839: DRAFT_WINTITLE = $(BUILD_NUMBER) ihse@839: # Early access top text (not used in FCS releases) ihse@839: 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:
ihse@839: 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: ihse@839: # a) You're generating docs outside of release engineering's ihse@839: # standard control build. ihse@839: # b) The docs will be pushed to the web and/or included in ihse@839: # the downloaded doc bundle. ohair@478: # ihse@839: # 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) "" ihse@839: ifeq ($(BUILD_NUMBER), b00) ihse@839: @$(ECHO) "ERROR: Build number must be defined" ihse@839: @$(ECHO) "MILESTONE is set to $(MILESTONE)" ihse@839: @$(ECHO) "" ihse@839: exit 1 ihse@839: endif ohair@478: ohair@478: ############################################################# ohair@478: # ohair@478: # coredocs ohair@478: # ihse@839: COREAPI_DOCTITLE = Java$(TRADEMARK) Platform, Standard Edition \ ohair@478: $(JDK_MINOR_VERSION)
API Specification ihse@839: 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 ihse@839: COREAPI_INDEX_FILE = $(COREAPI_DOCSDIR)/index.html ihse@839: 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) \ ihse@839: @$(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) ihse@839: @($(call OptionOnly,$(COMMON_JAVADOCFLAGS)) ; \ ihse@839: $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \ ihse@839: $(call OptionPair,-encoding,ISO-8859-1) ; \ ihse@839: $(call OptionPair,-tag,beaninfo:X) ; \ ihse@839: $(call OptionPair,-tag,revised:X) ; \ ihse@839: $(call OptionPair,-tag,since.unbundled:X) ; \ ihse@839: $(call OptionPair,-tag,spec:X) ; \ ihse@839: $(call OptionPair,-tag,specdefault:X) ; \ ihse@839: $(call OptionPair,-tag,Note:X) ; \ ihse@839: $(call OptionPair,-tag,ToDo:X) ; \ ihse@839: $(call OptionPair,-tag,apiNote:a:API Note:) ; \ ihse@839: $(call OptionPair,-tag,implSpec:a:Implementation Requirements:) ; \ ihse@839: $(call OptionPair,-tag,implNote:a:Implementation Note:) ; \ ihse@839: $(call OptionPair,-tag,param) ; \ ihse@839: $(call OptionPair,-tag,return) ; \ ihse@839: $(call OptionPair,-tag,throws) ; \ ihse@839: $(call OptionPair,-tag,since) ; \ ihse@839: $(call OptionPair,-tag,version) ; \ ihse@839: $(call OptionPair,-tag,serialData) ; \ ihse@839: $(call OptionPair,-tag,factory) ; \ ihse@839: $(call OptionPair,-tag,see) ; \ ihse@839: $(call OptionPair,-tag,$(TAG_JLS)) ; \ ihse@839: $(call OptionOnly,-splitIndex) ; \ ihse@839: $(call OptionPair,-overview,$(COREAPI_OVERVIEW)) ; \ ihse@839: $(call OptionPair,-doctitle,$(COREAPI_DOCTITLE)) ; \ ihse@839: $(call OptionPair,-windowtitle,$(COREAPI_WINDOWTITLE) $(DRAFT_WINTITLE)) ; \ ihse@839: $(call OptionPair,-header,$(COREAPI_HEADER)$(DRAFT_HEADER)) ; \ ihse@839: $(call OptionPair,-bottom,$(COREAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \ ihse@839: ) >> $@ ihse@839: ifdef COREAPI_TOP_EARLYACCESS ihse@839: @$(call OptionPair,-top,$(COREAPI_TOP_EARLYACCESS)) >> $@ ihse@839: 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: ihse@839: DOCLETAPI_DOCDIR := $(JDK_API_DOCSDIR)/javadoc/doclet ihse@839: DOCLETAPI2COREAPI := ../../$(JDKJRE2COREAPI) ihse@839: DOCLETAPI_DOCTITLE := Doclet API ihse@839: DOCLETAPI_WINDOWTITLE := Doclet API ihse@839: DOCLETAPI_HEADER := Doclet API ihse@839: DOCLETAPI_BOTTOM := $(call CommonTrademarkBottom,$(DOCLETAPI_FIRST_COPYRIGHT_YEAR)) ihse@839: DOCLETAPI_GROUPNAME := Packages ihse@839: 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 ihse@839: DOCLETAPI_INDEX_FILE = $(DOCLETAPI_DOCDIR)/index.html ihse@839: 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) \ ihse@839: @$(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) ihse@839: @($(call OptionOnly,$(COMMON_JAVADOCFLAGS)) ; \ ihse@839: $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \ ihse@839: $(call OptionPair,-encoding,ascii) ; \ ihse@839: $(call OptionOnly,-breakiterator) ; \ ihse@839: $(call OptionPair,-doctitle,$(DOCLETAPI_DOCTITLE)) ; \ ihse@839: $(call OptionPair,-windowtitle,$(DOCLETAPI_WINDOWTITLE) $(DRAFT_WINTITLE)); \ ihse@839: $(call OptionPair,-header,$(DOCLETAPI_HEADER)$(DRAFT_HEADER)) ; \ ihse@839: $(call OptionPair,-bottom,$(DOCLETAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \ ohair@478: $(call OptionTrip,-group,$(DOCLETAPI_GROUPNAME),$(DOCLETAPI_REGEXP)); \ ohair@478: $(call OptionTrip,-linkoffline,$(DOCLETAPI2COREAPI),$(COREAPI_DOCSDIR)/); \ ihse@839: ) >> $@ 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 ihse@839: TAGLETAPI_DOCDIR := $(JDK_API_DOCSDIR)/javadoc/taglet ihse@839: TAGLETAPI2COREAPI := ../../$(JDKJRE2COREAPI) ihse@839: 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) ihse@839: TAGLETAPI_TEMPDIR = $(DOCSTMPDIR)/taglets_temp ohair@478: ohair@478: # The index.html, options, and packages files ihse@839: TAGLETAPI_INDEX_FILE = $(TAGLETAPI_DOCDIR)/index.html ihse@839: 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) \ ihse@839: @$(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) ihse@839: @($(call OptionOnly,$(COMMON_JAVADOCFLAGS)) ; \ ihse@839: $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \ ihse@839: $(call OptionPair,-encoding,ascii) ; \ ihse@839: $(call OptionOnly,-nonavbar) ; \ ihse@839: $(call OptionOnly,-noindex) ; \ ihse@839: $(call OptionPair,-bottom,$(TAGLETAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \ ohair@478: $(call OptionTrip,-linkoffline,$(TAGLETAPI2COREAPI),$(COREAPI_DOCSDIR)/); \ ihse@839: ) >> $@ 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: ihse@839: DOMAPI_DOCDIR := $(JRE_API_DOCSDIR)/plugin/dom ihse@839: DOMAPI2COREAPI := ../../$(JDKJRE2COREAPI) ihse@839: DOMAPI_DOCTITLE := Common DOM API ihse@839: DOMAPI_WINDOWTITLE := Common DOM API ihse@839: DOMAPI_HEADER := Common DOM API ihse@839: DOMAPI_BOTTOM := $(call CommonTrademarkBottom,$(DOMAPI_FIRST_COPYRIGHT_YEAR)) ihse@839: DOMAPI_GROUPNAME := Packages ihse@839: 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 ihse@839: DOMAPI_INDEX_FILE = $(DOMAPI_DOCDIR)/index.html ihse@839: 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) \ ihse@839: @$(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) ihse@839: @($(call OptionOnly,$(COMMON_JAVADOCFLAGS)) ; \ ihse@839: $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \ ihse@839: $(call OptionPair,-encoding,ascii) ; \ ihse@839: $(call OptionOnly,-splitIndex) ; \ ihse@839: $(call OptionPair,-doctitle,$(DOMAPI_DOCTITLE)) ; \ ihse@839: $(call OptionPair,-windowtitle,$(DOMAPI_WINDOWTITLE) $(DRAFT_WINTITLE)); \ ihse@839: $(call OptionPair,-header,$(DOMAPI_HEADER)$(DRAFT_HEADER)) ; \ ihse@839: $(call OptionPair,-bottom,$(DOMAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \ ohair@478: $(call OptionTrip,-group,$(DOMAPI_GROUPNAME),$(DOMAPI_REGEXP)); \ ohair@478: $(call OptionTrip,-linkoffline,$(DOMAPI2COREAPI),$(COREAPI_DOCSDIR)/); \ ihse@839: ) >> $@ 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: ihse@839: JDI_DOCDIR := $(JDK_API_DOCSDIR)/jpda/jdi ihse@839: JDI2COREAPI := ../../$(JDKJRE2COREAPI) ihse@839: JDI_DOCTITLE := Java$(TRADEMARK) Debug Interface ohair@478: JDI_WINDOWTITLE := Java Debug Interface ihse@839: JDI_HEADER := Java Debug Interface ihse@839: JDI_BOTTOM := $(call CommonBottom,$(JDI_FIRST_COPYRIGHT_YEAR)) ihse@839: 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 ihse@839: JDI_INDEX_FILE = $(JDI_DOCDIR)/index.html ihse@839: 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) \ ihse@839: @$(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) ihse@839: @($(call OptionOnly,$(COMMON_JAVADOCFLAGS)) ; \ ihse@839: $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \ ihse@839: $(call OptionPair,-encoding,ascii) ; \ ihse@839: $(call OptionPair,-overview,$(JDI_OVERVIEW)) ; \ ihse@839: $(call OptionPair,-doctitle,$(JDI_DOCTITLE)) ; \ ohair@478: $(call OptionPair,-windowtitle,$(JDI_WINDOWTITLE) $(DRAFT_WINTITLE)); \ ihse@839: $(call OptionPair,-header,$(JDI_HEADER)$(DRAFT_HEADER)) ; \ ihse@839: $(call OptionPair,-bottom,$(JDI_BOTTOM)$(DRAFT_BOTTOM)) ; \ ohair@478: $(call OptionTrip,-linkoffline,$(JDI2COREAPI),$(COREAPI_DOCSDIR)/); \ ihse@839: ) >> $@ 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: ihse@839: 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: ihse@839: JVMTI_DOCDIR = $(PLATFORM_DOCSDIR)/jvmti ihse@839: JVMTI_HTML = $(HOTSPOT_DIST)/docs/platform/jvmti/jvmti.html ohair@478: ihse@839: jvmtidocs: $(JVMTI_DOCDIR)/jvmti.html ohair@478: $(JVMTI_DOCDIR)/jvmti.html: ohair@478: @$(prep-javadoc) ihse@839: @if [ -f $(JVMTI_HTML) ] ; then \ ihse@839: $(ECHO) "$(CP) $(JVMTI_HTML) $@"; \ ihse@839: $(CP) $(JVMTI_HTML) $@; \ ihse@839: 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: ihse@839: JAAS_DOCDIR := $(JRE_API_DOCSDIR)/security/jaas/spec ihse@839: JAAS2COREAPI := ../../../$(JDKJRE2COREAPI) ihse@839: JAAS_DOCTITLE := Java$(TRADEMARK) Authentication and Authorization Service ohair@478: JAAS_WINDOWTITLE := Java Authentication and Authorization Service ihse@839: JAAS_HEADER := Java Authentication and Authorization Service ihse@839: JAAS_BOTTOM := $(call CommonBottom,$(JAAS_FIRST_COPYRIGHT_YEAR)) ohair@478: # JAAS_PKGS is located in NON_CORE_PKGS.gmk ihse@839: JAAS_OVERVIEW := $(JDK_SHARE_CLASSES)/com/sun/security/auth/jaas-overview.html ohair@478: ohair@478: # The index.html, options, and packages files ihse@839: JAAS_INDEX_FILE = $(JAAS_DOCDIR)/index.html ihse@839: 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) \ ihse@839: @$(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) ihse@839: @($(call OptionOnly,$(COMMON_JAVADOCFLAGS)) ; \ ihse@839: $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \ ihse@839: $(call OptionPair,-encoding,ascii) ; \ ihse@839: $(call OptionPair,-overview,$(JAAS_OVERVIEW)) ; \ ihse@839: $(call OptionPair,-doctitle,$(JAAS_DOCTITLE)) ; \ ohair@478: $(call OptionPair,-windowtitle,$(JAAS_WINDOWTITLE) $(DRAFT_WINTITLE)); \ ihse@839: $(call OptionPair,-header,$(JAAS_HEADER)$(DRAFT_HEADER)) ; \ ihse@839: $(call OptionPair,-bottom,$(JAAS_BOTTOM)$(DRAFT_BOTTOM)) ; \ ohair@478: $(call OptionTrip,-linkoffline,$(JAAS2COREAPI),$(COREAPI_DOCSDIR)/); \ ihse@839: ) >> $@ 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: ihse@839: JGSS_DOCDIR := $(JRE_API_DOCSDIR)/security/jgss/spec ihse@839: JGSS2COREAPI := ../../../$(JDKJRE2COREAPI) ihse@839: JGSS_DOCTITLE := Java$(TRADEMARK) GSS-API Utilities ohair@478: JGSS_WINDOWTITLE := Java GSS-API Utilities ihse@839: JGSS_HEADER := Java GSS-API Utilities ihse@839: JGSS_BOTTOM := $(call CommonBottom,$(JGSS_FIRST_COPYRIGHT_YEAR)) ihse@839: 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 ihse@839: JGSS_INDEX_FILE = $(JGSS_DOCDIR)/index.html ihse@839: 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) \ ihse@839: @$(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) ihse@839: @($(call OptionOnly,$(COMMON_JAVADOCFLAGS)) ; \ ihse@839: $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \ ihse@839: $(call OptionPair,-encoding,ascii) ; \ ihse@839: $(call OptionOnly,-nodeprecatedlist) ; \ ihse@839: $(call OptionPair,-overview,$(JGSS_OVERVIEW)) ; \ ihse@839: $(call OptionPair,-doctitle,$(JGSS_DOCTITLE)) ; \ ohair@478: $(call OptionPair,-windowtitle,$(JGSS_WINDOWTITLE) $(DRAFT_WINTITLE)); \ ihse@839: $(call OptionPair,-header,$(JGSS_HEADER)$(DRAFT_HEADER)) ; \ ihse@839: $(call OptionPair,-bottom,$(JGSS_BOTTOM)$(DRAFT_BOTTOM)) ; \ ohair@478: $(call OptionTrip,-linkoffline,$(JGSS2COREAPI),$(COREAPI_DOCSDIR)/); \ ihse@839: ) >> $@ 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: ihse@839: SMARTCARDIO_DOCDIR := $(JRE_API_DOCSDIR)/security/smartcardio/spec ihse@839: SMARTCARDIO2COREAPI := ../../../$(JDKJRE2COREAPI) ihse@839: SMARTCARDIO_DOCTITLE := Java$(TRADEMARK) Smart Card I/O ohair@478: SMARTCARDIO_WINDOWTITLE := Java Smart Card I/O ihse@839: SMARTCARDIO_HEADER := Java Smart Card I/O ihse@839: 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 ihse@839: SMARTCARDIO_INDEX_FILE = $(SMARTCARDIO_DOCDIR)/index.html ihse@839: 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) \ ihse@839: @$(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) ihse@839: @($(call OptionOnly,$(COMMON_JAVADOCFLAGS)) ; \ ihse@839: $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \ ihse@839: $(call OptionPair,-encoding,ascii) ; \ ihse@839: $(call OptionOnly,-nodeprecatedlist) ; \ ihse@839: $(call OptionPair,-doctitle,$(SMARTCARDIO_DOCTITLE)) ; \ ihse@839: $(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)/); \ ihse@839: ) >> $@ 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: ihse@839: HTTPSERVER_DOCDIR := $(JRE_API_DOCSDIR)/net/httpserver/spec ihse@839: HTTPSERVER2COREAPI := ../../../$(JDKJRE2COREAPI) ihse@839: HTTPSERVER_DOCTITLE := Java$(TRADEMARK) HTTP Server ohair@478: HTTPSERVER_WINDOWTITLE := Java HTTP Server ihse@839: HTTPSERVER_HEADER := Java HTTP Server ihse@839: HTTPSERVER_BOTTOM := $(call CommonBottom,$(HTTPSERVER_FIRST_COPYRIGHT_YEAR)) ohair@478: # HTTPSERVER_PKGS is located in NON_CORE_PKGS.gmk ohair@478: ihse@839: HTTPSERVER_INDEX_HTML = $(HTTPSERVER_DOCDIR)/index.html ihse@839: 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) \ ihse@839: @$(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) ihse@839: @($(call OptionOnly,$(COMMON_JAVADOCFLAGS)) ; \ ihse@839: $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \ ihse@839: $(call OptionPair,-encoding,ascii) ; \ ihse@839: $(call OptionOnly,-nodeprecatedlist) ; \ ihse@839: $(call OptionPair,-doctitle,$(HTTPSERVER_DOCTITLE)) ; \ ihse@839: $(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)/); \ ihse@839: ) >> $@ 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: ihse@839: MGMT_DOCDIR := $(JRE_API_DOCSDIR)/management/extension ihse@839: MGMT2COREAPI := ../../$(JDKJRE2COREAPI) ihse@839: JVM_MIB_NAME := JVM-MANAGEMENT-MIB.mib ihse@839: JVM_MIB_SRC := $(JDK_TOPDIR)/src/closed/share/classes/sun/management/snmp/$(JVM_MIB_NAME) ihse@839: MGMT_DOCTITLE := Monitoring and Management Interface for the Java$(TRADEMARK) Platform ohair@478: MGMT_WINDOWTITLE := Monitoring and Management Interface for the Java Platform ihse@839: MGMT_HEADER := Monitoring and Management Interface for the Java Platform ihse@839: MGMT_BOTTOM := $(call CommonBottom,$(MGMT_FIRST_COPYRIGHT_YEAR)) ihse@839: 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 ihse@839: MGMT_INDEX_FILE = $(MGMT_DOCDIR)/index.html ihse@839: 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) ihse@839: @if [ -f $(JVM_MIB_SRC) ] ; then \ ihse@839: $(ECHO) "$(CP) $(JVM_MIB_SRC) $(@D)/.."; \ ihse@839: $(CP) $(JVM_MIB_SRC) $(@D)/.. ; \ ihse@839: else \ ihse@839: $(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) \ ihse@839: @$(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) ihse@839: @($(call OptionOnly,$(COMMON_JAVADOCFLAGS)) ; \ ihse@839: $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \ ihse@839: $(call OptionPair,-encoding,ascii) ; \ ihse@839: $(call OptionOnly,-nodeprecatedlist) ; \ ihse@839: $(call OptionPair,-overview,$(MGMT_OVERVIEW)) ; \ ihse@839: $(call OptionPair,-doctitle,$(MGMT_DOCTITLE)) ; \ ohair@478: $(call OptionPair,-windowtitle,$(MGMT_WINDOWTITLE) $(DRAFT_WINTITLE)); \ ihse@839: $(call OptionPair,-header,$(MGMT_HEADER)$(DRAFT_HEADER)) ; \ ihse@839: $(call OptionPair,-bottom,$(MGMT_BOTTOM)$(DRAFT_BOTTOM)) ; \ ohair@478: $(call OptionTrip,-linkoffline,$(MGMT2COREAPI),$(COREAPI_DOCSDIR)/); \ ihse@839: ) >> $@ 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: ihse@839: ATTACH_DOCDIR := $(JDK_API_DOCSDIR)/attach/spec ihse@839: ATTACH2COREAPI := ../../$(JDKJRE2COREAPI) ihse@839: ATTACH_DOCTITLE := Attach API ohair@478: ATTACH_WINDOWTITLE := Attach API ihse@839: ATTACH_HEADER := Attach API ihse@839: ATTACH_BOTTOM := $(call CommonBottom,$(ATTACH_FIRST_COPYRIGHT_YEAR)) ohair@478: # ATTACH_PKGS is located in NON_CORE_PKGS.gmk ohair@478: ihse@839: ATTACH_INDEX_HTML = $(ATTACH_DOCDIR)/index.html ihse@839: 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) \ ihse@839: @$(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) ihse@839: @($(call OptionOnly,$(COMMON_JAVADOCFLAGS)) ; \ ihse@839: $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \ ihse@839: $(call OptionPair,-encoding,ascii) ; \ ihse@839: $(call OptionOnly,-nodeprecatedlist) ; \ ihse@839: $(call OptionPair,-doctitle,$(ATTACH_DOCTITLE)) ; \ ihse@839: $(call OptionPair,-windowtitle,$(ATTACH_WINDOWTITLE) $(DRAFT_WINTITLE)); \ ihse@839: $(call OptionPair,-header,$(ATTACH_HEADER)$(DRAFT_HEADER)) ; \ ihse@839: $(call OptionPair,-bottom,$(ATTACH_BOTTOM)$(DRAFT_BOTTOM)) ; \ ohair@478: $(call OptionTrip,-linkoffline,$(ATTACH2COREAPI),$(COREAPI_DOCSDIR)/); \ ihse@839: ) >> $@ 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: ihse@839: JCONSOLE_DOCDIR := $(JDK_API_DOCSDIR)/jconsole/spec ihse@839: JCONSOLE2COREAPI := ../../$(JDKJRE2COREAPI) ihse@839: JCONSOLE_DOCTITLE := JConsole API ohair@478: JCONSOLE_WINDOWTITLE := JConsole API ihse@839: JCONSOLE_HEADER := JConsole API ihse@839: JCONSOLE_BOTTOM := $(call CommonBottom,$(JCONSOLE_FIRST_COPYRIGHT_YEAR)) ohair@478: # JCONSOLE_PKGS is located in NON_CORE_PKGS.gmk ohair@478: ihse@839: JCONSOLE_INDEX_HTML = $(JCONSOLE_DOCDIR)/index.html ihse@839: 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) \ ihse@839: @$(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) ihse@839: @($(call OptionOnly,$(COMMON_JAVADOCFLAGS)) ; \ ihse@839: $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \ ihse@839: $(call OptionPair,-encoding,ascii) ; \ ihse@839: $(call OptionOnly,-nodeprecatedlist) ; \ ihse@839: $(call OptionPair,-doctitle,$(JCONSOLE_DOCTITLE)) ; \ ihse@839: $(call OptionPair,-windowtitle,$(JCONSOLE_WINDOWTITLE) $(DRAFT_WINTITLE)); \ ihse@839: $(call OptionPair,-header,$(JCONSOLE_HEADER)$(DRAFT_HEADER)) ; \ ihse@839: $(call OptionPair,-bottom,$(JCONSOLE_BOTTOM)$(DRAFT_BOTTOM)) ; \ ohair@478: $(call OptionTrip,-linkoffline,$(JCONSOLE2COREAPI),$(COREAPI_DOCSDIR)/); \ ihse@839: ) >> $@ 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: ihse@839: TREEAPI_DOCDIR := $(JDK_API_DOCSDIR)/javac/tree ihse@839: TREEAPI2COREAPI := ../../$(JDKJRE2COREAPI) ihse@839: TREEAPI_DOCTITLE := Compiler Tree API ihse@839: TREEAPI_WINDOWTITLE := Compiler Tree API ihse@839: TREEAPI_HEADER := Compiler Tree API ihse@839: TREEAPI_BOTTOM := $(call CommonBottom,$(TREEAPI_FIRST_COPYRIGHT_YEAR)) ihse@839: TREEAPI_GROUPNAME := Packages ihse@839: TREEAPI_REGEXP := com.sun.source.* ohair@478: # TREEAPI_PKGS is located in NON_CORE_PKGS.gmk ohair@478: ihse@839: TREEAPI_INDEX_HTML = $(TREEAPI_DOCDIR)/index.html ihse@839: 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) \ ihse@839: @$(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) ihse@839: @($(call OptionOnly,$(COMMON_JAVADOCFLAGS)) ; \ ihse@839: $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \ ihse@839: $(call OptionPair,-encoding,ascii) ; \ ihse@839: $(call OptionPair,-doctitle,$(TREEAPI_DOCTITLE)) ; \ ihse@839: $(call OptionPair,-windowtitle,$(TREEAPI_WINDOWTITLE) $(DRAFT_WINTITLE)); \ ihse@839: $(call OptionPair,-header,$(TREEAPI_HEADER)$(DRAFT_HEADER)) ; \ ihse@839: $(call OptionPair,-tag,$(TAG_JLS)) ; \ ihse@839: $(call OptionPair,-bottom,$(TREEAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \ ohair@478: $(call OptionTrip,-group,$(TREEAPI_GROUPNAME),$(TREEAPI_REGEXP)); \ ohair@478: $(call OptionTrip,-linkoffline,$(TREEAPI2COREAPI),$(COREAPI_DOCSDIR)/); \ ihse@839: ) >> $@ 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: ihse@839: SCTPAPI_DOCDIR := $(JRE_API_DOCSDIR)/nio/sctp/spec ihse@839: SCTPAPI2COREAPI := ../../../$(JDKJRE2COREAPI) ihse@839: SCTPAPI_DOCTITLE := SCTP API ohair@478: SCTPAPI_WINDOWTITLE := SCTP API ihse@839: SCTPAPI_HEADER := SCTP API ihse@839: SCTPAPI_BOTTOM := $(call CommonBottom,$(SCTPAPI_FIRST_COPYRIGHT_YEAR)) ohair@478: # SCTPAPI_PKGS is located in NON_CORE_PKGS.gmk ohair@478: ihse@839: SCTPAPI_INDEX_HTML = $(SCTPAPI_DOCDIR)/index.html ihse@839: 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) \ ihse@839: @$(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) ihse@839: @($(call OptionOnly,$(COMMON_JAVADOCFLAGS)) ; \ ihse@839: $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \ ihse@839: $(call OptionPair,-encoding,ascii) ; \ ihse@839: $(call OptionOnly,-nodeprecatedlist) ; \ ihse@839: $(call OptionPair,-doctitle,$(SCTPAPI_DOCTITLE)) ; \ ihse@839: $(call OptionPair,-windowtitle,$(SCTPAPI_WINDOWTITLE) $(DRAFT_WINTITLE)); \ ihse@839: $(call OptionPair,-header,$(SCTPAPI_HEADER)$(DRAFT_HEADER)) ; \ ihse@839: $(call OptionPair,-bottom,$(SCTPAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \ ohair@478: $(call OptionTrip,-linkoffline,$(SCTPAPI2COREAPI),$(COREAPI_DOCSDIR)/); \ ihse@839: ) >> $@ 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) ihse@839: @for cp in $(ALL_EXISTING_SOURCE_DIRS) ; do \ ihse@839: $(ECHO) "$(FIND) $${cp} -type f >> $@"; \ ihse@839: $(FIND) $${cp} -type f >> $@; \ ohair@478: done ohair@478: ohair@478: ############################################################# ohair@478: #release version of core packages ######## ihse@912: ihse@912: # The rel-coredocs and rel-docs targets were added by Eric Armstrong. rel-coredocs ihse@912: # assumes the kind of large, 32-bit machine used in the javapubs group's docs-release ihse@912: # process. It specifies memory settings accordingly to maximize performance. ihse@912: # ihse@912: # The performance settings, like the sanity check, are most important for the core ihse@912: # docs--the platform APIs. Running javadoc on those APIs takes a significant amount ihse@912: # of time and memory. Setting the initial heap size as large as possible is important ihse@912: # to prevent thrashing as the heap grows. Setting the maximum as large as necessary ihse@912: # is also important to keep the job from failing. ihse@912: # ihse@912: # -J-Xmx512 sets a maximum of 512, which became necessary in 6.0 ihse@912: # -J-Xms256 sets starting size to 256 (default is 8) ihse@912: # ihse@912: # rel-coredocs also includes a sanity check to help ensure that BUILD_NUMBER and ihse@912: # MILESTONE are specified properly when docs are built outside of the normal release ihse@912: # engineering process, with the intention of releasing them on the web or in a downloaded ihse@912: # docs bundle. (When invoked in release engineering's control build, the values are always ihse@912: # set properly. But when the targets are run by themselves, they default to b00 and ihse@912: # "internal"--which silently sabotage the result of a build that can take many hours ihse@912: # to complete. ihse@912: 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: # ihse@839: # Notes: ihse@839: # * BUILD_NUMBER defaults to b00 if not set on command line with BUILD_NUMBER= ihse@839: # * 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 \ ihse@839: sanitycheckcoredocs $(ALL_OTHER_TARGETS)