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

updated apulse (0.1.12 -> 0.1.13)
author Hans-G?nter Theisgen
date Tue Jun 28 16:35:11 2022 +0100 (24 months ago)
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 *.*~