8179658: SetupProcessMarkdown creates long file names
authorihse
Mon, 08 May 2017 08:46:00 +0200
changeset 44989 a9bd528e3014
parent 44988 18fa47ab765d
child 44990 db3606f423a3
8179658: SetupProcessMarkdown creates long file names Reviewed-by: tbell, erikj
make/Javadoc.gmk
--- a/make/Javadoc.gmk	Fri May 05 13:56:32 2017 +0200
+++ b/make/Javadoc.gmk	Mon May 08 08:46:00 2017 +0200
@@ -390,14 +390,14 @@
     $(eval SPECS_$m := $(call FindModuleSpecsDirs, $m)) \
     $(foreach d, $(SPECS_$m), \
       $(if $(filter %.md, $(call CacheFind, $d)), \
-        $(eval $(call SetupProcessMarkdown, CONVERT_MARKDOWN_$m_$d, \
+        $(eval $(call SetupProcessMarkdown, CONVERT_MARKDOWN_$m_$(patsubst $(TOPDIR)/%,%,$d), \
             SRC := $d, \
             FILES := $(filter %.md, $(call CacheFind, $d)), \
             DEST := $(JAVADOC_OUTPUTDIR)/specs/, \
             CSS := $(GLOBAL_SPECS_DEFAULT_CSS_FILE), \
         )) \
       ) \
-      $(eval JDK_SPECS_TARGETS += $(CONVERT_MARKDOWN_$m_$d)) \
+      $(eval JDK_SPECS_TARGETS += $(CONVERT_MARKDOWN_$m_$(patsubst $(TOPDIR)/%,%,$d))) \
     ) \
   )
 endif