wok view yandex-disk/stuff/po/Makefile @ rev 22946
updated imagemagick and imagemagick-dev (7.0.8.33 -> 7.0.9.26)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 28 13:23:56 2020 +0100 (2020-02-28) |
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 *.*~