make/gensrc/Gensrc-jdk.jlink.gmk
changeset 54824 adb3a3aa2e52
parent 47217 72e3ae9a25eb
child 58908 73bb9c4002cc
--- a/make/gensrc/Gensrc-jdk.jlink.gmk	Thu Apr 25 17:27:37 2019 +0100
+++ b/make/gensrc/Gensrc-jdk.jlink.gmk	Thu Mar 14 14:04:39 2019 +0100
@@ -24,13 +24,17 @@
 #
 
 include GensrcCommonJdk.gmk
+include GensrcProperties.gmk
+include Modules.gmk
 
 ################################################################################
 
-include GensrcProperties.gmk
+# Use wildcard so as to avoid getting non-existing directories back
+JLINK_RESOURCES_DIRS := $(wildcard $(addsuffix /jdk/tools/jlink/resources, \
+    $(call FindModuleSrcDirs, jdk.jlink)))
 
 $(eval $(call SetupCompileProperties, JLINK_PROPERTIES, \
-    SRC_DIRS := $(TOPDIR)/src/jdk.jlink/share/classes/jdk/tools/jlink/resources, \
+    SRC_DIRS := $(JLINK_RESOURCES_DIRS), \
     CLASS := ListResourceBundle, \
 ))