tinycm view Makefile @ rev 43

Add: pt_BR.po
author Claudinei Pereira <claudinei@slitaz.org>
date Tue Jan 14 18:33:35 2014 -0200 (2014-01-14)
parents 5ddec5a1e5bc
children 53a267833266
line source
1 # Makefile for SliTaz Bugs.
2 #
4 PACKAGE="tinycm"
5 PREFIX?=/usr
6 DESTDIR?=
7 WEB?=/var/www/cgi-bin/tinycm
8 LOGIN?=/var/lib/slitaz
9 LINGUAS?=pt_BR
11 all:
13 # i18n
15 pot:
16 xgettext -o po/tinycm.pot -L Shell --package-name="TinyCM" \
17 ./index.cgi
19 msgmerge:
20 @for l in $(LINGUAS); do \
21 echo -n "Updating $$l po file."; \
22 msgmerge -U po/$$l.po po/$(PACKAGE).pot; \
23 done;
25 msgfmt:
26 @for l in $(LINGUAS); do \
27 echo "Compiling $$l mo file..."; \
28 mkdir -p po/mo/$$l/LC_MESSAGES; \
29 msgfmt -o po/mo/$$l/LC_MESSAGES/$(PACKAGE).mo po/$$l.po; \
30 done;
32 # Install
34 install:
35 install -m 0700 -d $(DESTDIR)$(LOGIN)/people
36 install -m 0700 -d $(DESTDIR)$(LOGIN)/auth
37 install -m 0755 -d $(DESTDIR)$(WEB)/cache
38 install -m 0777 -d $(DESTDIR)$(PREFIX)/share/applications
39 #install -m 0777 -d $(DESTDIR)$(PREFIX)/share/locale
41 cp -a config.cgi favicon.ico index.cgi style.css images lib \
42 plugins content/ $(DESTDIR)$(WEB)
43 #cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale
44 install -m 0644 data/*.desktop $(DESTDIR)$(PREFIX)/share/applications
46 # Set permissions
47 chown -R www.www $(DESTDIR)$(LOGIN)/auth
48 chown -R www.www $(DESTDIR)$(LOGIN)/people
49 chown -R www.www $(DESTDIR)$(WEB)/content
50 chown -R www.www $(DESTDIR)$(WEB)/cache
52 uninstall:
53 rm -rf $(DESTDIR)$(WEB)
54 rm $(DESTDIR)$(PREFIX)/share/applications/tinycm.desktop