tazpanel annotate Makefile @ rev 23

Rename tazpkg.cgi to pkgs.cgi
author Christophe Lincoln <pankso@slitaz.org>
date Tue Apr 05 01:42:16 2011 +0200 (2011-04-05)
parents bbd7b3e24974
children 79c49d85215d
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@14 16 --package-version="$(VERSION)" ./tazpkg.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@6 23
pankso@6 24 msgmerge:
pankso@6 25 @for l in $(LINGUAS); do \
pankso@6 26 echo -n "Updating $$l po file."; \
pankso@6 27 msgmerge -U po/tazpkg-cgi/$$l.po po/tazpkg-cgi/tazpkg-cgi.pot; \
pankso@6 28 done;
pankso@6 29
pankso@6 30 msgfmt:
pankso@6 31 @for l in $(LINGUAS); do \
pankso@6 32 echo "Compiling $$l mo file..."; \
pankso@6 33 mkdir -p po/mo/$$l/LC_MESSAGES; \
pankso@6 34 msgfmt -o po/mo/$$l/LC_MESSAGES/tazpkg-cgi.mo po/tazpkg-cgi/$$l.po; \
pankso@6 35 done;
pankso@6 36
pankso@12 37 # Installation
pankso@6 38
pankso@12 39 install:
pankso@12 40 mkdir -p $(DESTDIR)$(PREFIX)/bin \
pankso@12 41 $(DESTDIR)$(PREFIX)/share/locale \
pankso@12 42 $(DESTDIR)$(SYSCONFDIR) \
pankso@12 43 $(DESTDIR)$(PANEL)
pankso@12 44 cp -f tazpanel $(DESTDIR)$(PREFIX)/bin
pankso@17 45 cp -f *.conf data/httpd.conf $(DESTDIR)$(SYSCONFDIR)
pankso@12 46 cp -a *.cgi lib/ styles/ $(DESTDIR)$(PANEL)
pankso@12 47 #cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale
pankso@12 48