tazbug rev 3
Add the Makefile
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Apr 03 12:07:14 2012 +0200 (2012-04-03) |
parents | 8ec78f34725f |
children | e8324bc38bb5 |
files | Makefile |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/Makefile Tue Apr 03 12:07:14 2012 +0200 1.3 @@ -0,0 +1,55 @@ 1.4 +# Makefile for SliTaz Bugs. 1.5 +# 1.6 + 1.7 +PACKAGE="tazbug" 1.8 +PREFIX?=/usr 1.9 +DESTDIR?= 1.10 +WEB?=/var/www 1.11 +VAR?=/var/lib/slitaz 1.12 +LINGUAS?=fr 1.13 + 1.14 +all: 1.15 + 1.16 +# i18n 1.17 + 1.18 +pot: 1.19 + xgettext -o po/tazbug.pot -L Shell --package-name="SliTaz Bugs" \ 1.20 + ./tazbug ./tazbug-box ./web/bugs.cgi 1.21 + 1.22 +msgmerge: 1.23 + @for l in $(LINGUAS); do \ 1.24 + echo -n "Updating $$l po file."; \ 1.25 + msgmerge -U po/$$l.po po/$(PACKAGE).pot; \ 1.26 + done; 1.27 + 1.28 +msgfmt: 1.29 + @for l in $(LINGUAS); do \ 1.30 + echo "Compiling $$l mo file..."; \ 1.31 + mkdir -p po/mo/$$l/LC_MESSAGES; \ 1.32 + msgfmt -o po/mo/$$l/LC_MESSAGES/pizza.mo po/$$l.po; \ 1.33 + done; 1.34 + 1.35 +# Client install only. Server part is not packaged 1.36 + 1.37 +install: 1.38 + install -m 0777 -d $(DESTDIR)/etc/slitaz 1.39 + install -m 0777 -d $(DESTDIR)$(PREFIX)/bin 1.40 + install -m 0777 -d $(DESTDIR)$(PREFIX)/share/applications 1.41 + install -m 0755 tazbug $(DESTDIR)$(PREFIX)/bin 1.42 + install -m 0755 tazbug-box $(DESTDIR)$(PREFIX)/bin 1.43 + install -m 0644 tazbug.conf $(DESTDIR)/etc/slitaz 1.44 + install -m 0644 data/tazbug.desktop \ 1.45 + $(DESTDIR)$(PREFIX)/share/applications 1.46 + 1.47 +# On SliTaz vhost: make install-server WEB=/home/slitaz/www 1.48 + 1.49 +install-server: 1.50 + install -m 0700 -d $(DESTDIR)$(VAR)/people 1.51 + install -m 0700 -d $(DESTDIR)$(VAR)/auth 1.52 + install -m 0777 -d $(DESTDIR)$(WEB) 1.53 + install -m 0777 -d $(DESTDIR)$(PREFIX)/share/doc/tazbug 1.54 + touch $(DESTDIR)$(VAR)/auth/people 1.55 + chmod 0600 $(DESTDIR)$(VAR)/auth/people 1.56 + cp -a web $(DESTDIR)$(WEB)/bugs 1.57 + cp README $(DESTDIR)$(PREFIX)/share/doc/tazbug 1.58 + chown -R www.www $(DESTDIR)$(VAR)/*