tazpanel annotate Makefile @ rev 82
Tiny edits
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Wed Apr 13 16:14:03 2011 +0100 (2011-04-13) |
parents | 7dfcc2b58b33 |
children | b898c9887a62 |
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@49 | 6 LINGUAS?= |
pankso@12 | 7 PANEL?=/var/www/tazpanel |
pankso@6 | 8 |
pankso@14 | 9 VERSION:=$(shell grep ^VERSION tazpanel | cut -d '=' -f 2) |
pankso@14 | 10 |
pankso@6 | 11 # i18n |
pankso@6 | 12 |
pankso@6 | 13 pot: |
pankso@38 | 14 xgettext -o po/tazpanel.pot -L Shell \ |
pankso@38 | 15 --package-name="TazPanel" \ |
pankso@38 | 16 --package-version="$(VERSION)" \ |
pankso@40 | 17 ./tazpanel ./index.cgi ./pkgs.cgi ./live.cgi \ |
pankso@40 | 18 ./network.cgi ./lib/libtazpanel |
pankso@6 | 19 |
pankso@6 | 20 msgmerge: |
pankso@6 | 21 @for l in $(LINGUAS); do \ |
pankso@6 | 22 echo -n "Updating $$l po file."; \ |
pankso@42 | 23 msgmerge -U po/$$l.po po/tazpanel.pot; \ |
pankso@6 | 24 done; |
pankso@6 | 25 |
pankso@6 | 26 msgfmt: |
pankso@6 | 27 @for l in $(LINGUAS); do \ |
pankso@6 | 28 echo "Compiling $$l mo file..."; \ |
pankso@6 | 29 mkdir -p po/mo/$$l/LC_MESSAGES; \ |
pankso@38 | 30 msgfmt -o po/mo/$$l/LC_MESSAGES/tazpanel.mo po/$$l.po; \ |
pankso@6 | 31 done; |
pankso@6 | 32 |
pankso@12 | 33 # Installation |
pankso@6 | 34 |
pankso@26 | 35 install: msgfmt |
pankso@12 | 36 mkdir -p $(DESTDIR)$(PREFIX)/bin \ |
pankso@12 | 37 $(DESTDIR)$(PREFIX)/share/locale \ |
pankso@12 | 38 $(DESTDIR)$(SYSCONFDIR) \ |
pankso@12 | 39 $(DESTDIR)$(PANEL) |
pankso@37 | 40 cp -a tazpanel $(DESTDIR)$(PREFIX)/bin |
pankso@37 | 41 cp -a *.conf data/httpd.conf $(DESTDIR)$(SYSCONFDIR) |
pankso@12 | 42 cp -a *.cgi lib/ styles/ $(DESTDIR)$(PANEL) |
pankso@26 | 43 cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale |
pankso@12 | 44 |
pankso@26 | 45 # Clean source |
pankso@26 | 46 |
pankso@26 | 47 clean: |
pankso@26 | 48 rm -rf po/mo |
pankso@48 | 49 rm -f po/*.mo |
pankso@42 | 50 rm -f po/*.*~ |
pankso@26 | 51 |