tazlito view Makefile @ rev 352

Add Chinese Simplified translations (thanks jame987165702).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jun 26 15:23:24 2014 +0300 (2014-06-26)
parents e8d90da7d7d6
children 57142e32ff6e
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 fr pl pt_BR ru zh_CN zh_TW
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 install -m 0755 -d $(DESTDIR)/var/www/tazpanel/menu.d/boot
41 install -m 0755 -d $(DESTDIR)/var/www/tazpanel/styles/default/images
42 cp -a applications $(DESTDIR)/usr/share
43 cp -a doc $(DESTDIR)/usr/share/doc/tazlito
44 cp -a live.cgi $(DESTDIR)/var/www/tazpanel
45 cp -a live $(DESTDIR)/var/www/tazpanel/menu.d/boot
46 cp -a tazlito.png $(DESTDIR)/var/www/tazpanel/styles/default/images
47 # i18n
48 mkdir -p $(DESTDIR)$(PREFIX)/share/locale
49 cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale
51 # Uninstallation commands.
53 uninstall:
54 rm -f $(PREFIX)/bin/tazlito
55 rm -f $(PREFIX)/bin/tazlito-wiz
56 rm -f $(PREFIX)/var/www/tazpanel/menu.d/boot/live
57 rm -f $(PREFIX)/var/www/tazpanel/styles/default/images/tazlito.png
58 rm -f $(PREFIX)/var/www/tazpanel/live.cgi
59 rm -rf $(PREFIX)/etc/tazlito
60 rm -rf $(PREFIX)/usr/share/doc/tazlito
61 rm -rf $(PREFIX)/usr/share/applications/tazlito*.desktop
62 rm -rf $(PREFIX)/share/locale/*/LC_MESSAGES/tazlito*.mo
64 clean:
65 rm -rf po/mo
66 rm -f po/tazlito-wiz/*.mo
67 rm -f po/tazlito-wiz/*.*~