tazpanel view Makefile @ rev 225

Added tag 1.2.2 for changeset 71b4d133679e
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Sat Feb 18 23:23:38 2012 +0100 (2012-02-18)
parents 484b2ef8c5bd
children 20787c1bcc60
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
23 msgmerge:
24 @for l in $(LINGUAS); do \
25 echo -n "Updating $$l po file."; \
26 msgmerge -U po/$$l.po po/tazpanel.pot; \
27 done;
29 msgfmt:
30 @for l in $(LINGUAS); do \
31 echo "Compiling $$l mo file..."; \
32 mkdir -p po/mo/$$l/LC_MESSAGES; \
33 msgfmt -o po/mo/$$l/LC_MESSAGES/tazpanel.mo po/$$l.po; \
34 done;
36 # Installation
38 install:
39 mkdir -p $(DESTDIR)$(PREFIX)/bin \
40 $(DESTDIR)$(PREFIX)/share/locale \
41 $(DESTDIR)$(PREFIX)/share/applications \
42 $(DESTDIR)$(PREFIX)/share/pixmaps \
43 $(DESTDIR)$(SYSCONFDIR) \
44 $(DESTDIR)$(PANEL) \
45 $(DESTDIR)/var/log
46 cp -a tazpanel $(DESTDIR)$(PREFIX)/bin
47 cp -a data/*.conf $(DESTDIR)$(SYSCONFDIR)
48 cp -a *.cgi lib/ styles/ doc/ README $(DESTDIR)$(PANEL)
49 cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale
50 cp -a data/*.desktop $(DESTDIR)$(PREFIX)/share/applications
51 cp -a data/*.png $(DESTDIR)$(PREFIX)/share/pixmaps
52 touch $(DESTDIR)/var/log/tazpanel.log
54 # Clean source
56 clean:
57 rm -rf po/mo
58 rm -f po/*.mo
59 rm -f po/*.*~