Makefile 451 B

123456789101112131415161718192021
  1. # Makefile providing various facilities to manage translations
  2. TEMPLATE = editor.pot
  3. POFILES = $(wildcard *.po)
  4. LANGS = $(POFILES:%.po=%)
  5. all: update merge
  6. update:
  7. @cd ../..; python2 editor/translations/extract.py
  8. merge:
  9. @for po in $(POFILES); do \
  10. echo -e "\nMerging $$po..."; \
  11. msgmerge -w 79 -C $$po $$po $(TEMPLATE) > "$$po".new; \
  12. mv -f "$$po".new $$po; \
  13. done
  14. check:
  15. @for po in $(POFILES); do msgfmt -c $$po -o /dev/null; done