tazpanel view Makefile @ rev 165
libtazpanel: align status
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Apr 22 11:34:07 2011 +0200 (2011-04-22) |
parents | 7855bd81abb7 |
children | 71ef6a3bc46f |
line source
1 # Makefile for TazPanel.
2 #
3 PREFIX?=/usr
4 SYSCONFDIR?=/etc/slitaz
5 DESTDIR?=
6 LINGUAS?=fr
7 PANEL?=/var/www/tazpanel
9 VERSION:=$(shell grep ^VERSION tazpanel | cut -d '=' -f 2)
11 # i18n
13 pot:
14 xgettext -o po/tazpanel.pot -L Shell \
15 --package-name="TazPanel" \
16 --package-version="$(VERSION)" \
17 ./tazpanel ./index.cgi ./pkgs.cgi ./live.cgi \
18 ./network.cgi ./boot.cgi ./hardware.cgi \
19 ./settings.cgi ./lib/libtazpanel
21 msgmerge:
22 @for l in $(LINGUAS); do \
23 echo -n "Updating $$l po file."; \
24 msgmerge -U po/$$l.po po/tazpanel.pot; \
25 done;
27 msgfmt:
28 @for l in $(LINGUAS); do \
29 echo "Compiling $$l mo file..."; \
30 mkdir -p po/mo/$$l/LC_MESSAGES; \
31 msgfmt -o po/mo/$$l/LC_MESSAGES/tazpanel.mo po/$$l.po; \
32 done;
34 # Installation
36 install: msgfmt
37 mkdir -p $(DESTDIR)$(PREFIX)/bin \
38 $(DESTDIR)$(PREFIX)/share/locale \
39 $(DESTDIR)$(SYSCONFDIR) \
40 $(DESTDIR)$(PANEL)
41 cp -a tazpanel $(DESTDIR)$(PREFIX)/bin
42 cp -a data/*.conf $(DESTDIR)$(SYSCONFDIR)
43 cp -a *.cgi lib/ styles/ $(DESTDIR)$(PANEL)
44 cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale
46 # Clean source
48 clean:
49 rm -rf po/mo
50 rm -f po/*.mo
51 rm -f po/*.*~