wok annotate yandex-disk/stuff/po/Makefile @ rev 25513

memtest: update sleep()
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 14 15:41:57 2023 +0000 (19 months ago)
parents
children
rev   line source
al@19523 1 # Makefile for yandex-disk-helper
al@19523 2 #
al@19523 3 LINGUAS = ru uk
al@19523 4
al@19523 5 pot:
al@19523 6 xgettext -o yandex-disk-helper.pot -L Shell -k -k_ \
al@19523 7 --package-name="Yandex.Disk helper" \
al@19523 8 ../usr/bin/yandex-disk-helper \
al@19523 9 ../usr/libexec/yandex-disk/publish \
al@19523 10 ../usr/libexec/yandex-disk/status \
al@19523 11 ../usr/libexec/yandex-disk/unpublish
al@19523 12
al@19523 13 msgmerge:
al@19523 14 @for l in $(LINGUAS); do \
al@19523 15 if [ -f "$$l.po" ]; then \
al@19523 16 echo "Updating $$l po file."; \
al@19523 17 msgmerge -U $$l.po $$p.pot; \
al@19523 18 fi; \
al@19523 19 done;
al@19523 20
al@19523 21 msgfmt:
al@19523 22 @for l in $(LINGUAS); do \
al@19523 23 if [ -f "$$l.po" ]; then \
al@19523 24 echo -e "Compiling $$l mo file...\n"; \
al@19523 25 mkdir -p mo/$$l/LC_MESSAGES; \
al@19523 26 msgfmt -o mo/$$l/LC_MESSAGES/yandex-disk-helper.mo $$l.po; \
al@19523 27 fi; \
al@19523 28 done;
al@19523 29
al@19523 30 install: msgfmt
al@19523 31 mkdir -p $(DESTDIR)/usr/share/locale
al@19523 32 cp -a mo/* $(DESTDIR)/usr/share/locale
al@19523 33
al@19523 34 clean:
al@19523 35 rm -rf mo
al@19523 36 rm -f *.mo
al@19523 37 rm -f *.*~