--- old/make/common/Modules.gmk 2018-11-27 11:21:31.457920417 +0100 +++ new/make/common/Modules.gmk 2018-11-27 11:21:31.109920419 +0100 @@ -247,6 +247,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 @@ -305,6 +307,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, \