tinycm rev 2
Add Makefile
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 11 15:57:08 2012 +0200 (2012-04-11) |
parents | b0892064b66b |
children | fa494a9879e3 |
files | Makefile |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/Makefile Wed Apr 11 15:57:08 2012 +0200 1.3 @@ -0,0 +1,47 @@ 1.4 +# Makefile for SliTaz Bugs. 1.5 +# 1.6 + 1.7 +PACKAGE="tinycm" 1.8 +PREFIX?=/usr 1.9 +DESTDIR?= 1.10 +WEB?=/var/www 1.11 +VAR?=/var/lib/slitaz 1.12 +LINGUAS?= 1.13 + 1.14 +all: 1.15 + 1.16 +# i18n 1.17 + 1.18 +pot: 1.19 + xgettext -o po/tinycm.pot -L Shell --package-name="TinyCM" \ 1.20 + ./index.cgi 1.21 + 1.22 +msgmerge: 1.23 + @for l in $(LINGUAS); do \ 1.24 + echo -n "Updating $$l po file."; \ 1.25 + msgmerge -U po/$$l.po po/$(PACKAGE).pot; \ 1.26 + done; 1.27 + 1.28 +msgfmt: 1.29 + @for l in $(LINGUAS); do \ 1.30 + echo "Compiling $$l mo file..."; \ 1.31 + mkdir -p po/mo/$$l/LC_MESSAGES; \ 1.32 + msgfmt -o po/mo/$$l/LC_MESSAGES/$(PACKAGE).mo po/$$l.po; \ 1.33 + done; 1.34 + 1.35 +# Install 1.36 + 1.37 +install: 1.38 + install -m 0700 -d $(DESTDIR)/$(VAR)/people 1.39 + install -m 0700 -d $(DESTDIR)/$(VAR)/auth 1.40 + install -m 0755 -d $(DESTDIR)$(WEB)/content 1.41 + install -m 0755 -d $(DESTDIR)$(WEB)/cache 1.42 + #install -m 0777 -d $(DESTDIR)$(PREFIX)/share/applications 1.43 + #install -m 0777 -d $(DESTDIR)$(PREFIX)/share/locale 1.44 + touch $(DESTDIR)/$(VAR)/auth/people 1.45 + chmod 0600 $(DESTDIR)$(VAR)/auth/people 1.46 + #install -m 0644 data/tinycm.desktop \ 1.47 + # $(DESTDIR)$(PREFIX)/share/applications 1.48 + #cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale 1.49 + chown -R www.www $(DESTDIR)/$(VAR) 1.50 + chown -R www.www $(DESTDIR)/$(WEB)/content