tazpanel annotate Makefile @ rev 6
Add a Makefile
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Apr 02 10:22:35 2011 +0200 (2011-04-02) |
parents | |
children | 4c1174a446ee |
rev | line source |
---|---|
pankso@6 | 1 # Makefile for TazPanel. |
pankso@6 | 2 # |
pankso@6 | 3 PREFIX?=/usr |
pankso@6 | 4 SYSCONFDIR?=/etc/slitaz |
pankso@6 | 5 DESTDIR?= |
pankso@6 | 6 LINGUAS?=fr |
pankso@6 | 7 |
pankso@6 | 8 # i18n |
pankso@6 | 9 |
pankso@6 | 10 pot: |
pankso@6 | 11 xgettext -o po/tazpkg-cgi/tazpkg-cgi.pot -L Shell \ |
pankso@6 | 12 --package-name="Tazpkg CGI" ./tazpkg.cgi |
pankso@6 | 13 |
pankso@6 | 14 msgmerge: |
pankso@6 | 15 @for l in $(LINGUAS); do \ |
pankso@6 | 16 echo -n "Updating $$l po file."; \ |
pankso@6 | 17 msgmerge -U po/tazpkg-cgi/$$l.po po/tazpkg-cgi/tazpkg-cgi.pot; \ |
pankso@6 | 18 done; |
pankso@6 | 19 |
pankso@6 | 20 msgfmt: |
pankso@6 | 21 @for l in $(LINGUAS); do \ |
pankso@6 | 22 echo "Compiling $$l mo file..."; \ |
pankso@6 | 23 mkdir -p po/mo/$$l/LC_MESSAGES; \ |
pankso@6 | 24 msgfmt -o po/mo/$$l/LC_MESSAGES/tazpkg-cgi.mo po/tazpkg-cgi/$$l.po; \ |
pankso@6 | 25 done; |
pankso@6 | 26 |
pankso@6 | 27 # Installation. |
pankso@6 | 28 |
pankso@6 | 29 install: msgfmt |
pankso@6 | 30 install -m 0755 -d $(DESTDIR)$(PREFIX)/bin |
pankso@6 | 31 install -m 0777 tazpanel $(DESTDIR)$(PREFIX)/bin |
pankso@6 | 32 mkdir -p $(DESTDIR)$(PREFIX)/share/locale |
pankso@6 | 33 cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale |