slitaz-base-files view Makefile @ rev 157
removed duplicate function in libpkg
author | Christian Mesh <meshca@clarkson.edu> |
---|---|
date | Fri May 11 10:35:00 2012 -0500 (2012-05-11) |
parents | 8ca19a8867e6 |
children | 1691917d8883 |
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
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/*~