Use pre-defined make variables instead of hardcoded docbook2X and sed commands.
[claws.git] / manual / fr / dist / html / Makefile.am
index 0a0498131d10d27b9058cef8f14176fab63c8ac3..e48304be4bc835a66f9907e5afe293ff6aa08386 100644 (file)
@@ -22,10 +22,10 @@ claws-mail-manual.html: \
        ../../plugins.xml \
        ../../starting.xml \
        ../../claws-mail-manual.xml 
-       -env SP_ENCODING=xml docbook2html -u -o . \
+       -SP_ENCODING=xml $(DOCBOOK2HTML) -u -o . \
                ../../claws-mail-manual.xml
-       -mv claws-mail-manual.html claws-mail-manual.html.raw
-       -sed 's,^><META,><META http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"><META,' < claws-mail-manual.html.raw > claws-mail-manual.html
+       -mv -f claws-mail-manual.html claws-mail-manual.html.raw
+       -$(SED) 's,^><META,><META http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"><META,' < claws-mail-manual.html.raw > claws-mail-manual.html
        
 maintainer-clean:
        -rm claws-mail-manual.html