tazbug annotate 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 |
rev | line source |
---|---|
pankso@3 | 1 # Makefile for SliTaz Bugs. |
pankso@3 | 2 # |
pankso@3 | 3 |
pankso@3 | 4 PACKAGE="tazbug" |
pankso@3 | 5 PREFIX?=/usr |
pankso@3 | 6 DESTDIR?= |
pankso@3 | 7 WEB?=/var/www |
pankso@3 | 8 VAR?=/var/lib/slitaz |
pankso@3 | 9 LINGUAS?=fr |
pankso@3 | 10 |
pankso@3 | 11 all: |
pankso@3 | 12 |
pankso@3 | 13 # i18n |
pankso@3 | 14 |
pankso@3 | 15 pot: |
pankso@3 | 16 xgettext -o po/tazbug.pot -L Shell --package-name="SliTaz Bugs" \ |
pankso@3 | 17 ./tazbug ./tazbug-box ./web/bugs.cgi |
pankso@3 | 18 |
pankso@3 | 19 msgmerge: |
pankso@3 | 20 @for l in $(LINGUAS); do \ |
pankso@3 | 21 echo -n "Updating $$l po file."; \ |
pankso@3 | 22 msgmerge -U po/$$l.po po/$(PACKAGE).pot; \ |
pankso@3 | 23 done; |
pankso@3 | 24 |
pankso@3 | 25 msgfmt: |
pankso@3 | 26 @for l in $(LINGUAS); do \ |
pankso@3 | 27 echo "Compiling $$l mo file..."; \ |
pankso@3 | 28 mkdir -p po/mo/$$l/LC_MESSAGES; \ |
pankso@3 | 29 msgfmt -o po/mo/$$l/LC_MESSAGES/pizza.mo po/$$l.po; \ |
pankso@3 | 30 done; |
pankso@3 | 31 |
pankso@3 | 32 # Client install only. Server part is not packaged |
pankso@3 | 33 |
pankso@3 | 34 install: |
pankso@3 | 35 install -m 0777 -d $(DESTDIR)/etc/slitaz |
pankso@3 | 36 install -m 0777 -d $(DESTDIR)$(PREFIX)/bin |
pankso@3 | 37 install -m 0777 -d $(DESTDIR)$(PREFIX)/share/applications |
pankso@3 | 38 install -m 0755 tazbug $(DESTDIR)$(PREFIX)/bin |
pankso@3 | 39 install -m 0755 tazbug-box $(DESTDIR)$(PREFIX)/bin |
pankso@3 | 40 install -m 0644 tazbug.conf $(DESTDIR)/etc/slitaz |
pankso@3 | 41 install -m 0644 data/tazbug.desktop \ |
pankso@3 | 42 $(DESTDIR)$(PREFIX)/share/applications |
pankso@3 | 43 |
pankso@3 | 44 # On SliTaz vhost: make install-server WEB=/home/slitaz/www |
pankso@3 | 45 |
pankso@3 | 46 install-server: |
pankso@3 | 47 install -m 0700 -d $(DESTDIR)$(VAR)/people |
pankso@3 | 48 install -m 0700 -d $(DESTDIR)$(VAR)/auth |
pankso@3 | 49 install -m 0777 -d $(DESTDIR)$(WEB) |
pankso@3 | 50 install -m 0777 -d $(DESTDIR)$(PREFIX)/share/doc/tazbug |
pankso@3 | 51 touch $(DESTDIR)$(VAR)/auth/people |
pankso@3 | 52 chmod 0600 $(DESTDIR)$(VAR)/auth/people |
pankso@3 | 53 cp -a web $(DESTDIR)$(WEB)/bugs |
pankso@3 | 54 cp README $(DESTDIR)$(PREFIX)/share/doc/tazbug |
pankso@3 | 55 chown -R www.www $(DESTDIR)$(VAR)/* |