tazpanel view Makefile @ rev 353

Modular menu (for tazinst-gui)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 22 21:58:50 2013 +0100 (2013-03-22)
parents 7b6cf90e0155
children d1f4f991fb1d
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 ./help.cgi \
21 ./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)/menu.d \
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 ]"