tazbug view Makefile @ rev 114

Update pot and po files
author Christophe Lincoln <pankso@slitaz.org>
date Sat Feb 11 00:24:25 2017 +0100 (2017-02-11)
parents c228980c50a1
children 4dab1a5b9cb6
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?=de el es fr ja pl pt_BR ru vi zh_CN
11 all:
13 # i18n
15 pot:
16 xgettext -o po/tazbug.pot -L Shell --package-name="SliTaz Bugs" \
17 ./web/bugs.cgi
18 #./tazbug
20 msgmerge:
21 @for l in $(LINGUAS); do \
22 echo -n "Updating $$l po file."; \
23 msgmerge -U po/$$l.po po/$(PACKAGE).pot; \
24 done;
26 msgfmt:
27 @for l in $(LINGUAS); do \
28 echo "Compiling $$l mo file..."; \
29 mkdir -p po/mo/$$l/LC_MESSAGES; \
30 msgfmt -o po/mo/$$l/LC_MESSAGES/$(PACKAGE).mo po/$$l.po; \
31 done;
33 # Client install only. Server part is not packaged
35 install:
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 0644 data/tazbug.desktop \
40 $(DESTDIR)$(PREFIX)/share/applications
42 # On SliTaz vhost: make install-server WEB=/home/slitaz/www
44 install-server:
45 install -m 0777 -d $(DESTDIR)/etc/slitaz
46 install -m 0700 -d $(DESTDIR)$(VAR)/people
47 install -m 0700 -d $(DESTDIR)$(VAR)/auth
48 install -m 0777 -d $(DESTDIR)$(WEB)/bugs
49 install -m 0644 tazbug.conf $(DESTDIR)/etc/slitaz
50 touch $(DESTDIR)$(VAR)/auth/people
51 chmod 0600 $(DESTDIR)$(VAR)/auth/people
52 cp -a web/* $(DESTDIR)$(WEB)/bugs
53 cp README $(DESTDIR)$(WEB)/bugs
54 chown -R www.www $(DESTDIR)$(VAR)/*
55 chown -R www.www $(DESTDIR)$(WEB)/bugs/bug
57 # Uninstall client
59 uninstall:
60 rm -f $(DESTDIR)$(PREFIX)/bin/tazbug*
61 rm -f $(DESTDIR)$(PREFIX)/share/applications/tazbug*
62 rm -f $(DESTDIR)$(PREFIX)/etc/slitaz/tazbug.conf
64 # Clean source
66 clean:
67 rm -rf po/mo
68 rm -f po/*~