tazpanel view Makefile @ rev 298

fix broken styles
author Dominique Corbex <domcox@slitaz.org>
date Wed May 02 09:53:10 2012 +0200 (2012-05-02)
parents 20787c1bcc60
children fdfc6b494539
line source
1 # Makefile for TazPanel.
2 #
3 PREFIX?=/usr
4 SYSCONFDIR?=/etc/slitaz
5 DESTDIR?=
6 LINGUAS?=fr pt_BR
7 PANEL?=/var/www/tazpanel
9 VERSION:=$(shell grep ^VERSION tazpanel | cut -d '=' -f 2)
11 all: msgfmt
13 # i18n
15 pot:
16 xgettext -o po/tazpanel.pot -L Shell \
17 --package-name="TazPanel" \
18 --package-version="$(VERSION)" \
19 ./tazpanel ./index.cgi ./pkgs.cgi ./live.cgi \
20 ./network.cgi ./boot.cgi ./hardware.cgi \
21 ./settings.cgi ./lib/libtazpanel ./installer.cgi \
22 ./styles/default/header.sh ./styles/default/footer.sh
24 msgmerge:
25 @for l in $(LINGUAS); do \
26 echo -n "Updating $$l po file."; \
27 msgmerge -U po/$$l.po po/tazpanel.pot; \
28 done;
30 msgfmt:
31 @for l in $(LINGUAS); do \
32 echo "Compiling $$l mo file..."; \
33 mkdir -p po/mo/$$l/LC_MESSAGES; \
34 msgfmt -o po/mo/$$l/LC_MESSAGES/tazpanel.mo po/$$l.po; \
35 done;
37 # Installation
39 install:
40 mkdir -p $(DESTDIR)$(PREFIX)/bin \
41 $(DESTDIR)$(PREFIX)/share/locale \
42 $(DESTDIR)$(PREFIX)/share/applications \
43 $(DESTDIR)$(PREFIX)/share/pixmaps \
44 $(DESTDIR)$(SYSCONFDIR) \
45 $(DESTDIR)$(PANEL) \
46 $(DESTDIR)/var/log
47 cp -a tazpanel $(DESTDIR)$(PREFIX)/bin
48 cp -a data/*.conf $(DESTDIR)$(SYSCONFDIR)
49 cp -a *.cgi lib/ styles/ doc/ README $(DESTDIR)$(PANEL)
50 cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale
51 cp -a data/*.desktop $(DESTDIR)$(PREFIX)/share/applications
52 cp -a data/*.png $(DESTDIR)$(PREFIX)/share/pixmaps
53 touch $(DESTDIR)/var/log/tazpanel.log
55 # Clean source
57 clean:
58 rm -rf po/mo
59 rm -f po/*.mo
60 rm -f po/*.*~