tazbug view Makefile @ rev 7
Add data/tazbug.desktop
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Apr 03 12:09:44 2012 +0200 (2012-04-03) |
parents | |
children | 5adb233a979b |
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?=fr
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/pizza.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 0700 -d $(DESTDIR)$(VAR)/people
48 install -m 0700 -d $(DESTDIR)$(VAR)/auth
49 install -m 0777 -d $(DESTDIR)$(WEB)
50 install -m 0777 -d $(DESTDIR)$(PREFIX)/share/doc/tazbug
51 touch $(DESTDIR)$(VAR)/auth/people
52 chmod 0600 $(DESTDIR)$(VAR)/auth/people
53 cp -a web $(DESTDIR)$(WEB)/bugs
54 cp README $(DESTDIR)$(PREFIX)/share/doc/tazbug
55 chown -R www.www $(DESTDIR)$(VAR)/*