tazlito view Makefile @ rev 253

Move tazlitobox to oldstuff
author Christophe Lincoln <pankso@slitaz.org>
date Wed Mar 14 00:10:09 2012 +0100 (2012-03-14)
parents cc8b4e7e46b3
children a561661acdf4
line source
1 # Makefile for Tazlito.
2 # Check the README for more information.
3 #
4 SBINDIR?=/sbin
5 PREFIX?=/usr
6 DOCDIR?=/usr/share/doc
7 LINGUAS?=
9 all:
11 # i18n.
13 pot:
14 xgettext -o po/tazlito-wiz/tazlito-wiz.pot -L Shell \
15 --package-name="TazLito Wiz" ./tazlito-wiz
17 msgmerge:
18 @for l in $(LINGUAS); do \
19 echo -n "Updating $$l po file."; \
20 msgmerge -U po/tazlito-wiz/$$l.po po/tazlito-wiz/tazlito-wiz.pot ; \
21 done;
23 msgfmt:
24 @for l in $(LINGUAS); do \
25 echo "Compiling $$l mo file..."; \
26 mkdir -p po/mo/$$l/LC_MESSAGES; \
27 msgfmt -o po/mo/$$l/LC_MESSAGES/tazlito-wiz.mo po/tazlito-wiz/$$l.po ; \
28 done;
30 # Installation.
31 # Config file goes in /etc/tazlito
33 install: msgfmt
34 @echo "Installing Tazlito into $(PREFIX)/bin..."
35 install -g root -o root -m 0777 tazlito $(PREFIX)/bin
36 install -g root -o root -m 0777 tazlito-wiz $(PREFIX)/bin
37 install -g root -o root -m 0755 -d /etc/tazlito
38 install -g root -o root -m 0644 tazlito.conf /etc/tazlito
39 @echo "Installing Tazlito documentation..."
40 install -g root -o root -m 0755 -d /usr/share/doc/tazlito
41 install -g root -o root -m 0644 doc/*.html /usr/share/doc/tazlito
42 # i18n
43 mkdir -p $(DESTDIR)$(PREFIX)/share/locale
44 cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale
46 # Uninstallation commands.
48 uninstall:
49 rm -f $(PREFIX)/bin/tazlito
50 rm -f $(PREFIX)/bin/tazlito-wiz
51 rm -rf /etc/tazlito
52 rm -rf /usr/share/doc/tazlito
53 rm -rf $(DESTDIR)$(PREFIX)/share/locale/*/LC_MESSAGES/tazlito*.mo
55 clean:
56 rm -rf _pkg
57 rm -rf po/mo