tazbug annotate Makefile @ rev 126
Add textmode plugin, rewrite tazbug cmdline tool
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Feb 21 03:44:35 2017 +0100 (2017-02-21) |
parents | 4dab1a5b9cb6 |
children | 435cc2b750a5 |
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@95 | 9 LINGUAS?=de el es fr ja pl pt_BR ru vi zh_CN |
pankso@3 | 10 |
pankso@124 | 11 all: msgfmt |
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@113 | 17 ./web/bugs.cgi |
pankso@125 | 18 xgettext -o po/cli/tazbug-cli.pot -L Shell --package-name="Tazbug cli" \ |
pankso@124 | 19 ./tazbug |
pankso@3 | 20 |
pankso@3 | 21 msgmerge: |
pankso@3 | 22 @for l in $(LINGUAS); do \ |
pankso@3 | 23 echo -n "Updating $$l po file."; \ |
pankso@3 | 24 msgmerge -U po/$$l.po po/$(PACKAGE).pot; \ |
pankso@3 | 25 done; |
pankso@3 | 26 |
pankso@3 | 27 msgfmt: |
pankso@3 | 28 @for l in $(LINGUAS); do \ |
pankso@3 | 29 echo "Compiling $$l mo file..."; \ |
pankso@3 | 30 mkdir -p po/mo/$$l/LC_MESSAGES; \ |
al@31 | 31 msgfmt -o po/mo/$$l/LC_MESSAGES/$(PACKAGE).mo po/$$l.po; \ |
pankso@3 | 32 done; |
pankso@3 | 33 |
pankso@3 | 34 # Client install only. Server part is not packaged |
pankso@3 | 35 |
pankso@3 | 36 install: |
pankso@124 | 37 install -m 0777 -d $(DESTDIR)$(PREFIX)/bin |
pankso@3 | 38 install -m 0777 -d $(DESTDIR)$(PREFIX)/share/applications |
pankso@124 | 39 install -m 0755 tazbug $(DESTDIR)$(PREFIX)/bin |
pankso@3 | 40 install -m 0644 data/tazbug.desktop \ |
pankso@3 | 41 $(DESTDIR)$(PREFIX)/share/applications |
pankso@3 | 42 |
pankso@124 | 43 # On SliTaz vhost: make install-web WEB=/home/slitaz/www |
pankso@3 | 44 |
pankso@124 | 45 install-web: |
pankso@3 | 46 install -m 0700 -d $(DESTDIR)$(VAR)/people |
pankso@3 | 47 install -m 0700 -d $(DESTDIR)$(VAR)/auth |
pankso@25 | 48 install -m 0777 -d $(DESTDIR)$(WEB)/bugs |
pankso@124 | 49 # authfile |
pankso@3 | 50 touch $(DESTDIR)$(VAR)/auth/people |
pankso@3 | 51 chmod 0600 $(DESTDIR)$(VAR)/auth/people |
pankso@124 | 52 # admin users |
pankso@124 | 53 touch $(DESTDIR)$(VAR)/auth/admin |
pankso@124 | 54 chmod 0600 $(DESTDIR)$(VAR)/auth/people |
pankso@25 | 55 cp -a web/* $(DESTDIR)$(WEB)/bugs |
pankso@55 | 56 cp README $(DESTDIR)$(WEB)/bugs |
pankso@3 | 57 chown -R www.www $(DESTDIR)$(VAR)/* |
pankso@12 | 58 chown -R www.www $(DESTDIR)$(WEB)/bugs/bug |
pankso@124 | 59 # i18n |
pankso@124 | 60 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/locale |
pankso@124 | 61 cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale |
pankso@14 | 62 |
pankso@14 | 63 # Uninstall client |
pankso@14 | 64 |
pankso@14 | 65 uninstall: |
pankso@14 | 66 rm -f $(DESTDIR)$(PREFIX)/bin/tazbug* |
pankso@14 | 67 rm -f $(DESTDIR)$(PREFIX)/share/applications/tazbug* |
pankso@14 | 68 rm -f $(DESTDIR)$(PREFIX)/etc/slitaz/tazbug.conf |
al@31 | 69 |
al@31 | 70 # Clean source |
al@31 | 71 |
al@31 | 72 clean: |
al@31 | 73 rm -rf po/mo |
al@31 | 74 rm -f po/*~ |