tazbug view Makefile @ rev 56
Fix listing last bug: ls is wrong but sort -n work
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Jan 07 19:09:39 2014 +0100 (2014-01-07) |
parents | 4bd5e2d2092b |
children | 3a99fd8a968a |
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_AR 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/*~