make/common/Modules.gmk
branchJDK-8200758-branch
changeset 57055 cac1ec6a34ee
parent 57039 98d3963b0b7b
parent 52714 2e52aa822c57
child 57099 9a85a7a076ad
--- a/make/common/Modules.gmk	Mon Dec 03 15:06:33 2018 -0500
+++ b/make/common/Modules.gmk	Mon Dec 03 15:31:49 2018 -0500
@@ -259,6 +259,8 @@
 
 SPEC_SUBDIRS += share/specs
 
+MAN_SUBDIRS += share/man
+
 # Find all module-info.java files for the current build target platform and
 # configuration.
 # Param 1 - Module to find for, set to * for finding all
@@ -317,6 +319,12 @@
     $(strip $(wildcard \
         $(foreach sub, $(SPEC_SUBDIRS), $(addsuffix /$(strip $1)/$(sub), $(TOP_SRC_DIRS)))))
 
+# Find all man dirs for a particular module
+# $1 - Module to find man dirs for
+FindModuleManDirs = \
+    $(strip $(wildcard \
+        $(foreach sub, $(MAN_SUBDIRS), $(addsuffix /$(strip $1)/$(sub), $(TOP_SRC_DIRS)))))
+
 # Construct the complete module source path
 GetModuleSrcPath = \
     $(call PathList, \