tazlito view Makefile @ rev 406

Store receipt in flavor info
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Nov 29 12:59:59 2015 +0100 (2015-11-29)
parents d5a2a2af1fdd
children 22eaf700fab5
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.pot -L Shell -k_ -k_n -k_p:1,2 \
15 --package-name="TazLito" ./live.cgi ./tazlito-wiz
17 msgmerge:
18 @for l in $(LINGUAS); do \
19 echo -n "Updating $$l po file."; \
20 msgmerge -U po/$$l.po po/tazlito.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.mo po/$$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 -[ "$(VERSION)" ] && sed -i 's/^VERSION=[0-9].*/VERSION=$(VERSION)/' $(DESTDIR)$(PREFIX)/bin/tazlito
37 ln -s tazlito $(DESTDIR)$(PREFIX)/bin/deduplicate
38 ln -s tazlito $(DESTDIR)$(PREFIX)/bin/reduplicate
39 install -m 0777 tazlito-wiz $(DESTDIR)$(PREFIX)/bin
40 install -m 0755 -d $(DESTDIR)/etc/tazlito
41 install -m 0644 tazlito.conf $(DESTDIR)/etc/tazlito
42 install -m 0755 -d $(DESTDIR)/usr/share/doc
43 install -m 0755 -d $(DESTDIR)/var/www/tazpanel/menu.d/boot
44 install -m 0755 -d $(DESTDIR)/var/www/tazpanel/styles/default/images
45 cp -a applications $(DESTDIR)/usr/share
46 cp -a doc $(DESTDIR)/usr/share/doc/tazlito
47 cp -a live.cgi $(DESTDIR)/var/www/tazpanel
48 ln -s ../../live.cgi $(DESTDIR)/var/www/tazpanel/menu.d/boot/live
49 cp -a tazlito.png $(DESTDIR)/var/www/tazpanel/styles/default/images
50 # i18n
51 mkdir -p $(DESTDIR)$(PREFIX)/share/locale
52 cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale
54 # Uninstallation commands.
56 uninstall:
57 rm -f $(PREFIX)/bin/tazlito
58 rm -f $(PREFIX)/bin/deduplicate
59 rm -f $(PREFIX)/bin/reduplicate
60 rm -f $(PREFIX)/bin/tazlito-wiz
61 rm -f $(PREFIX)/var/www/tazpanel/menu.d/boot/live
62 rm -f $(PREFIX)/var/www/tazpanel/styles/default/images/tazlito.png
63 rm -f $(PREFIX)/var/www/tazpanel/live.cgi
64 rm -rf $(PREFIX)/etc/tazlito
65 rm -rf $(PREFIX)/usr/share/doc/tazlito
66 rm -rf $(PREFIX)/usr/share/applications/tazlito*.desktop
67 rm -rf $(PREFIX)/share/locale/*/LC_MESSAGES/tazlito.mo
69 clean:
70 rm -rf po/mo
71 rm -f po/*.mo
72 rm -f po/*.*~