wok-current diff tramys-client/stuff/Makefile @ rev 19610

busybox: replace 1.25 stuff by 1.26
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jan 08 14:40:47 2017 +0100 (2017-01-08)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tramys-client/stuff/Makefile	Sun Jan 08 14:40:47 2017 +0100
     1.3 @@ -0,0 +1,32 @@
     1.4 +# Makefile for tramys-client
     1.5 +#
     1.6 +LINGUAS?=ru
     1.7 +
     1.8 +pot:
     1.9 +	xgettext -o po/tramys.pot -L Shell -k_ --package-name=tramys ./tramys2
    1.10 +
    1.11 +msgmerge:
    1.12 +	@for l in $(LINGUAS); do \
    1.13 +		if [ -f "po/$$l.po" ]; then \
    1.14 +			echo -n "Updating $$l po file."; \
    1.15 +			msgmerge -U po/$$l.po po/tramys.pot ; \
    1.16 +		fi; \
    1.17 +	done
    1.18 +
    1.19 +msgfmt:
    1.20 +	@for l in $(LINGUAS); do \
    1.21 +		if [ -f "po/$$l.po" ]; then \
    1.22 +			echo -n "Compiling tramys $$l mo file... "; \
    1.23 +			mkdir -p po/mo/$$l/LC_MESSAGES; \
    1.24 +			msgfmt -o po/mo/$$l/LC_MESSAGES/tramys.mo po/$$l.po ; \
    1.25 +			echo "done"; \
    1.26 +		fi; \
    1.27 +	done;
    1.28 +
    1.29 +clean:
    1.30 +	rm -rf po/mo
    1.31 +	rm -f po/*~
    1.32 +	rm -f po/*.mo
    1.33 +
    1.34 +help:
    1.35 +	@echo "make [ pot | msgmerge | msgfmt | clean ]"