slitaz-base-files view Makefile @ rev 125

Add /lib/libtaz.sh
author Christophe Lincoln <pankso@slitaz.org>
date Thu Apr 12 21:53:58 2012 +0200 (2012-04-12)
parents
children 524eab3120ae
line source
1 # Makefile for SliTaz Bugs.
2 #
4 PACKAGE="slitaz-base"
5 PREFIX?=/usr
6 LINGUAS?=fr
8 all: help
10 help:
11 @echo "make [pot|msgmerge|msgfmt|install-libtaz|install-msg|install|clean]"
13 # i18n
15 pot:
16 xgettext -o po/$(PACKAGE).pot -L Shell --package-name="SliTaz Base" \
17 ./rootfs/lib/libtaz.sh
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-libtaz:
35 install -m 0744 rootfs/lib/libtaz.sh $(DESTDIR)/lib
37 install-msg: msgfmt
38 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/locale
39 cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale
41 install: install-msg
42 cp -a rootfs/* $(DESTDIR)
43 chown -R root.root $(DESTDIR)
45 # Clean source
47 clean:
48 rm -rf po/mo