wesnoth/doc/manual/Makefile.am
Nils Kneuper 46a5bf7462 remove creation of html files from package creation
I do it anyway before starting the packaging and it takes ages to complete...
2008-06-20 10:25:05 +00:00

43 lines
1.2 KiB
Makefile

if MANUALUPDATE
XSLTOPTS = --nonet \
--stringparam callout.graphics 0 \
--stringparam navig.graphics 0 \
--stringparam admon.textlabel 1 \
--stringparam admon.graphics 0 \
--stringparam html.stylesheet "./styles/manual.css"
PO4AOPTS = --no-backups --copyright-holder "Wesnoth Development Team"
manual.en.xml: manual.txt
$(ASCIIDOC) -b docbook -d book -n -a toc -o manual.en.xml manual.txt
$(DOS2UNIX) manual.en.xml
manual.en.html: manual.en.xml
@rm -f manual.en.html; \
echo "Generating manual.en.html..."; \
$(XSLTPROC) $(XSLTOPTS) "/etc/asciidoc/docbook-xsl/xhtml.xsl" \
"manual.en.xml" > "manual.en.html";
update-po: manual.en.xml
( cd ../../po/wesnoth-manual && \
$(PO4A) $(PO4AOPTS) --no-translations wesnoth-manual.cfg || exit $? )
update-po4a: manual.en.xml
( cd ../../po/wesnoth-manual && \
$(PO4A) $(PO4AOPTS) wesnoth-manual.cfg || exit $? )
html: update-po4a
@for i in manual.*.xml; do \
lang=$$(echo $$i | sed -e 's/manual\.\([a-zA-Z_@]*\)\.xml/\1/'); \
rm -f manual.$$lang.html; \
echo "Generating manual from manual.$$lang.xml..."; \
$(XSLTPROC) $(XSLTOPTS) "/etc/asciidoc/docbook-xsl/xhtml.xsl" \
"manual.$$lang.xml" > "manual.$$lang.html"; \
done
dist-hook:
clean-local:
rm -f *.xml
endif