tazbug view Makefile @ rev 84

Move "es_AR" to "es" translations; make pot & msgmerge
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Apr 12 15:12:58 2014 +0300 (2014-04-12)
parents 05ac6fa12843
children 889bf7bc7595
line source
1 # Makefile for SliTaz Bugs.
2 #
4 PACKAGE="tazbug"
5 PREFIX?=/usr
6 DESTDIR?=
7 WEB?=/var/www
8 VAR?=/var/lib/slitaz
9 LINGUAS?=el es fr pl pt_BR ru
11 all:
13 # i18n
15 pot:
16 xgettext -o po/tazbug.pot -L Shell --package-name="SliTaz Bugs" \
17 ./tazbug ./tazbug-box ./web/bugs.cgi
19 msgmerge:
20 @for l in $(LINGUAS); do \
21 echo -n "Updating $$l po file."; \
22 msgmerge -U po/$$l.po po/$(PACKAGE).pot; \
23 done;
25 msgfmt:
26 @for l in $(LINGUAS); do \
27 echo "Compiling $$l mo file..."; \
28 mkdir -p po/mo/$$l/LC_MESSAGES; \
29 msgfmt -o po/mo/$$l/LC_MESSAGES/$(PACKAGE).mo po/$$l.po; \
30 done;
32 # Client install only. Server part is not packaged
34 install:
35 install -m 0777 -d $(DESTDIR)/etc/slitaz
36 install -m 0777 -d $(DESTDIR)$(PREFIX)/bin
37 install -m 0777 -d $(DESTDIR)$(PREFIX)/share/applications
38 install -m 0755 tazbug $(DESTDIR)$(PREFIX)/bin
39 install -m 0755 tazbug-box $(DESTDIR)$(PREFIX)/bin
40 install -m 0644 tazbug.conf $(DESTDIR)/etc/slitaz
41 install -m 0644 data/tazbug.desktop \
42 $(DESTDIR)$(PREFIX)/share/applications
44 # On SliTaz vhost: make install-server WEB=/home/slitaz/www
46 install-server:
47 install -m 0777 -d $(DESTDIR)/etc/slitaz
48 install -m 0700 -d $(DESTDIR)$(VAR)/people
49 install -m 0700 -d $(DESTDIR)$(VAR)/auth
50 install -m 0777 -d $(DESTDIR)$(WEB)/bugs
51 install -m 0644 tazbug.conf $(DESTDIR)/etc/slitaz
52 touch $(DESTDIR)$(VAR)/auth/people
53 chmod 0600 $(DESTDIR)$(VAR)/auth/people
54 cp -a web/* $(DESTDIR)$(WEB)/bugs
55 cp README $(DESTDIR)$(WEB)/bugs
56 chown -R www.www $(DESTDIR)$(VAR)/*
57 chown -R www.www $(DESTDIR)$(WEB)/bugs/bug
59 # Uninstall client
61 uninstall:
62 rm -f $(DESTDIR)$(PREFIX)/bin/tazbug*
63 rm -f $(DESTDIR)$(PREFIX)/share/applications/tazbug*
64 rm -f $(DESTDIR)$(PREFIX)/etc/slitaz/tazbug.conf
66 # Clean source
68 clean:
69 rm -rf po/mo
70 rm -f po/*~