--- 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, \