tazpanel annotate Makefile @ rev 194

Add cat support in terminal and fix log file path
author Christophe Lincoln <pankso@slitaz.org>
date Fri Jun 10 22:29:16 2011 +0200 (2011-06-10)
parents 484b2ef8c5bd
children 20787c1bcc60
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@183 6 LINGUAS?=fr pt_BR
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@183 11 all: msgfmt
pankso@183 12
pankso@6 13 # i18n
pankso@6 14
pankso@6 15 pot:
pankso@38 16 xgettext -o po/tazpanel.pot -L Shell \
pankso@38 17 --package-name="TazPanel" \
pankso@38 18 --package-version="$(VERSION)" \
pankso@40 19 ./tazpanel ./index.cgi ./pkgs.cgi ./live.cgi \
pankso@109 20 ./network.cgi ./boot.cgi ./hardware.cgi \
pankso@109 21 ./settings.cgi ./lib/libtazpanel
pankso@6 22
pankso@6 23 msgmerge:
pankso@6 24 @for l in $(LINGUAS); do \
pankso@6 25 echo -n "Updating $$l po file."; \
pankso@42 26 msgmerge -U po/$$l.po po/tazpanel.pot; \
pankso@6 27 done;
pankso@6 28
pankso@6 29 msgfmt:
pankso@6 30 @for l in $(LINGUAS); do \
pankso@6 31 echo "Compiling $$l mo file..."; \
pankso@6 32 mkdir -p po/mo/$$l/LC_MESSAGES; \
pankso@38 33 msgfmt -o po/mo/$$l/LC_MESSAGES/tazpanel.mo po/$$l.po; \
pankso@6 34 done;
pankso@6 35
pankso@12 36 # Installation
pankso@6 37
pankso@183 38 install:
pankso@12 39 mkdir -p $(DESTDIR)$(PREFIX)/bin \
pankso@12 40 $(DESTDIR)$(PREFIX)/share/locale \
pankso@169 41 $(DESTDIR)$(PREFIX)/share/applications \
pankso@169 42 $(DESTDIR)$(PREFIX)/share/pixmaps \
pankso@12 43 $(DESTDIR)$(SYSCONFDIR) \
pankso@194 44 $(DESTDIR)$(PANEL) \
pankso@194 45 $(DESTDIR)/var/log
pankso@37 46 cp -a tazpanel $(DESTDIR)$(PREFIX)/bin
paul@127 47 cp -a data/*.conf $(DESTDIR)$(SYSCONFDIR)
pankso@169 48 cp -a *.cgi lib/ styles/ doc/ README $(DESTDIR)$(PANEL)
pankso@26 49 cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale
pankso@169 50 cp -a data/*.desktop $(DESTDIR)$(PREFIX)/share/applications
pankso@169 51 cp -a data/*.png $(DESTDIR)$(PREFIX)/share/pixmaps
pankso@194 52 touch $(DESTDIR)/var/log/tazpanel.log
pankso@12 53
pankso@26 54 # Clean source
pankso@26 55
pankso@26 56 clean:
pankso@26 57 rm -rf po/mo
pankso@48 58 rm -f po/*.mo
pankso@42 59 rm -f po/*.*~
pankso@26 60