summaryrefslogtreecommitdiff
path: root/info/latex2e-help-texinfo-fr/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'info/latex2e-help-texinfo-fr/Makefile')
-rw-r--r--info/latex2e-help-texinfo-fr/Makefile54
1 files changed, 31 insertions, 23 deletions
diff --git a/info/latex2e-help-texinfo-fr/Makefile b/info/latex2e-help-texinfo-fr/Makefile
index 22181fd3d1..224d9d8adf 100644
--- a/info/latex2e-help-texinfo-fr/Makefile
+++ b/info/latex2e-help-texinfo-fr/Makefile
@@ -21,26 +21,16 @@ xref_suffixes := $(xref_suffixes) $(addsuffix s,$(xref_suffixes))
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
-define lang_template
-dist-$(1):=$(manual)-help-texinfo-$(1)
-$(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)
-tex_output+= $$($(1)_tex_output)
-makeinfo_output+= $$($(1)_makeinfo_output)
-endef
-$(foreach lang,$(languages), $(eval $(call lang_template,$(lang))))
-
#
-all_suffixes = dvi pdf $(makeinfo_suffixes)
-all_manuals:=$(foreach lang,$(languages),$($(lang)_manual))
-
+# Go somewhere useful from Top.
+en_texi2html_top = -c TOP_NODE_UP_URL=http://tug.org/texinfohtml/
+es_texi2html_top = -c TOP_NODE_UP_URL=http://tug.org/texinfohtml/
+fr_texi2html_top = -c TOP_NODE_UP_URL=http://mirror.ctan.org/info/latex2e-help-texinfo-fr/
# how to build.
#
@@ -49,13 +39,36 @@ texi2pdf = texi2pdf --batch --tidy --build-dir=$*.t2pdf
#
makeinfo = makeinfo
texi2docbook = $(makeinfo) --docbook
-texi2html = $(makeinfo) --html --no-split $(texi2html_top)
texi2info = $(makeinfo) --no-split
texi2txt = $(makeinfo) --plaintext --no-split
texi2xml = $(makeinfo) --xml
+
+define lang_template
+dist-$(1):=$(manual)-help-texinfo-$(1)
+$(1)_manual:=$$(subst -$(default_language),,$(manual)-$(1))
+$(1)_tex_output := $$(addprefix $$($(1)_manual).,$(tex_suffixes))
+$(1)_makeinfo_output := $$(addprefix $$($(1)_manual).,$(makeinfo_suffixes))
+$(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)
+
+$$($(1)_manual).html: $$($(1)_manual).texi
+ $(makeinfo) --html --no-split $$($(1)_texi2html_top) $$<
+
+latex2e-help-texinfo-tree/$$($(1)_manual)/index.html: $$($(1)_manual).texi
+ $(makeinfo) --html $$($(1)_texi2html_top) $$< -o $$(dir $$@)
+
+endef
+$(foreach lang,$(languages), $(eval $(call lang_template,$(lang))))
+
#
-# Go somewhere useful from Top.
-texi2html_top = -c TOP_NODE_UP_URL=http://tug.org/texinfohtml/
+all_suffixes = dvi pdf $(makeinfo_suffixes) tree
+all_manuals:=$(foreach lang,$(languages),$($(lang)_manual))
$(addsuffix .pdf,$(all_manuals)):%.pdf: %.texi
$(texi2pdf) $<
@@ -64,11 +77,6 @@ $(addsuffix .dvi,$(all_manuals)):%.dvi: %.texi
#
$(addsuffix .dbk,$(all_manuals)):%.dbk: %.texi
$(texi2docbook) -o $@ $<
-$(addsuffix .html,$(all_manuals)):%.html: %.texi
- $(texi2html) $<
-
-$(addsuffix /index.html,$(all_manuals)):%/index.html: %.texi
- $(makeinfo) --html $(texi2html_top) $<
$(addsuffix .info,$(all_manuals)):%.info: %.texi
$(texi2info) $<