wok-6.x view yandex-disk/stuff/po/Makefile @ rev 19523
Add yandex-disk (with custom desktop integration)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Nov 27 18:29:04 2016 +0200 (2016-11-27) |
parents | |
children |
line source
1 # Makefile for yandex-disk-helper
2 #
3 LINGUAS = ru uk
5 pot:
6 xgettext -o yandex-disk-helper.pot -L Shell -k -k_ \
7 --package-name="Yandex.Disk helper" \
8 ../usr/bin/yandex-disk-helper \
9 ../usr/libexec/yandex-disk/publish \
10 ../usr/libexec/yandex-disk/status \
11 ../usr/libexec/yandex-disk/unpublish
13 msgmerge:
14 @for l in $(LINGUAS); do \
15 if [ -f "$$l.po" ]; then \
16 echo "Updating $$l po file."; \
17 msgmerge -U $$l.po $$p.pot; \
18 fi; \
19 done;
21 msgfmt:
22 @for l in $(LINGUAS); do \
23 if [ -f "$$l.po" ]; then \
24 echo -e "Compiling $$l mo file...\n"; \
25 mkdir -p mo/$$l/LC_MESSAGES; \
26 msgfmt -o mo/$$l/LC_MESSAGES/yandex-disk-helper.mo $$l.po; \
27 fi; \
28 done;
30 install: msgfmt
31 mkdir -p $(DESTDIR)/usr/share/locale
32 cp -a mo/* $(DESTDIR)/usr/share/locale
34 clean:
35 rm -rf mo
36 rm -f *.mo
37 rm -f *.*~