tazlito view Makefile @ rev 265

Update Makefile
author Christophe Lincoln <pankso@slitaz.org>
date Sat Mar 17 16:56:30 2012 +0100 (2012-03-17)
parents 994eb41afd6d
children ea955420e734
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 pt_BR
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 install -m 0755 -d $(DESTDIR)$(PREFIX)/bin
35 install -m 0777 tazlito $(DESTDIR)$(PREFIX)/bin
36 install -m 0777 tazlito-wiz $(DESTDIR)$(PREFIX)/bin
37 install -m 0755 -d $(DESTDIR)/etc/tazlito
38 install -m 0644 tazlito.conf $(DESTDIR)/etc/tazlito
39 install -m 0755 -d $(DESTDIR)/usr/share/doc
40 cp -a applications $(DESTDIR)/usr/share
41 cp -a doc $(DESTDIR)/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 /usr/share/applications/tazlito*.desktop
54 rm -rf $(PREFIX)/share/locale/*/LC_MESSAGES/tazlito*.mo
56 clean:
57 rm -rf po/mo