tinycm view Makefile @ rev 2

Add Makefile
author Christophe Lincoln <pankso@slitaz.org>
date Wed Apr 11 15:57:08 2012 +0200 (2012-04-11)
parents
children 6841b2e2379d
line source
1 # Makefile for SliTaz Bugs.
2 #
4 PACKAGE="tinycm"
5 PREFIX?=/usr
6 DESTDIR?=
7 WEB?=/var/www
8 VAR?=/var/lib/slitaz
9 LINGUAS?=
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)/$(VAR)/people
36 install -m 0700 -d $(DESTDIR)/$(VAR)/auth
37 install -m 0755 -d $(DESTDIR)$(WEB)/content
38 install -m 0755 -d $(DESTDIR)$(WEB)/cache
39 #install -m 0777 -d $(DESTDIR)$(PREFIX)/share/applications
40 #install -m 0777 -d $(DESTDIR)$(PREFIX)/share/locale
41 touch $(DESTDIR)/$(VAR)/auth/people
42 chmod 0600 $(DESTDIR)$(VAR)/auth/people
43 #install -m 0644 data/tinycm.desktop \
44 # $(DESTDIR)$(PREFIX)/share/applications
45 #cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale
46 chown -R www.www $(DESTDIR)/$(VAR)
47 chown -R www.www $(DESTDIR)/$(WEB)/content