slitaz-pizza view Makefile @ rev 128

Add po/it.po (thanks Christian Michelini)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 21 21:10:34 2018 +0200 (19 months ago)
parents 07ce6d626b09
children
line source
1 # Makefile for SliTaz Pizza.
2 #
4 PACKAGE="pizza"
5 PREFIX?=/usr
6 DESTDIR?=
7 LINGUAS?=el fa fr it ja pl pt_BR ru sv vi zh_CN
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 ./web/rootfs.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 0755 -d $(DESTDIR)/etc/slitaz
34 install -m 0755 -d $(DESTDIR)$(PREFIX)/bin
35 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/pizza/public
36 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/pizza/web
37 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/pizza/web/images
38 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/pizza/web/lib
39 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/doc/pizza
40 install -m 0755 pizza $(DESTDIR)$(PREFIX)/bin
41 install -m 0755 pizza-bot $(DESTDIR)$(PREFIX)/share/pizza
42 install -m 0755 public/index.cgi $(DESTDIR)$(PREFIX)/share/pizza/public
43 install -m 0755 data/* $(DESTDIR)$(PREFIX)/share/pizza
44 install -m 0644 pizza.conf $(DESTDIR)/etc/slitaz
45 install -m 0644 README $(DESTDIR)$(PREFIX)/share/doc/pizza
46 cp -a doc/* $(DESTDIR)$(PREFIX)/share/doc/pizza
47 cp -a po/mo $(DESTDIR)$(PREFIX)/share/locale
48 cp -a web $(DESTDIR)$(PREFIX)/share/pizza
49 chown -R root.root $(DESTDIR)$(PREFIX)/share/pizza
50 chmod 755 $(DESTDIR)$(PREFIX)/share/pizza/web/*.cgi
52 uninstall:
53 rm -rf \
54 $(DESTDIR)$(PREFIX)/bin/pizza \
55 $(DESTDIR)/etc/slitaz/pizza.conf \
56 $(DESTDIR)$(PREFIX)/share/pizza \
57 $(DESTDIR)$(PREFIX)/share/doc/pizza
59 clean:
60 rm -rf po/*~
61 rm -rf po/mo
62 rm -rf po/*.mo