tazlito view Makefile @ rev 196
tazlito: typo in stat -c
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 19 11:41:39 2010 +0100 (2010-12-19) |
parents | 65c0f2dee00c |
children | 24b1f91ec9b2 |
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/tazlitobox/tazlitobox.pot -L Shell ./tazlitobox
16 msgmerge:
17 @for l in $(LINGUAS); do \
18 echo -n "Updating $$l po file."; \
19 msgmerge -U po/tazlitobox/$$l.po po/tazlitobox/tazlitobox.pot ; \
20 done;
22 msgfmt:
23 @for l in $(LINGUAS); do \
24 echo "Compiling $$l mo file..."; \
25 mkdir -p po/mo/$$l/LC_MESSAGES; \
26 msgfmt -o po/mo/$$l/LC_MESSAGES/tazlitobox.mo po/tazlitobox/$$l.po ; \
27 done;
29 # Installation.
30 # Config file goes in /etc/tazlito
32 install: msgfmt
33 @echo "Installing Tazlito into $(PREFIX)/bin..."
34 install -g root -o root -m 0777 tazlito $(PREFIX)/bin
35 install -g root -o root -m 0777 tazlitobox $(PREFIX)/bin
36 install -g root -o root -m 0755 -d /etc/tazlito
37 install -g root -o root -m 0644 tazlito.conf /etc/tazlito
38 #install -g root -o root -m 0644 distro-packages.list /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/tazlito.en.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/tazlitobox
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