tazpanel annotate Makefile @ rev 25

Add 3 POT file, fix typo and empty gettext strings
author Christophe Lincoln <pankso@slitaz.org>
date Tue Apr 05 01:59:33 2011 +0200 (2011-04-05)
parents 2274e489400c
children e253a2bbbe44
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?=
pankso@6 6 LINGUAS?=fr
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@6 11 # i18n
pankso@6 12
pankso@6 13 pot:
pankso@23 14 xgettext -o po/tazpanel-pkgs/tazpanel-pkgs.pot -L Shell \
pankso@23 15 --package-name="Tazpanel pkgs CGI" \
pankso@25 16 --package-version="$(VERSION)" ./pkgs.cgi
pankso@14 17 xgettext -o po/tazpanel/tazpanel.pot -L Shell \
pankso@14 18 --package-name="TazPanel cmdline" \
pankso@14 19 --package-version="$(VERSION)" ./tazpanel
pankso@23 20 xgettext -o po/tazpanel-cgi/tazpanel-cgi.pot -L Shell \
pankso@23 21 --package-name="TazPanel CGI" \
pankso@23 22 --package-version="$(VERSION)" ./index.cgi
pankso@25 23 xgettext -o po/tazpanel-live/tazpanel-live.pot -L Shell \
pankso@25 24 --package-name="Tazpanel live CGI" \
pankso@25 25 --package-version="$(VERSION)" ./live.cgi
pankso@6 26
pankso@6 27 msgmerge:
pankso@6 28 @for l in $(LINGUAS); do \
pankso@6 29 echo -n "Updating $$l po file."; \
pankso@6 30 msgmerge -U po/tazpkg-cgi/$$l.po po/tazpkg-cgi/tazpkg-cgi.pot; \
pankso@6 31 done;
pankso@6 32
pankso@6 33 msgfmt:
pankso@6 34 @for l in $(LINGUAS); do \
pankso@6 35 echo "Compiling $$l mo file..."; \
pankso@6 36 mkdir -p po/mo/$$l/LC_MESSAGES; \
pankso@6 37 msgfmt -o po/mo/$$l/LC_MESSAGES/tazpkg-cgi.mo po/tazpkg-cgi/$$l.po; \
pankso@6 38 done;
pankso@6 39
pankso@12 40 # Installation
pankso@6 41
pankso@12 42 install:
pankso@12 43 mkdir -p $(DESTDIR)$(PREFIX)/bin \
pankso@12 44 $(DESTDIR)$(PREFIX)/share/locale \
pankso@12 45 $(DESTDIR)$(SYSCONFDIR) \
pankso@12 46 $(DESTDIR)$(PANEL)
pankso@12 47 cp -f tazpanel $(DESTDIR)$(PREFIX)/bin
pankso@17 48 cp -f *.conf data/httpd.conf $(DESTDIR)$(SYSCONFDIR)
pankso@12 49 cp -a *.cgi lib/ styles/ $(DESTDIR)$(PANEL)
pankso@12 50 #cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale
pankso@12 51