tazpanel view Makefile @ rev 343
hardware.cgi: display UUID
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 02 12:18:44 2013 +0100 (2013-02-02) |
parents | f50f3c09d208 |
children | 7b6cf90e0155 |
line source
1 # Makefile for TazPanel.
2 #
3 PREFIX?=/usr
4 SYSCONFDIR?=/etc/slitaz
5 DESTDIR?=
6 LINGUAS?=el es fr pt_BR ru sv
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 ./network.cgi ./boot.cgi \
20 ./hardware.cgi ./settings.cgi ./lib/libtazpanel ./installer.cgi \
21 ./help.cgi ./styles/default/header.html ./styles/default/footer.html
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/*.*~
61 help:
62 @echo "make [ pot | msgmerge | msgfmt|all | install | clean ]"