Use pre-defined make variables instead of hardcoded docbook2X and sed commands.
[claws.git] / manual / fr / dist / html / Makefile.am
1 # Copyright 1999-2014 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.
5
6 if MANUAL_HTML
7 EXTRA_DIST=claws-mail-manual.html
8 manualde_DATA=claws-mail-manual.html
9 manualdedir=$(manualdir)/fr
10
11 claws-mail-manual.html: \
12         ../../account.xml \
13         ../../ack.xml \
14         ../../addrbook.xml \
15         ../../advanced.xml \
16         ../../faq.xml \
17         ../../glossary.xml \
18         ../../gpl.xml \
19         ../../handling.xml \
20         ../../intro.xml \
21         ../../keyboard.xml \
22         ../../plugins.xml \
23         ../../starting.xml \
24         ../../claws-mail-manual.xml 
25         -SP_ENCODING=xml $(DOCBOOK2HTML) -u -o . \
26                 ../../claws-mail-manual.xml
27         -mv -f claws-mail-manual.html claws-mail-manual.html.raw
28         -$(SED) 's,^><META,><META http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"><META,' < claws-mail-manual.html.raw > claws-mail-manual.html
29         
30 maintainer-clean:
31         -rm claws-mail-manual.html
32         -rm claws-mail-manual.html.raw
33 endif
34
35 .PHONY: test