tazpanel annotate Makefile @ rev 335
fix bug 45: ask confirmation during page load
author | border |
---|---|
date | Fri Dec 21 01:49:21 2012 -0500 (2012-12-21) |
parents | f50f3c09d208 |
children | 7b6cf90e0155 |
rev | line source |
---|---|
pankso@6 | 1 # Makefile for TazPanel. |
pankso@6 | 2 # |
pankso@6 | 3 PREFIX?=/usr |
pankso@6 | 4 SYSCONFDIR?=/etc/slitaz |
pankso@6 | 5 DESTDIR?= |
al@327 | 6 LINGUAS?=el es fr pt_BR ru sv |
pankso@12 | 7 PANEL?=/var/www/tazpanel |
pankso@6 | 8 |
pankso@14 | 9 VERSION:=$(shell grep ^VERSION tazpanel | cut -d '=' -f 2) |
pankso@14 | 10 |
pankso@183 | 11 all: msgfmt |
pankso@183 | 12 |
pankso@6 | 13 # i18n |
pankso@6 | 14 |
pankso@6 | 15 pot: |
pankso@38 | 16 xgettext -o po/tazpanel.pot -L Shell \ |
pankso@38 | 17 --package-name="TazPanel" \ |
pankso@38 | 18 --package-version="$(VERSION)" \ |
al@303 | 19 ./tazpanel ./index.cgi ./pkgs.cgi ./live.cgi ./network.cgi ./boot.cgi \ |
al@303 | 20 ./hardware.cgi ./settings.cgi ./lib/libtazpanel ./installer.cgi \ |
al@314 | 21 ./help.cgi ./styles/default/header.html ./styles/default/footer.html |
pankso@6 | 22 |
pankso@6 | 23 msgmerge: |
pankso@6 | 24 @for l in $(LINGUAS); do \ |
pankso@6 | 25 echo -n "Updating $$l po file."; \ |
pankso@42 | 26 msgmerge -U po/$$l.po po/tazpanel.pot; \ |
pankso@6 | 27 done; |
pankso@6 | 28 |
pankso@6 | 29 msgfmt: |
pankso@6 | 30 @for l in $(LINGUAS); do \ |
pankso@6 | 31 echo "Compiling $$l mo file..."; \ |
pankso@6 | 32 mkdir -p po/mo/$$l/LC_MESSAGES; \ |
pankso@38 | 33 msgfmt -o po/mo/$$l/LC_MESSAGES/tazpanel.mo po/$$l.po; \ |
pankso@6 | 34 done; |
pankso@6 | 35 |
pankso@12 | 36 # Installation |
pankso@6 | 37 |
pankso@183 | 38 install: |
pankso@12 | 39 mkdir -p $(DESTDIR)$(PREFIX)/bin \ |
pankso@12 | 40 $(DESTDIR)$(PREFIX)/share/locale \ |
pankso@169 | 41 $(DESTDIR)$(PREFIX)/share/applications \ |
pankso@169 | 42 $(DESTDIR)$(PREFIX)/share/pixmaps \ |
pankso@12 | 43 $(DESTDIR)$(SYSCONFDIR) \ |
pankso@194 | 44 $(DESTDIR)$(PANEL) \ |
pankso@194 | 45 $(DESTDIR)/var/log |
pankso@37 | 46 cp -a tazpanel $(DESTDIR)$(PREFIX)/bin |
paul@127 | 47 cp -a data/*.conf $(DESTDIR)$(SYSCONFDIR) |
al@314 | 48 cp -a *.cgi lib/ styles/ doc/ README* $(DESTDIR)$(PANEL) |
pankso@26 | 49 cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale |
pankso@169 | 50 cp -a data/*.desktop $(DESTDIR)$(PREFIX)/share/applications |
pankso@169 | 51 cp -a data/*.png $(DESTDIR)$(PREFIX)/share/pixmaps |
pankso@194 | 52 touch $(DESTDIR)/var/log/tazpanel.log |
pankso@12 | 53 |
pankso@26 | 54 # Clean source |
pankso@26 | 55 |
pankso@26 | 56 clean: |
pankso@26 | 57 rm -rf po/mo |
pankso@48 | 58 rm -f po/*.mo |
pankso@42 | 59 rm -f po/*.*~ |
pankso@26 | 60 |
al@303 | 61 help: |
al@316 | 62 @echo "make [ pot | msgmerge | msgfmt|all | install | clean ]" |