diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2010-03-15 11:02:31 +0100 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2010-03-15 11:02:31 +0100 |
commit | b45fb8db8c586fa837a9d1ad0c2247a7e003e51f (patch) | |
tree | 2d3e929086b2dc56f40ad6b075bfbb928d7b4d95 /doc/makefile | |
parent | c176c4d0adad246ac0768f9e2b60aa8e4c56fffb (diff) |
* doc/makefile, doc/*:
- generate subdirectories for building the manpages in on the fly
depending on the po files we have.
Diffstat (limited to 'doc/makefile')
-rw-r--r-- | doc/makefile | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/doc/makefile b/doc/makefile index 6e6186466..93504e23e 100644 --- a/doc/makefile +++ b/doc/makefile @@ -46,9 +46,14 @@ 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\ + 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; \ + done + # it is likely that we have changed the list, so SUBDIRS is incorrect + for dir in $(dir $(wildcard */makefile)); do\ $(MAKE) -C $$dir $@; \ done @@ -70,7 +75,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 +84,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 |