< prev index next >

make/CompileToolsJdk.gmk

Print this page




  73 
  74 $(eval $(call SetupJavaCompilation, COMPILE_DEPEND, \
  75     SETUP := GENERATE_OLDBYTECODE, \
  76     SRC := $(TOPDIR)/make/jdk/src/classes, \
  77     INCLUDES := build/tools/depend, \
  78     BIN := $(BUILDTOOLS_OUTPUTDIR)/depend, \
  79 ))
  80 
  81 DEPEND_SERVICE_PROVIDER := $(BUILDTOOLS_OUTPUTDIR)/depend/META-INF/services/com.sun.source.util.Plugin
  82 
  83 $(DEPEND_SERVICE_PROVIDER):
  84         $(call MakeDir, $(BUILDTOOLS_OUTPUTDIR)/depend/META-INF/services)
  85         $(ECHO) build.tools.depend.Depend > $@
  86 
  87 TARGETS += $(COMPILE_DEPEND) $(DEPEND_SERVICE_PROVIDER)
  88 
  89 ################################################################################
  90 
  91 # To be able to call the javascript filter when generating man pages using
  92 # pandoc, we need to create this executable wrapper script.
  93 ifeq ($(ENABLE_PANDOC), true)
  94   # PANDOC_TROFF_MANPAGE_FILTER is duplicated for export in ToolsJdk.gmk.
  95   PANDOC_TROFF_MANPAGE_FILTER := \
  96       $(BUILDTOOLS_OUTPUTDIR)/manpages/pandoc-troff-manpage-filter
  97   PANDOC_TROFF_MANPAGE_FILTER_SETUP := \
  98       $(BUILDTOOLS_OUTPUTDIR)/manpages/_pandoc_troff_manpage_filter_setup.marker
  99 
 100   # Create a usable instance of the wrapper script that calls the pandoc filter
 101   # (which is written in javascript).
 102   $(eval $(call SetupTextFileProcessing, CREATE_PANDOC_TROFF_MANPAGE_FILTER, \
 103       SOURCE_FILES := $(TOPDIR)/make/scripts/pandoc-troff-manpage-filter.sh.template, \
 104       OUTPUT_FILE := $(PANDOC_TROFF_MANPAGE_FILTER), \
 105       REPLACEMENTS := \
 106           @@BOOT_JDK@@ => $(BOOT_JDK) ; \
 107           @@TOPDIR@@ => $(TOPDIR) ; \
 108           @@JJS_FLAGS@@ => $(addprefix -J, $(JAVA_FLAGS_SMALL)), \
 109   ))
 110 
 111   # Created script must be made executable
 112   $(PANDOC_TROFF_MANPAGE_FILTER_SETUP): $(CREATE_PANDOC_TROFF_MANPAGE_FILTER)
 113         $(CHMOD) a+rx $(PANDOC_TROFF_MANPAGE_FILTER)
 114         $(TOUCH) $@
 115 
 116   TARGETS += $(PANDOC_TROFF_MANPAGE_FILTER_SETUP)
 117 
 118   # PANDOC_HTML_MANPAGE_FILTER is duplicated for export in ToolsJdk.gmk.
 119   PANDOC_HTML_MANPAGE_FILTER := \
 120       $(BUILDTOOLS_OUTPUTDIR)/manpages/pandoc-html-manpage-filter
 121   PANDOC_HTML_MANPAGE_FILTER_SETUP := \
 122       $(BUILDTOOLS_OUTPUTDIR)/manpages/_pandoc_html_manpage_filter_setup.marker
 123 
 124   # Create a usable instance of the wrapper script that calls the pandoc filter
 125   # (which is written in javascript).
 126   $(eval $(call SetupTextFileProcessing, CREATE_PANDOC_HTML_MANPAGE_FILTER, \
 127       SOURCE_FILES := $(TOPDIR)/make/scripts/pandoc-html-manpage-filter.sh.template, \
 128       OUTPUT_FILE := $(PANDOC_HTML_MANPAGE_FILTER), \
 129       REPLACEMENTS := \
 130           @@BOOT_JDK@@ => $(BOOT_JDK) ; \
 131           @@TOPDIR@@ => $(TOPDIR) ; \
 132           @@JJS_FLAGS@@ => $(addprefix -J, $(JAVA_FLAGS_SMALL)), \
 133   ))
 134 
 135   # Created script must be made executable
 136   $(PANDOC_HTML_MANPAGE_FILTER_SETUP): $(CREATE_PANDOC_HTML_MANPAGE_FILTER)
 137         $(CHMOD) a+rx $(PANDOC_HTML_MANPAGE_FILTER)
 138         $(TOUCH) $@
 139 
 140   TARGETS += $(PANDOC_HTML_MANPAGE_FILTER_SETUP)
 141 endif
 142 
 143 all: $(TARGETS)


  73 
  74 $(eval $(call SetupJavaCompilation, COMPILE_DEPEND, \
  75     SETUP := GENERATE_OLDBYTECODE, \
  76     SRC := $(TOPDIR)/make/jdk/src/classes, \
  77     INCLUDES := build/tools/depend, \
  78     BIN := $(BUILDTOOLS_OUTPUTDIR)/depend, \
  79 ))
  80 
  81 DEPEND_SERVICE_PROVIDER := $(BUILDTOOLS_OUTPUTDIR)/depend/META-INF/services/com.sun.source.util.Plugin
  82 
  83 $(DEPEND_SERVICE_PROVIDER):
  84         $(call MakeDir, $(BUILDTOOLS_OUTPUTDIR)/depend/META-INF/services)
  85         $(ECHO) build.tools.depend.Depend > $@
  86 
  87 TARGETS += $(COMPILE_DEPEND) $(DEPEND_SERVICE_PROVIDER)
  88 
  89 ################################################################################
  90 
  91 # To be able to call the javascript filter when generating man pages using
  92 # pandoc, we need to create this executable wrapper script.
  93 ifneq ($(PANDOC), )
  94   # PANDOC_FILTER is duplicated for export in ToolsJdk.gmk.
  95   PANDOC_FILTER := $(BUILDTOOLS_OUTPUTDIR)/manpages/pandoc-manpage-filter
  96   PANDOC_FILTER_SETUP := $(BUILDTOOLS_OUTPUTDIR)/manpages/_pandoc_filter_setup.marker


  97 
  98   # Create a usable instance of the wrapper script that calls the pandoc filter
  99   # (which is written in javascript).
 100   $(eval $(call SetupTextFileProcessing, CREATE_PANDOC_FILTER, \
 101       SOURCE_FILES := $(TOPDIR)/make/scripts/pandoc-manpage-filter.sh.template, \
 102       OUTPUT_FILE := $(PANDOC_FILTER), \
 103       REPLACEMENTS := \
 104           @@BOOT_JDK@@ => $(BOOT_JDK) ; \
 105           @@TOPDIR@@ => $(TOPDIR) ; \
 106           @@JJS_FLAGS@@ => $(addprefix -J, $(JAVA_FLAGS_SMALL)), \
 107   ))
 108 
 109   # Created script must be made executable
 110   $(PANDOC_FILTER_SETUP): $(CREATE_PANDOC_FILTER)
 111         $(CHMOD) a+rx $(PANDOC_FILTER)
 112         $(TOUCH) $@
 113 
 114   TARGETS += $(PANDOC_FILTER_SETUP)
























 115 endif
 116 
 117 all: $(TARGETS)
< prev index next >