summaryrefslogtreecommitdiff
path: root/doc/makefile
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-07-29 16:18:10 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2010-07-29 16:18:10 +0200
commit15240f4b681ca35c669d2b2e6e34f8ee3f6c06d9 (patch)
tree4139050e3c2f00650a0d316c971c4e7b8aba3e58 /doc/makefile
parent34904390bd6901f3de90249938baa0b875873534 (diff)
parent1b8ba3ba050f01db27f1ddc0e5b280b2fccd9fb9 (diff)
merged with the debian-experimental-ma branch
Diffstat (limited to 'doc/makefile')
-rw-r--r--doc/makefile16
1 files changed, 11 insertions, 5 deletions
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