make/common/Modules.gmk
branchihse-manpages-branch
changeset 56891 78ed9c424877
parent 51030 33be1da67b11
child 57004 f43f68ae83ed
--- a/make/common/Modules.gmk	Tue Sep 18 14:13:21 2018 +0200
+++ b/make/common/Modules.gmk	Tue Sep 18 14:20:24 2018 +0200
@@ -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, \