slitaz-base-files view Makefile @ rev 172

add libpkg.sh to pot file and up fr.po
author Christophe Lincoln <pankso@slitaz.org>
date Thu May 17 09:10:09 2012 +0200 (2012-05-17)
parents 23374e58f8e3
children efb8e0291f24
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 ./rootfs/usr/lib/slitaz/libpkg.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
36 install -m 0755 -d $(DESTDIR)/usr/share/doc/slitaz
37 install -m 0644 doc/libtaz.txt $(DESTDIR)/usr/share/doc/slitaz
39 install-httphelper:
40 install -m 0744 rootfs/usr/lib/slitaz/httphelper.sh \
41 $(DESTDIR)/usr/lib/slitaz
42 install -m 0755 -d $(DESTDIR)/usr/share/doc/slitaz
43 install -m 0644 doc/httphelper.txt $(DESTDIR)/usr/share/doc/slitaz
45 install-libpkg:
46 install -m 0755 -d $(DESTDIR)/usr/lib/slitaz
47 install -m 0755 -d $(DESTDIR)/usr/share/doc/slitaz
48 install -m 0744 rootfs/usr/lib/slitaz/libpkg.sh \
49 $(DESTDIR)/usr/lib/slitaz
50 install -m 0644 doc/libpkg.txt $(DESTDIR)/usr/share/doc/slitaz
52 install-slitaz:
53 install -m 0755 -d $(DESTDIR)/usr/bin
54 install -m 0755 -d $(DESTDIR)/etc/slitaz
55 install -m 0744 rootfs/usr/bin/slitaz $(DESTDIR)/usr/bin
56 install -m 0644 rootfs/etc/slitaz/slitaz.conf $(DESTDIR)/etc/slitaz
58 install-msg: msgfmt
59 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/locale
60 cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale
62 install: install-msg
63 cp -a rootfs/* $(DESTDIR)
64 install -m 0755 -d $(DESTDIR)/usr/share/doc/slitaz
65 cp -a doc/* $(DESTDIR)/usr/share/doc/slitaz
66 chown -R root.root $(DESTDIR)
68 # Clean source
70 clean:
71 rm -rf po/mo
72 rm -f po/*~