tazirc view Makefile @ rev 22

revision of german messages
author Hans-G?nter Theisgen
date Mon Oct 09 17:11:41 2017 +0100 (20 months ago)
parents 1400d1fecb09
children
line source
1 # Makefile for SliTaz IRC.
2 #
4 PREFIX?=/usr
5 DESTDIR?=
6 LINGUAS?=fr ja pt_BR ru vi
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