tazirc view Makefile @ rev 15
Add ru.po
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Apr 20 13:49:58 2016 +0300 (2016-04-20) |
parents | c89875017506 |
children | 1400d1fecb09 |
line source
1 # Makefile for SliTaz IRC.
2 #
4 PREFIX?=/usr
5 DESTDIR?=
6 LINGUAS?=fr pt_BR ru
8 VERSION=1.0
10 all: msgfmt
12 # i18n.
14 pot:
15 xgettext -o po/tazirc.pot -L Shell --package-name="TazIRC" \
16 --package-version="$(VERSION)" ./tazirc ./tazirc-lb
18 msgmerge:
19 @for l in $(LINGUAS); do \
20 if [ -f "po/$$l.po" ]; then \
21 echo -n "Updating $$l po file."; \
22 msgmerge -U po/$$l.po po/tazirc.pot ; \
23 fi;\
24 done;
26 msgfmt:
27 @for l in $(LINGUAS); do \
28 if [ -f "po/$$l.po" ]; then \
29 echo "Compiling TazIRC $$l mo file..."; \
30 mkdir -p po/mo/$$l/LC_MESSAGES; \
31 msgfmt -o po/mo/$$l/LC_MESSAGES/tazirc.mo po/$$l.po ; \
32 fi;\
33 done;
35 # Install
37 install:
38 install -m 0755 -d $(DESTDIR)$(PREFIX)/bin
39 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/applications
40 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/locale
41 install -m 0755 tazirc $(DESTDIR)$(PREFIX)/bin
42 install -m 0755 tazirc-lb $(DESTDIR)$(PREFIX)/bin
43 install -m 0644 data/*.desktop $(DESTDIR)$(PREFIX)/share/applications
44 cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale
46 # Uninstall
48 uninstall:
49 rm -f $(DESTDIR)$(PREFIX)/bin/tazirc*
50 rm -f $(DESTDIR)$(PREFIX)/share/applications/tazirc*
51 rm -rf $(DESTDIR)$(PREFIX)/share/locale/*/LC_MESSAGES/tazirc.mo
53 # Clean
55 clean:
56 rm -rf po/*~
57 rm -rf po/mo