525 $(eval $(call SetupCopyFiles, COPY_$m, \
526 SRC := $d, \
527 FILES := $(filter $(COPY_SPEC_FILTER), $(call CacheFind, $d)), \
528 DEST := $(DOCS_OUTPUTDIR)/specs/, \
529 )) \
530 $(eval JDK_SPECS_TARGETS += $(COPY_$m)) \
531 ) \
532 ) \
533 )
534
535 ifeq ($(ENABLE_FULL_DOCS), true)
536 # For all markdown files in $module/share/specs directories, convert them to
537 # html.
538
539 GLOBAL_SPECS_DEFAULT_CSS_FILE := $(DOCS_OUTPUTDIR)/resources/jdk-default.css
540
541 $(foreach m, $(ALL_MODULES), \
542 $(eval SPECS_$m := $(call FindModuleSpecsDirs, $m)) \
543 $(foreach d, $(SPECS_$m), \
544 $(if $(filter %.md, $(call CacheFind, $d)), \
545 $(eval $m_$d_NAME := CONVERT_MARKDOWN_$m_$(strip $(call RelativePath, $d, $(TOPDIR)))) \
546 $(eval $(call SetupProcessMarkdown, $($m_$d_NAME), \
547 SRC := $d, \
548 FILES := $(filter %.md, $(call CacheFind, $d)), \
549 DEST := $(DOCS_OUTPUTDIR)/specs/, \
550 CSS := $(GLOBAL_SPECS_DEFAULT_CSS_FILE), \
551 )) \
552 $(eval JDK_SPECS_TARGETS += $($($m_$d_NAME))) \
553 ) \
554 ) \
555 )
556 endif
557
558 # Special treatment for generated documentation
559
560 JDWP_PROTOCOL := $(SUPPORT_OUTPUTDIR)/gensrc/jdk.jdi/jdwp-protocol.html
561 $(eval $(call SetupCopyFiles, COPY_JDWP_PROTOCOL, \
562 FILES := $(JDWP_PROTOCOL), \
563 DEST := $(DOCS_OUTPUTDIR)/specs/jdwp, \
564 ))
565 JDK_SPECS_TARGETS += $(COPY_JDWP_PROTOCOL)
566
567 # Get jvmti.html from the main jvm variant (all variants' jvmti.html are identical).
568 JVMTI_HTML ?= $(HOTSPOT_OUTPUTDIR)/variant-$(JVM_VARIANT_MAIN)/gensrc/jvmtifiles/jvmti.html
569 $(eval $(call SetupCopyFiles, COPY_JVMTI_HTML, \
570 FILES := $(JVMTI_HTML), \
571 DEST := $(DOCS_OUTPUTDIR)/specs, \
572 ))
573 JDK_SPECS_TARGETS += $(COPY_JVMTI_HTML)
574
575 ################################################################################
|
525 $(eval $(call SetupCopyFiles, COPY_$m, \
526 SRC := $d, \
527 FILES := $(filter $(COPY_SPEC_FILTER), $(call CacheFind, $d)), \
528 DEST := $(DOCS_OUTPUTDIR)/specs/, \
529 )) \
530 $(eval JDK_SPECS_TARGETS += $(COPY_$m)) \
531 ) \
532 ) \
533 )
534
535 ifeq ($(ENABLE_FULL_DOCS), true)
536 # For all markdown files in $module/share/specs directories, convert them to
537 # html.
538
539 GLOBAL_SPECS_DEFAULT_CSS_FILE := $(DOCS_OUTPUTDIR)/resources/jdk-default.css
540
541 $(foreach m, $(ALL_MODULES), \
542 $(eval SPECS_$m := $(call FindModuleSpecsDirs, $m)) \
543 $(foreach d, $(SPECS_$m), \
544 $(if $(filter %.md, $(call CacheFind, $d)), \
545 $(eval $m_$d_NAME := SPECS_TO_HTML_$m_$(strip $(call RelativePath, $d, $(TOPDIR)))) \
546 $(eval $(call SetupProcessMarkdown, $($m_$d_NAME), \
547 SRC := $d, \
548 FILES := $(filter %.md, $(call CacheFind, $d)), \
549 DEST := $(DOCS_OUTPUTDIR)/specs/, \
550 CSS := $(GLOBAL_SPECS_DEFAULT_CSS_FILE), \
551 )) \
552 $(eval JDK_SPECS_TARGETS += $($($m_$d_NAME))) \
553 ) \
554 ) \
555 )
556
557 # For all markdown files in $module/share/man directories, convert them to
558 # html.
559 $(foreach m, $(ALL_MODULES), \
560 $(eval MAN_$m := $(call FindModuleManDirs, $m)) \
561 $(foreach d, $(MAN_$m), \
562 $(if $(filter %.md, $(call CacheFind, $d)), \
563 $(eval $m_$d_NAME := MAN_TO_HTML_$m_$(strip $(call RelativePath, $d, $(TOPDIR)))) \
564 $(eval $(call SetupProcessMarkdown, $($m_$d_NAME), \
565 SRC := $d, \
566 FILES := $(filter %.md, $(call CacheFind, $d)), \
567 DEST := $(DOCS_OUTPUTDIR)/specs/man, \
568 CSS := $(GLOBAL_SPECS_DEFAULT_CSS_FILE), \
569 REPLACEMENTS := @@VERSION_SHORT@@ => $(VERSION_SHORT), \
570 )) \
571 $(eval JDK_SPECS_TARGETS += $($($m_$d_NAME))) \
572 ) \
573 ) \
574 )
575
576 # The html generated from markdown also needs the css file
577 JDK_SPECS_TARGETS += $(COPY_GLOBAL_RESOURCES)
578 endif
579
580 # Special treatment for generated documentation
581
582 JDWP_PROTOCOL := $(SUPPORT_OUTPUTDIR)/gensrc/jdk.jdi/jdwp-protocol.html
583 $(eval $(call SetupCopyFiles, COPY_JDWP_PROTOCOL, \
584 FILES := $(JDWP_PROTOCOL), \
585 DEST := $(DOCS_OUTPUTDIR)/specs/jdwp, \
586 ))
587 JDK_SPECS_TARGETS += $(COPY_JDWP_PROTOCOL)
588
589 # Get jvmti.html from the main jvm variant (all variants' jvmti.html are identical).
590 JVMTI_HTML ?= $(HOTSPOT_OUTPUTDIR)/variant-$(JVM_VARIANT_MAIN)/gensrc/jvmtifiles/jvmti.html
591 $(eval $(call SetupCopyFiles, COPY_JVMTI_HTML, \
592 FILES := $(JVMTI_HTML), \
593 DEST := $(DOCS_OUTPUTDIR)/specs, \
594 ))
595 JDK_SPECS_TARGETS += $(COPY_JVMTI_HTML)
596
597 ################################################################################
|