tazlito annotate Makefile @ rev 399

Improve GUI; misc changes
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 20 17:05:51 2015 +0200 (2015-11-20)
parents d5a2a2af1fdd
children 22eaf700fab5
rev   line source
pankso@4 1 # Makefile for Tazlito.
MikeDSmith25@83 2 # Check the README for more information.
pankso@4 3 #
pankso@4 4 SBINDIR?=/sbin
pankso@4 5 PREFIX?=/usr
pankso@4 6 DOCDIR?=/usr/share/doc
al@352 7 LINGUAS?=el es fr pl pt_BR ru zh_CN zh_TW
pankso@4 8
pankso@4 9 all:
pankso@4 10
pankso@188 11 # i18n.
pankso@188 12
pankso@188 13 pot:
al@399 14 xgettext -o po/tazlito.pot -L Shell -k_ -k_n -k_p:1,2 \
al@399 15 --package-name="TazLito" ./live.cgi ./tazlito-wiz
pankso@188 16
pankso@188 17 msgmerge:
pankso@188 18 @for l in $(LINGUAS); do \
pankso@188 19 echo -n "Updating $$l po file."; \
al@399 20 msgmerge -U po/$$l.po po/tazlito.pot ; \
pankso@188 21 done;
pankso@188 22
pankso@188 23 msgfmt:
pankso@188 24 @for l in $(LINGUAS); do \
pankso@188 25 echo "Compiling $$l mo file..."; \
pankso@188 26 mkdir -p po/mo/$$l/LC_MESSAGES; \
al@399 27 msgfmt -o po/mo/$$l/LC_MESSAGES/tazlito.mo po/$$l.po ; \
pankso@188 28 done;
pankso@188 29
pankso@4 30 # Installation.
pankso@4 31 # Config file goes in /etc/tazlito
pankso@4 32
pankso@188 33 install: msgfmt
pankso@256 34 install -m 0755 -d $(DESTDIR)$(PREFIX)/bin
pankso@256 35 install -m 0777 tazlito $(DESTDIR)$(PREFIX)/bin
pascal@365 36 -[ "$(VERSION)" ] && sed -i 's/^VERSION=[0-9].*/VERSION=$(VERSION)/' $(DESTDIR)$(PREFIX)/bin/tazlito
pascal@365 37 ln -s tazlito $(DESTDIR)$(PREFIX)/bin/deduplicate
pascal@365 38 ln -s tazlito $(DESTDIR)$(PREFIX)/bin/reduplicate
pankso@256 39 install -m 0777 tazlito-wiz $(DESTDIR)$(PREFIX)/bin
pankso@256 40 install -m 0755 -d $(DESTDIR)/etc/tazlito
pankso@256 41 install -m 0644 tazlito.conf $(DESTDIR)/etc/tazlito
pankso@265 42 install -m 0755 -d $(DESTDIR)/usr/share/doc
pascal@321 43 install -m 0755 -d $(DESTDIR)/var/www/tazpanel/menu.d/boot
pascal@321 44 install -m 0755 -d $(DESTDIR)/var/www/tazpanel/styles/default/images
pankso@265 45 cp -a applications $(DESTDIR)/usr/share
pankso@265 46 cp -a doc $(DESTDIR)/usr/share/doc/tazlito
pascal@320 47 cp -a live.cgi $(DESTDIR)/var/www/tazpanel
pascal@382 48 ln -s ../../live.cgi $(DESTDIR)/var/www/tazpanel/menu.d/boot/live
pascal@321 49 cp -a tazlito.png $(DESTDIR)/var/www/tazpanel/styles/default/images
pankso@188 50 # i18n
pankso@188 51 mkdir -p $(DESTDIR)$(PREFIX)/share/locale
pankso@188 52 cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale
pankso@4 53
pankso@4 54 # Uninstallation commands.
pankso@4 55
pankso@4 56 uninstall:
pankso@4 57 rm -f $(PREFIX)/bin/tazlito
pascal@365 58 rm -f $(PREFIX)/bin/deduplicate
pascal@365 59 rm -f $(PREFIX)/bin/reduplicate
pankso@253 60 rm -f $(PREFIX)/bin/tazlito-wiz
pascal@321 61 rm -f $(PREFIX)/var/www/tazpanel/menu.d/boot/live
pascal@321 62 rm -f $(PREFIX)/var/www/tazpanel/styles/default/images/tazlito.png
pascal@320 63 rm -f $(PREFIX)/var/www/tazpanel/live.cgi
pascal@320 64 rm -rf $(PREFIX)/etc/tazlito
pascal@320 65 rm -rf $(PREFIX)/usr/share/doc/tazlito
pascal@320 66 rm -rf $(PREFIX)/usr/share/applications/tazlito*.desktop
al@399 67 rm -rf $(PREFIX)/share/locale/*/LC_MESSAGES/tazlito.mo
pankso@4 68
pankso@188 69 clean:
pankso@188 70 rm -rf po/mo
al@399 71 rm -f po/*.mo
al@399 72 rm -f po/*.*~