tazlito annotate Makefile @ rev 342

Move "es_AR" to "es" translations; tiny edits for "ru"
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Apr 12 15:28:33 2014 +0300 (2014-04-12)
parents 4e0cb3b052a2
children c07418737197
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@342 7 LINGUAS?=el es fr pl pt_BR
pankso@4 8
pankso@4 9 all:
pankso@4 10
pankso@188 11 # i18n.
pankso@188 12
pankso@188 13 pot:
pankso@253 14 xgettext -o po/tazlito-wiz/tazlito-wiz.pot -L Shell \
pankso@253 15 --package-name="TazLito Wiz" ./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."; \
pankso@253 20 msgmerge -U po/tazlito-wiz/$$l.po po/tazlito-wiz/tazlito-wiz.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; \
pankso@253 27 msgfmt -o po/mo/$$l/LC_MESSAGES/tazlito-wiz.mo po/tazlito-wiz/$$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
pankso@256 36 install -m 0777 tazlito-wiz $(DESTDIR)$(PREFIX)/bin
pankso@256 37 install -m 0755 -d $(DESTDIR)/etc/tazlito
pankso@256 38 install -m 0644 tazlito.conf $(DESTDIR)/etc/tazlito
pankso@265 39 install -m 0755 -d $(DESTDIR)/usr/share/doc
pascal@321 40 install -m 0755 -d $(DESTDIR)/var/www/tazpanel/menu.d/boot
pascal@321 41 install -m 0755 -d $(DESTDIR)/var/www/tazpanel/styles/default/images
pankso@265 42 cp -a applications $(DESTDIR)/usr/share
pankso@265 43 cp -a doc $(DESTDIR)/usr/share/doc/tazlito
pascal@320 44 cp -a live.cgi $(DESTDIR)/var/www/tazpanel
pascal@321 45 cp -a live $(DESTDIR)/var/www/tazpanel/menu.d/boot
pascal@321 46 cp -a tazlito.png $(DESTDIR)/var/www/tazpanel/styles/default/images
pankso@188 47 # i18n
pankso@188 48 mkdir -p $(DESTDIR)$(PREFIX)/share/locale
pankso@188 49 cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale
pankso@4 50
pankso@4 51 # Uninstallation commands.
pankso@4 52
pankso@4 53 uninstall:
pankso@4 54 rm -f $(PREFIX)/bin/tazlito
pankso@253 55 rm -f $(PREFIX)/bin/tazlito-wiz
pascal@321 56 rm -f $(PREFIX)/var/www/tazpanel/menu.d/boot/live
pascal@321 57 rm -f $(PREFIX)/var/www/tazpanel/styles/default/images/tazlito.png
pascal@320 58 rm -f $(PREFIX)/var/www/tazpanel/live.cgi
pascal@320 59 rm -rf $(PREFIX)/etc/tazlito
pascal@320 60 rm -rf $(PREFIX)/usr/share/doc/tazlito
pascal@320 61 rm -rf $(PREFIX)/usr/share/applications/tazlito*.desktop
pankso@256 62 rm -rf $(PREFIX)/share/locale/*/LC_MESSAGES/tazlito*.mo
pankso@4 63
pankso@188 64 clean:
pankso@188 65 rm -rf po/mo
al@283 66 rm -f po/tazlito-wiz/*.mo
al@283 67 rm -f po/tazlito-wiz/*.*~