tazlito view Makefile @ rev 256

Add French translation (still TODO)
author Christophe Lincoln <pankso@slitaz.org>
date Wed Mar 14 00:29:01 2012 +0100 (2012-03-14)
parents 24b1f91ec9b2
children 994eb41afd6d
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?=fr
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 $(DESTDIR)$(PREFIX)/bin..."
35 install -m 0755 -d $(DESTDIR)$(PREFIX)/bin
36 install -m 0777 tazlito $(DESTDIR)$(PREFIX)/bin
37 install -m 0777 tazlito-wiz $(DESTDIR)$(PREFIX)/bin
38 install -m 0755 -d $(DESTDIR)/etc/tazlito
39 install -m 0644 tazlito.conf $(DESTDIR)/etc/tazlito
40 @echo "Installing Tazlito documentation..."
41 install -m 0755 -d $(DESTDIR)/usr/share/doc/tazlito
42 cp -a doc/*.html $(DESTDIR)/usr/share/doc/tazlito
43 # i18n
44 mkdir -p $(DESTDIR)$(PREFIX)/share/locale
45 cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale
47 # Uninstallation commands.
49 uninstall:
50 rm -f $(PREFIX)/bin/tazlito
51 rm -f $(PREFIX)/bin/tazlito-wiz
52 rm -rf /etc/tazlito
53 rm -rf /usr/share/doc/tazlito
54 rm -rf $(PREFIX)/share/locale/*/LC_MESSAGES/tazlito*.mo
56 clean:
57 rm -rf _pkg
58 rm -rf po/mo