tazbug view Makefile @ rev 48

Add online signup, well tested with TinyCM
author Christophe Lincoln <pankso@slitaz.org>
date Sat Jan 04 21:46:07 2014 +0100 (2014-01-04)
parents a6196911fcd8
children 05ac6fa12843
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)$(PREFIX)/share/doc/tazbug
51 install -m 0777 -d $(DESTDIR)$(WEB)/bugs
52 install -m 0644 tazbug.conf $(DESTDIR)/etc/slitaz
53 touch $(DESTDIR)$(VAR)/auth/people
54 chmod 0600 $(DESTDIR)$(VAR)/auth/people
55 cp -a web/* $(DESTDIR)$(WEB)/bugs
56 cp README $(DESTDIR)$(PREFIX)/share/doc/tazbug
57 chown -R www.www $(DESTDIR)$(VAR)/*
58 chown -R www.www $(DESTDIR)$(WEB)/bugs/bug
60 # Uninstall client
62 uninstall:
63 rm -f $(DESTDIR)$(PREFIX)/bin/tazbug*
64 rm -f $(DESTDIR)$(PREFIX)/share/applications/tazbug*
65 rm -f $(DESTDIR)$(PREFIX)/etc/slitaz/tazbug.conf
67 # Clean source
69 clean:
70 rm -rf po/mo
71 rm -f po/*~