tinycm annotate Makefile @ rev 64
Tiny edits
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Thu Feb 06 19:35:03 2014 +0000 (2014-02-06) |
parents | 3ca497430ce9 |
children | 0594e3147fb4 |
rev | line source |
---|---|
pankso@2 | 1 # Makefile for SliTaz Bugs. |
pankso@2 | 2 # |
pankso@2 | 3 |
pankso@2 | 4 PACKAGE="tinycm" |
pankso@2 | 5 PREFIX?=/usr |
pankso@2 | 6 DESTDIR?= |
pankso@11 | 7 WEB?=/var/www/cgi-bin/tinycm |
pankso@45 | 8 AUTH?=/var/lib/slitaz |
pankso@55 | 9 LINGUAS?=pt_BR fr |
pankso@2 | 10 |
pankso@45 | 11 all: msgfmt |
pankso@2 | 12 |
pankso@2 | 13 # i18n |
pankso@2 | 14 |
pankso@2 | 15 pot: |
pankso@2 | 16 xgettext -o po/tinycm.pot -L Shell --package-name="TinyCM" \ |
pankso@2 | 17 ./index.cgi |
pankso@2 | 18 |
pankso@2 | 19 msgmerge: |
pankso@2 | 20 @for l in $(LINGUAS); do \ |
pankso@2 | 21 echo -n "Updating $$l po file."; \ |
pankso@2 | 22 msgmerge -U po/$$l.po po/$(PACKAGE).pot; \ |
pankso@2 | 23 done; |
pankso@2 | 24 |
pankso@2 | 25 msgfmt: |
pankso@2 | 26 @for l in $(LINGUAS); do \ |
pankso@2 | 27 echo "Compiling $$l mo file..."; \ |
pankso@2 | 28 mkdir -p po/mo/$$l/LC_MESSAGES; \ |
pankso@2 | 29 msgfmt -o po/mo/$$l/LC_MESSAGES/$(PACKAGE).mo po/$$l.po; \ |
pankso@2 | 30 done; |
pankso@2 | 31 |
pankso@2 | 32 # Install |
pankso@2 | 33 |
pankso@45 | 34 install: install-web |
pankso@45 | 35 install -m 0700 -d $(DESTDIR)$(AUTH)/people |
pankso@45 | 36 install -m 0700 -d $(DESTDIR)$(AUTH)/auth |
pankso@45 | 37 install -m 0777 -d $(DESTDIR)$(PREFIX)/share/locale |
pankso@45 | 38 cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale |
pankso@32 | 39 # Set permissions |
pankso@45 | 40 chown -R www.www $(DESTDIR)$(AUTH)/auth |
pankso@45 | 41 chown -R www.www $(DESTDIR)$(AUTH)/people |
pankso@12 | 42 |
pankso@45 | 43 install-web: |
pankso@45 | 44 install -m 0755 -d $(DESTDIR)$(WEB)/cache |
pankso@45 | 45 cp -a config.cgi favicon.ico index.cgi style.css images lib \ |
pankso@45 | 46 plugins content $(DESTDIR)$(WEB) |
pankso@51 | 47 # Set permissions |
pankso@51 | 48 chown -R www.www $(DESTDIR)$(WEB)/content |
pankso@51 | 49 chown -R www.www $(DESTDIR)$(WEB)/cache |
pankso@45 | 50 |
pankso@45 | 51 install-slitaz: install |
pankso@45 | 52 install -m 0777 -d $(DESTDIR)$(PREFIX)/share/applications |
pankso@45 | 53 install -m 0644 data/*.desktop $(DESTDIR)$(PREFIX)/share/applications |
pankso@45 | 54 |
pankso@12 | 55 uninstall: |
pankso@12 | 56 rm -rf $(DESTDIR)$(WEB) |
pankso@18 | 57 rm $(DESTDIR)$(PREFIX)/share/applications/tinycm.desktop |
pankso@45 | 58 |
pankso@45 | 59 # Clean source |
pankso@45 | 60 |
pankso@45 | 61 clean: |
pankso@45 | 62 rm -rf po/mo |