tazbug annotate Makefile @ rev 120

Update destop file
author Christophe Lincoln <pankso@slitaz.org>
date Mon Feb 13 17:37:45 2017 +0100 (2017-02-13)
parents c228980c50a1
children 4dab1a5b9cb6
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@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@113 17 ./web/bugs.cgi
pankso@113 18 #./tazbug
pankso@3 19
pankso@3 20 msgmerge:
pankso@3 21 @for l in $(LINGUAS); do \
pankso@3 22 echo -n "Updating $$l po file."; \
pankso@3 23 msgmerge -U po/$$l.po po/$(PACKAGE).pot; \
pankso@3 24 done;
pankso@3 25
pankso@3 26 msgfmt:
pankso@3 27 @for l in $(LINGUAS); do \
pankso@3 28 echo "Compiling $$l mo file..."; \
pankso@3 29 mkdir -p po/mo/$$l/LC_MESSAGES; \
al@31 30 msgfmt -o po/mo/$$l/LC_MESSAGES/$(PACKAGE).mo po/$$l.po; \
pankso@3 31 done;
pankso@3 32
pankso@3 33 # Client install only. Server part is not packaged
pankso@3 34
pankso@3 35 install:
pankso@113 36 #install -m 0777 -d $(DESTDIR)$(PREFIX)/bin
pankso@3 37 install -m 0777 -d $(DESTDIR)$(PREFIX)/share/applications
pankso@113 38 #install -m 0755 tazbug $(DESTDIR)$(PREFIX)/bin
pankso@3 39 install -m 0644 data/tazbug.desktop \
pankso@3 40 $(DESTDIR)$(PREFIX)/share/applications
pankso@3 41
pankso@3 42 # On SliTaz vhost: make install-server WEB=/home/slitaz/www
pankso@3 43
pankso@3 44 install-server:
pankso@14 45 install -m 0777 -d $(DESTDIR)/etc/slitaz
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@14 49 install -m 0644 tazbug.conf $(DESTDIR)/etc/slitaz
pankso@3 50 touch $(DESTDIR)$(VAR)/auth/people
pankso@3 51 chmod 0600 $(DESTDIR)$(VAR)/auth/people
pankso@25 52 cp -a web/* $(DESTDIR)$(WEB)/bugs
pankso@55 53 cp README $(DESTDIR)$(WEB)/bugs
pankso@3 54 chown -R www.www $(DESTDIR)$(VAR)/*
pankso@12 55 chown -R www.www $(DESTDIR)$(WEB)/bugs/bug
pankso@14 56
pankso@14 57 # Uninstall client
pankso@14 58
pankso@14 59 uninstall:
pankso@14 60 rm -f $(DESTDIR)$(PREFIX)/bin/tazbug*
pankso@14 61 rm -f $(DESTDIR)$(PREFIX)/share/applications/tazbug*
pankso@14 62 rm -f $(DESTDIR)$(PREFIX)/etc/slitaz/tazbug.conf
al@31 63
al@31 64 # Clean source
al@31 65
al@31 66 clean:
al@31 67 rm -rf po/mo
al@31 68 rm -f po/*~