tazbug annotate Makefile @ rev 73
Fix js redirection and cookies
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Jan 20 00:20:03 2014 +0100 (2014-01-20) |
parents | 4bd5e2d2092b |
children | 3a99fd8a968a |
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 |
al@47 | 9 LINGUAS?=el es_AR fr pl pt_BR ru |
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; \ |
al@31 | 29 msgfmt -o po/mo/$$l/LC_MESSAGES/$(PACKAGE).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@14 | 47 install -m 0777 -d $(DESTDIR)/etc/slitaz |
pankso@3 | 48 install -m 0700 -d $(DESTDIR)$(VAR)/people |
pankso@3 | 49 install -m 0700 -d $(DESTDIR)$(VAR)/auth |
pankso@25 | 50 install -m 0777 -d $(DESTDIR)$(WEB)/bugs |
pankso@14 | 51 install -m 0644 tazbug.conf $(DESTDIR)/etc/slitaz |
pankso@3 | 52 touch $(DESTDIR)$(VAR)/auth/people |
pankso@3 | 53 chmod 0600 $(DESTDIR)$(VAR)/auth/people |
pankso@25 | 54 cp -a web/* $(DESTDIR)$(WEB)/bugs |
pankso@55 | 55 cp README $(DESTDIR)$(WEB)/bugs |
pankso@3 | 56 chown -R www.www $(DESTDIR)$(VAR)/* |
pankso@12 | 57 chown -R www.www $(DESTDIR)$(WEB)/bugs/bug |
pankso@14 | 58 |
pankso@14 | 59 # Uninstall client |
pankso@14 | 60 |
pankso@14 | 61 uninstall: |
pankso@14 | 62 rm -f $(DESTDIR)$(PREFIX)/bin/tazbug* |
pankso@14 | 63 rm -f $(DESTDIR)$(PREFIX)/share/applications/tazbug* |
pankso@14 | 64 rm -f $(DESTDIR)$(PREFIX)/etc/slitaz/tazbug.conf |
al@31 | 65 |
al@31 | 66 # Clean source |
al@31 | 67 |
al@31 | 68 clean: |
al@31 | 69 rm -rf po/mo |
al@31 | 70 rm -f po/*~ |