slitaz-pizza view Makefile @ rev 59

Add Swedish translations (thanks Emil Eklund)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jul 14 15:38:07 2012 +0000 (2012-07-14)
parents 7f228f4402eb
children bac588090f55
line source
1 # Makefile for SliTaz Pizza.
2 #
4 PACKAGE="pizza"
5 PREFIX?=/usr
6 DESTDIR?=
7 LINGUAS?=fr sv
9 all:
11 # i18n
13 pot:
14 xgettext -o po/pizza.pot -L Shell --package-name="SliTaz Pizza" \
15 ./web/pizza.cgi ./web/pkgs.cgi
17 msgmerge:
18 @for l in $(LINGUAS); do \
19 echo -n "Updating $$l po file."; \
20 msgmerge -U po/$$l.po po/$(PACKAGE).pot; \
21 done;
23 msgfmt:
24 @for l in $(LINGUAS); do \
25 echo "Compiling $$l mo file..."; \
26 mkdir -p po/mo/$$l/LC_MESSAGES; \
27 msgfmt -o po/mo/$$l/LC_MESSAGES/pizza.mo po/$$l.po; \
28 done;
30 # Installation
32 install: msgfmt
33 install -m 0777 -d $(DESTDIR)/etc/slitaz
34 install -m 0777 -d $(DESTDIR)$(PREFIX)/bin
35 install -m 0777 -d $(DESTDIR)$(PREFIX)/share/pizza/web
36 install -m 0777 -d $(DESTDIR)$(PREFIX)/share/pizza/web/images
37 install -m 0777 -d $(DESTDIR)$(PREFIX)/share/doc/pizza
38 install -m 0755 pizza $(DESTDIR)$(PREFIX)/bin
39 install -m 0755 pizza-bot $(DESTDIR)$(PREFIX)/share/pizza
40 install -m 0755 data/* $(DESTDIR)$(PREFIX)/share/pizza
41 install -m 0644 pizza.conf $(DESTDIR)/etc/slitaz
42 install -m 0644 README $(DESTDIR)$(PREFIX)/share/doc/pizza
43 cp -a doc/* $(DESTDIR)$(PREFIX)/share/doc/pizza
44 cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale
45 cp -a web $(DESTDIR)$(PREFIX)/share/pizza
46 chown -R root.root $(DESTDIR)$(PREFIX)/share/pizza
48 uninstall:
49 rm -rf \
50 $(DESTDIR)$(PREFIX)/bin/pizza \
51 $(DESTDIR)/etc/slitaz/pizza.conf \
52 $(DESTDIR)$(PREFIX)/share/pizza \
53 $(DESTDIR)$(PREFIX)/share/doc/pizza
55 clean:
56 rm -rf po/*~
57 rm -rf po/mo