X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/699ec9460d846c6cd749882f3fc3e69a7ecaf14b..a02f24e046d58b723a9283211cb558605a024bdf:/doc/makefile?ds=sidebyside diff --git a/doc/makefile b/doc/makefile index 6e6186466..8a889c94c 100644 --- a/doc/makefile +++ b/doc/makefile @@ -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