slitaz-base-files view Makefile @ rev 154

added some stuff to libspk
author Christian Mesh <meshca@clarkson.edu>
date Fri May 11 10:06:20 2012 -0500 (2012-05-11)
parents d3d67c44be81
children 23374e58f8e3
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-slitaz:
46 install -m 0755 -d $(DESTDIR)/usr/bin
47 install -m 0755 -d $(DESTDIR)/etc/slitaz
48 install -m 0744 rootfs/usr/bin/slitaz $(DESTDIR)/usr/bin
49 install -m 0644 rootfs/etc/slitaz/slitaz.conf $(DESTDIR)/etc/slitaz
51 install-msg: msgfmt
52 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/locale
53 cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale
55 install: install-msg
56 cp -a rootfs/* $(DESTDIR)
57 install -m 0755 -d $(DESTDIR)/usr/share/doc/slitaz
58 cp -a doc/* $(DESTDIR)/usr/share/doc/slitaz
59 chown -R root.root $(DESTDIR)
61 # Clean source
63 clean:
64 rm -rf po/mo
65 rm -f po/*~