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

Up firefox-official (104.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Sep 04 18:56:05 2022 +0000 (22 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 *.*~