wok view yandex-disk/stuff/po/Makefile @ rev 20505

partclone 0.2.89 -> 0.2.70: dpkg-architecture not used here
author Erkan Yilmaz <erkan@slitaz.org>
date Tue Oct 30 11:23:14 2018 +0000 (2018-10-30)
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 *.*~