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
veryclean-subdirs:
for dir in $(SUBDIRS); do\
- $(MAKE) -C $$dir veryclean; \
+ rm -rf $$dir; \
done
ifdef PO4A
clean: po4a-clean
-.PHONY: update-po po4a
+.PHONY: update-po po4a stats
update-po:
po4a --previous --no-backups --force --no-translations po4a.conf
po4a:
po4a --previous --no-backups po4a.conf
+
+stats:
+ for i in po/*.po; do echo -n "$$i: "; msgfmt --statistics $$i; done
+
endif
ifdef DOXYGEN