wok annotate tramys-client/stuff/Makefile @ rev 23523

updated python-paste (1.7.2 -> 3.4.0)
author Hans-G?nter Theisgen
date Mon Apr 06 14:01:23 2020 +0100 (2020-04-06)
parents
children
rev   line source
al@17092 1 # Makefile for tramys-client
al@17092 2 #
al@17092 3 LINGUAS?=ru
al@17092 4
al@17092 5 pot:
al@17092 6 xgettext -o po/tramys.pot -L Shell -k_ --package-name=tramys ./tramys2
al@17092 7
al@17092 8 msgmerge:
al@17092 9 @for l in $(LINGUAS); do \
al@17092 10 if [ -f "po/$$l.po" ]; then \
al@17092 11 echo -n "Updating $$l po file."; \
al@17092 12 msgmerge -U po/$$l.po po/tramys.pot ; \
al@17092 13 fi; \
al@17092 14 done
al@17092 15
al@17092 16 msgfmt:
al@17092 17 @for l in $(LINGUAS); do \
al@17092 18 if [ -f "po/$$l.po" ]; then \
al@17092 19 echo -n "Compiling tramys $$l mo file... "; \
al@17092 20 mkdir -p po/mo/$$l/LC_MESSAGES; \
al@17092 21 msgfmt -o po/mo/$$l/LC_MESSAGES/tramys.mo po/$$l.po ; \
al@17092 22 echo "done"; \
al@17092 23 fi; \
al@17092 24 done;
al@17092 25
al@17092 26 clean:
al@17092 27 rm -rf po/mo
al@17092 28 rm -f po/*~
al@17092 29 rm -f po/*.mo
al@17092 30
al@17092 31 help:
al@17092 32 @echo "make [ pot | msgmerge | msgfmt | clean ]"