[latexrefman-commits] [SCM] latexrefman updated: r876 - trunk

vincentb1 at gnu.org.ua vincentb1 at gnu.org.ua
Wed Dec 23 19:44:52 CET 2020


Author: vincentb1
Date: 2020-12-23 20:44:52 +0200 (Wed, 23 Dec 2020)
New Revision: 876

Modified:
   trunk/Makefile.1
Log:
Add target frtree to generate help tree for French.



Modified: trunk/Makefile.1
===================================================================
--- trunk/Makefile.1	2020-12-23 18:04:02 UTC (rev 875)
+++ trunk/Makefile.1	2020-12-23 18:44:52 UTC (rev 876)
@@ -21,7 +21,7 @@
 xref_suffixes := aux log toc $(xref_suffixes)
 tex_suffixes = dvi pdf
 makeinfo_suffixes = dbk html info txt xml
-suffixes=$(tex_suffixes) $(makeinfo_suffixes)
+suffixes=$(tex_suffixes) $(makeinfo_suffixes) tree
 en_longname:=english
 es_longname:=spanish
 fr_longname:=french
@@ -31,14 +31,19 @@
 $(1)_manual:=$$(subst -$(default_language),,$(manual)-$(1))
 $(1)_tex_output := $$(addprefix $$($(1)_manual).,$(tex_suffixes))
 $(1)_makeinfo_output := $$(addprefix $$($(1)_manual).,$(makeinfo_suffixes))
-$(1)_output := $$($(1)_tex_output) $$($(1)_makeinfo_output)
+$(1)_tree_output := latex2e-help-texinfo-tree/$$($(1)_manual)/index.html
+$(1)_output := $$($(1)_tex_output) $$($(1)_makeinfo_output) $$($(1)_tree_output)
 tex_output+= $$($(1)_tex_output)
 makeinfo_output+= $$($(1)_makeinfo_output)
+tree_output+= $$($(1)_tree_output)
+
+.PHONY: $(1)tree
+$(1)tree: $$($(1)_tree_output)
 endef
 $(foreach lang,$(languages), $(eval $(call lang_template,$(lang))))
 
 #
-all_suffixes = dvi pdf $(makeinfo_suffixes)
+all_suffixes = dvi pdf $(makeinfo_suffixes) tree
 all_manuals:=$(foreach lang,$(languages),$($(lang)_manual)) 
 
 
@@ -67,8 +72,8 @@
 $(addsuffix .html,$(all_manuals)):%.html: %.texi
 	$(texi2html) $<
 
-$(addsuffix /index.html,$(all_manuals)):%/index.html: %.texi
-	$(makeinfo) --html $(texi2html_top) $<
+$(patsubst %,latex2e-help-texinfo-tree/%/index.html,$(all_manuals)):latex2e-help-texinfo-tree/%/index.html: %.texi
+	$(makeinfo) --html $(texi2html_top) $< -o $(dir $@)
 
 $(addsuffix .info,$(all_manuals)):%.info: %.texi
 	$(texi2info) $<



More information about the latexrefman-commits mailing list.