tinycm view Makefile @ rev 96
small fix to dashboard plugin
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Feb 17 13:56:41 2017 +0100 (2017-02-17) |
parents | 8a26630ccceb |
children | 511841d477a3 |
line source
1 # Makefile for SliTaz Bugs.
2 #
4 PACKAGE="tinycm"
5 PREFIX?=/usr
6 DESTDIR?=
7 WEB?=/var/www/cgi-bin/tinycm
8 AUTH?=/var/lib/slitaz
9 LINGUAS?=pt_BR fr ru
11 all: msgfmt
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: install-web
35 install -m 0700 -d $(DESTDIR)$(AUTH)/people
36 install -m 0700 -d $(DESTDIR)$(AUTH)/auth
37 install -m 0777 -d $(DESTDIR)$(PREFIX)/share/locale
38 cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale
39 # Set permissions
40 chown -R www.www $(DESTDIR)$(AUTH)/auth
41 chown -R www.www $(DESTDIR)$(AUTH)/people
43 install-web:
44 install -m 0755 -d $(DESTDIR)$(WEB)/cache
45 cp -a config.cgi favicon.ico index.cgi style.css images lib \
46 plugins content $(DESTDIR)$(WEB)
47 # Set permissions
48 chown -R www.www $(DESTDIR)$(WEB)/content
49 chown -R www.www $(DESTDIR)$(WEB)/cache
51 install-slitaz: install
52 install -m 0777 -d $(DESTDIR)$(PREFIX)/share/applications
53 install -m 0644 data/*.desktop $(DESTDIR)$(PREFIX)/share/applications
55 uninstall:
56 rm -rf $(DESTDIR)$(WEB)
57 rm $(DESTDIR)$(PREFIX)/share/applications/tinycm.desktop
59 # Clean source
61 clean:
62 rm -rf po/mo