1 # Copyright 1999-2021 the Claws Mail team.
2 # This file is part of Claws Mail package, and distributed under the
3 # terms of the General Public License version 3 (or later).
4 # See COPYING file for license details.
7 EXTRA_DIST=dtd $(LANGS)
11 HTML_MANUALS=$(foreach lang,$(LANGS),$(lang)/claws-mail-manual.html)
12 PDF_MANUALS=$(foreach lang,$(LANGS),$(lang)/claws-mail-manual.pdf)
13 PS_MANUALS=$(foreach lang,$(LANGS),$(lang)/claws-mail-manual.ps)
14 TXT_MANUALS=$(foreach lang,$(LANGS),$(lang)/claws-mail-manual.txt)
17 $(1)/claws-mail-manual.xml \
31 define HTML_template =
32 $(1)/claws-mail-manual.$(2): $(manual_deps)
34 SP_ENCODING=xml $(DOCBOOK2HTML) -u -o $(1)/$(2) $$<
35 $(SED) 's,^><META,><META http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"><META,' $(1)/$(2)/claws-mail-manual.$(2) > $$@
39 define BASE_template =
40 $(1)/claws-mail-manual.$(2): $(manual_deps)
43 mv -f $(1)/$(2)/claws-mail-manual.$(2) $$@
48 nobase_dist_manualhtml_DATA=$(HTML_MANUALS)
49 manualhtmldir=$(manualdir)
50 $(foreach lang,$(LANGS),$(eval $(call HTML_template,$(lang),html)))
54 nobase_dist_manualpdf_DATA=$(PDF_MANUALS)
55 manualpdfdir=$(manualdir)
56 $(foreach lang,$(LANGS),$(eval $(call BASE_template,$(lang),pdf,$(DOCBOOK2PDF))))
60 nobase_dist_manualps_DATA=$(PS_MANUALS)
61 manualpsdir=$(manualdir)
62 $(foreach lang,$(LANGS),$(eval $(call BASE_template,$(lang),ps,$(DOCBOOK2PS))))
66 nobase_dist_manualtxt_DATA=$(TXT_MANUALS)
67 manualtxtdir=$(manualdir)
68 $(foreach lang,$(LANGS),$(eval $(call BASE_template,$(lang),txt,$(DOCBOOK2TXT))))
72 -rm -f $(HTML_MANUALS) $(PDF_MANUALS) $(PS_MANUALS) $(TXT_MANUALS)