X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/43be0ac4b37f3a82ae4a16e473c3d8e44637ce1b..37254316e0b1c3b0c067cf1962d0882d70a38c12:/doc/makefile diff --git a/doc/makefile b/doc/makefile index 6fb604e4e..8a889c94c 100644 --- a/doc/makefile +++ b/doc/makefile @@ -8,7 +8,7 @@ include ../buildlib/defaults.mak # Debian Doc SGML Documents SOURCE = $(wildcard *.sgml) -DEBIANDOC_HTML_OPTIONS=-l en +DEBIANDOC_HTML_OPTIONS=-l en.UTF-8 include $(DEBIANDOC_H) # Do not use XMLTO, build the manpages directly with XSLTPROC @@ -46,10 +46,12 @@ TO = $(DOC) TARGET = binary include $(COPY_H) -#.PHONY: headers library clean veryclean all binary program doc doc.pt_BR doc.fr +.PHONY: clean clean-subdirs veryclean veryclean-subdirs all binary doc doc: - for dir in $(SUBDIRS); do\ - $(MAKE) -C $$dir $@; \ + for i in $(shell ls po/*.po | sed -r 's#po/([a-z]+[A-Z_]*).po#\1#'); do \ + test -d $$i || mkdir $$i; \ + test -f $$i/makefile || sed "s#@@LANG@@#$$i#" lang.makefile > $$i/makefile; \ + $(MAKE) -C $$i $@; \ done clean: clean-subdirs @@ -62,7 +64,7 @@ clean-subdirs: veryclean-subdirs: for dir in $(SUBDIRS); do\ - $(MAKE) -C $$dir veryclean; \ + rm -rf $$dir; \ done ifdef PO4A @@ -70,7 +72,7 @@ doc: po4a clean: po4a-clean -.PHONY: update-po po4a +.PHONY: update-po po4a stats update-po: po4a --previous --no-backups --force --no-translations po4a.conf @@ -79,6 +81,10 @@ po4a-clean: po4a: po4a --previous --no-backups po4a.conf + +stats: + for i in po/*.po; do echo -n "$$i: "; msgfmt --statistics $$i; done + endif ifdef DOXYGEN