Added a `make manual' target.

This commit is contained in:
Jordà Polo 2007-09-16 08:39:00 +00:00
parent cdd6bb06c0
commit f97d1cfc94
2 changed files with 8 additions and 1 deletions

View file

@ -172,6 +172,11 @@ if MANUALUPDATE
endif
endif
if MANUALUPDATE
manual:
@cd doc/manual && make html || exit $?
endif
# latest graph-includes.pl can be found currently at http://ydirson.free.fr/soft/wesnoth/graphs/
wesnoth-deps.dot:
PERL5LIB=$(top_srcdir) graph-includes -verbose --class wesnoth --consolidate 1-1 \

View file

@ -22,7 +22,7 @@ update-po4a: manual.en.xml
( cd ../../po/wesnoth-manual && \
$(PO4A) $(PO4AOPTS) wesnoth-manual.cfg || exit $? )
dist-hook: update-po4a
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..."; \
@ -31,6 +31,8 @@ dist-hook: update-po4a
"manual.$$lang.xml" > "manual.$$lang.html"; \
done
dist-hook: html
clean-local:
rm -f *.xml
endif