diff --git a/make/Docs.gmk b/make/Docs.gmk
index 93e20d94461..3668a602aa4 100644
--- a/make/Docs.gmk
+++ b/make/Docs.gmk
@@ -32,6 +32,7 @@ include ModuleTools.gmk
include ProcessMarkdown.gmk
include ToolsJdk.gmk
include ZipArchive.gmk
+include TextFileProcessing.gmk
# This is needed to properly setup DOCS_MODULES.
$(eval $(call ReadImportMetaData))
@@ -64,7 +65,7 @@ MODULES_SOURCE_PATH := $(call PathList, $(call GetModuleSrcPath) \
# URLs
JAVADOC_BASE_URL := https://docs.oracle.com/pls/topic/lookup?ctx=javase$(VERSION_NUMBER)&id=homepage
BUG_SUBMIT_URL := https://bugreport.java.com/bugreport/
-COPYRIGHT_URL := {@docroot}/../legal/copyright.html
+COPYRIGHT_URL := legal/copyright.html
LICENSE_URL := https://www.oracle.com/technetwork/java/javase/terms/license/java$(VERSION_NUMBER)speclicense.html
REDISTRIBUTION_URL := https://www.oracle.com/technetwork/java/redist-137594.html
@@ -148,6 +149,15 @@ else
HEADER_STYLE := style="margin-top: 14px;"
endif
+# $1 - Relative prefix to COPYRIGHT_URL
+COPYRIGHT_BOTTOM = \
+ Copyright \
+ © 1993, $(COPYRIGHT_YEAR), $(FULL_COMPANY_NAME), \
+ $(COMPANY_ADDRESS).
All rights reserved. \
+ Use is subject to license terms and the \
+ documentation redistribution policy. \
+ $(DRAFT_MARKER_STR)
+
JAVADOC_BOTTOM := \
Report a bug or suggest an enhancement
\
For further API reference and developer documentation see the \
@@ -157,12 +167,7 @@ JAVADOC_BOTTOM := \
of terms, workarounds, and working code examples.
\
Java is a trademark or registered trademark of $(FULL_COMPANY_NAME) in \
the US and other countries.
\
- Copyright \
- © 1993, $(COPYRIGHT_YEAR), $(FULL_COMPANY_NAME), \
- $(COMPANY_ADDRESS).
All rights reserved. \
- Use is subject to license terms and the \
- documentation redistribution policy. \
- $(DRAFT_MARKER_STR)
+ $(call COPYRIGHT_BOTTOM, {@docroot}/../)
JAVADOC_TOP := \