tazlito view Makefile @ rev 317
tazlito: Add include support in package list
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sun Jun 09 19:17:03 2013 +0200 (2013-06-09) |
parents | 060492ce4431 |
children | bcdab80798a7 |
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?=el es_AR 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
58 rm -f po/tazlito-wiz/*.mo
59 rm -f po/tazlito-wiz/*.*~