slitaz-tools annotate Makefile @ rev 506
Update AUTHORS file
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Oct 22 22:38:41 2010 +0200 (2010-10-22) |
parents | 31170d07c15e |
children | d9b27dc2fb9b |
rev | line source |
---|---|
pankso@447 | 1 # Makefile for SliTaz tools. |
pankso@447 | 2 # Check the README for more information. |
pankso@447 | 3 # |
pankso@447 | 4 PREFIX?=/usr |
pankso@447 | 5 DOCDIR?=/usr/share/doc |
pankso@447 | 6 DESTDIR?= |
pankso@447 | 7 TINYUTILS?=subox scpbox |
claudinei@448 | 8 LINGUAS?=fr pt |
pankso@466 | 9 |
pankso@447 | 10 all: |
pankso@447 | 11 |
pankso@447 | 12 # i18n. |
pankso@447 | 13 |
pankso@447 | 14 pot: |
pankso@447 | 15 @for p in $(TINYUTILS); do \ |
pankso@447 | 16 echo -n "Generating $$p pot file... "; \ |
claudinei@448 | 17 xgettext -o po/$$p/$$p.pot -L Shell --package-name=$$p tinyutils/$$p; \ |
pankso@447 | 18 echo "done"; \ |
pankso@447 | 19 done; |
pankso@447 | 20 |
pankso@447 | 21 msgmerge: |
pankso@447 | 22 @for p in $(TINYUTILS); do \ |
pankso@447 | 23 for l in $(LINGUAS); do \ |
pankso@447 | 24 echo -n "Updating $$p $$l po file."; \ |
pankso@447 | 25 msgmerge -U po/$$p/$$l.po po/$$p/$$p.pot ; \ |
pankso@447 | 26 done; \ |
pankso@447 | 27 done; |
pankso@447 | 28 |
pankso@447 | 29 msgfmt: |
pankso@447 | 30 @for p in $(TINYUTILS); do \ |
pankso@447 | 31 for l in $(LINGUAS); do \ |
pankso@447 | 32 echo -n "Compiling $$p $$l mo file... "; \ |
pankso@447 | 33 mkdir -p po/mo/$$l; \ |
pankso@447 | 34 msgfmt -o po/mo/$$l/$$p.mo po/$$p/$$l.po ; \ |
pankso@447 | 35 echo "done"; \ |
pankso@447 | 36 done; \ |
pankso@447 | 37 done; |
pankso@447 | 38 |
pankso@447 | 39 clean: |
pankso@447 | 40 rm -rf po/mo |