slitaz-tools view Makefile @ rev 459
hwsetup: improve depends and fix typos (thanks claudinei)
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Wed Mar 24 05:05:28 2010 -0400 (2010-03-24) |
parents | ceec382a20a6 |
children | c725710d618b |
line source
1 # Makefile for SliTaz tools.
2 # Check the README for more information.
3 #
4 PREFIX?=/usr
5 DOCDIR?=/usr/share/doc
6 DESTDIR?=
7 TINYUTILS?=subox scpbox
8 LINGUAS?=fr pt
10 all:
12 # i18n.
14 pot:
15 @for p in $(TINYUTILS); do \
16 echo -n "Generating $$p pot file... "; \
17 xgettext -o po/$$p/$$p.pot -L Shell --package-name=$$p tinyutils/$$p; \
18 echo "done"; \
19 done;
21 msgmerge:
22 @for p in $(TINYUTILS); do \
23 for l in $(LINGUAS); do \
24 echo -n "Updating $$p $$l po file."; \
25 msgmerge -U po/$$p/$$l.po po/$$p/$$p.pot ; \
26 done; \
27 done;
29 msgfmt:
30 @for p in $(TINYUTILS); do \
31 for l in $(LINGUAS); do \
32 echo -n "Compiling $$p $$l mo file... "; \
33 mkdir -p po/mo/$$l; \
34 msgfmt -o po/mo/$$l/$$p.mo po/$$p/$$l.po ; \
35 echo "done"; \
36 done; \
37 done;
39 clean:
40 rm -rf po/mo