tazpanel diff Makefile @ rev 8

Implement system upgrade: faster than ever now!!!
author Christophe Lincoln <pankso@slitaz.org>
date Sat Apr 02 13:55:29 2011 +0200 (2011-04-02)
parents
children 4c1174a446ee
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Makefile	Sat Apr 02 13:55:29 2011 +0200
     1.3 @@ -0,0 +1,33 @@
     1.4 +# Makefile for TazPanel.
     1.5 +#
     1.6 +PREFIX?=/usr
     1.7 +SYSCONFDIR?=/etc/slitaz
     1.8 +DESTDIR?=
     1.9 +LINGUAS?=fr
    1.10 +
    1.11 +# i18n
    1.12 +
    1.13 +pot:
    1.14 +	xgettext -o po/tazpkg-cgi/tazpkg-cgi.pot -L Shell \
    1.15 +		--package-name="Tazpkg CGI" ./tazpkg.cgi
    1.16 +
    1.17 +msgmerge:
    1.18 +	@for l in $(LINGUAS); do \
    1.19 +		echo -n "Updating $$l po file."; \
    1.20 +		msgmerge -U po/tazpkg-cgi/$$l.po po/tazpkg-cgi/tazpkg-cgi.pot; \
    1.21 +	done;
    1.22 +
    1.23 +msgfmt:
    1.24 +	@for l in $(LINGUAS); do \
    1.25 +		echo "Compiling $$l mo file..."; \
    1.26 +		mkdir -p po/mo/$$l/LC_MESSAGES; \
    1.27 +		msgfmt -o po/mo/$$l/LC_MESSAGES/tazpkg-cgi.mo po/tazpkg-cgi/$$l.po; \
    1.28 +	done;
    1.29 +
    1.30 +# Installation.
    1.31 +
    1.32 +install: msgfmt
    1.33 +	install -m 0755 -d $(DESTDIR)$(PREFIX)/bin
    1.34 +	install -m 0777 tazpanel $(DESTDIR)$(PREFIX)/bin
    1.35 +	mkdir -p $(DESTDIR)$(PREFIX)/share/locale
    1.36 +	cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale