`make manual' renamed to manual-en,

and it now only updates the english manual.
This commit is contained in:
Jordà Polo 2007-09-20 08:21:41 +00:00
parent c6795fe30e
commit 10b65f25c8
2 changed files with 10 additions and 4 deletions

View file

@ -199,8 +199,8 @@ endif
endif
if MANUALUPDATE
manual:
@cd doc/manual && make html || exit $?
manual-en:
@cd doc/manual && make manual.en.html || exit $?
endif
# latest graph-includes.pl can be found currently at http://ydirson.free.fr/soft/wesnoth/graphs/

View file

@ -12,9 +12,15 @@ 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 $? )
$(PO4A) $(PO4AOPTS) --no-translations wesnoth-manual.cfg || exit $? )
update-po4a: manual.en.xml
( cd ../../po/wesnoth-manual && \
@ -23,8 +29,8 @@ update-po4a: manual.en.xml
html: update-po4a
@for i in manual.*.xml; do \
lang=$$(echo $$i | sed -e 's/manual\.\([a-zA-Z_@]*\)\.xml/\1/'); \
echo "Generating manual from manual.$$lang.xml..."; \
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