slitaz-pizza view Makefile @ rev 14

Add Gravatar support to flavor status page
author Christophe Lincoln <pankso@slitaz.org>
date Mon Mar 26 13:05:04 2012 +0200 (2012-03-26)
parents 890754d756ce
children 5c9d080960ce
line source
1 # Makefile for SliTaz Pizza.
2 #
4 PACKAGE="pizza"
5 PREFIX?=/usr
6 DESTDIR?=
7 LINGUAS?=fr
9 all:
11 # i18n
13 pot:
14 xgettext -o po/pizza.pot -L Shell --package-name="SliTaz Pizza" \
15 ./web/pizza.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 #install -m 0644 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