tazbug annotate Makefile @ rev 48

Add online signup, well tested with TinyCM
author Christophe Lincoln <pankso@slitaz.org>
date Sat Jan 04 21:46:07 2014 +0100 (2014-01-04)
parents a6196911fcd8
children 05ac6fa12843
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@3 50 install -m 0777 -d $(DESTDIR)$(PREFIX)/share/doc/tazbug
pankso@25 51 install -m 0777 -d $(DESTDIR)$(WEB)/bugs
pankso@14 52 install -m 0644 tazbug.conf $(DESTDIR)/etc/slitaz
pankso@3 53 touch $(DESTDIR)$(VAR)/auth/people
pankso@3 54 chmod 0600 $(DESTDIR)$(VAR)/auth/people
pankso@25 55 cp -a web/* $(DESTDIR)$(WEB)/bugs
pankso@3 56 cp README $(DESTDIR)$(PREFIX)/share/doc/tazbug
pankso@3 57 chown -R www.www $(DESTDIR)$(VAR)/*
pankso@12 58 chown -R www.www $(DESTDIR)$(WEB)/bugs/bug
pankso@14 59
pankso@14 60 # Uninstall client
pankso@14 61
pankso@14 62 uninstall:
pankso@14 63 rm -f $(DESTDIR)$(PREFIX)/bin/tazbug*
pankso@14 64 rm -f $(DESTDIR)$(PREFIX)/share/applications/tazbug*
pankso@14 65 rm -f $(DESTDIR)$(PREFIX)/etc/slitaz/tazbug.conf
al@31 66
al@31 67 # Clean source
al@31 68
al@31 69 clean:
al@31 70 rm -rf po/mo
al@31 71 rm -f po/*~