8149963: build errors during API docs build
authorerikj
Wed, 17 Feb 2016 17:03:08 +0100
changeset 35817 007e71c3b8c4
parent 35814 6c644cca3f3f
child 35818 9e5e5a3fefcd
8149963: build errors during API docs build Reviewed-by: ihse, tbell
make/Javadoc.gmk
--- a/make/Javadoc.gmk	Wed Jul 05 21:20:45 2017 +0200
+++ b/make/Javadoc.gmk	Wed Feb 17 17:03:08 2016 +0100
@@ -212,6 +212,11 @@
 JRE_API_DOCSDIR = $(DOCSDIR)/jre/api
 PLATFORM_DOCSDIR = $(DOCSDIR)/platform
 
+# The core api index file is the target for the core api javadocs rule
+# and needs to be defined early so that all other javadoc rules may
+# depend on it.
+COREAPI_INDEX_FILE = $(COREAPI_DOCSDIR)/index.html
+
 # The non-core api javadocs need to be able to access the root of the core
 # api directory, so for jdk/api or jre/api to get to the core api/
 # directory we would use this:
@@ -363,8 +368,7 @@
 # Overview file for core apis
 COREAPI_OVERVIEW = $(JDK_TOPDIR)/src/java.base/share/classes/overview-core.html
 
-# The index.html, options, and packages files
-COREAPI_INDEX_FILE = $(COREAPI_DOCSDIR)/index.html
+# The options and packages files
 COREAPI_OPTIONS_FILE = $(DOCSTMPDIR)/coredocs.options
 COREAPI_PACKAGES_FILE = $(DOCSTMPDIR)/coredocs.packages