slitaz-base-files view Makefile @ rev 211

Add: pt_BR.po && update httpd-cgi.desktop
author Claudinei Pereira <claudinei@slitaz.org>
date Tue Jan 22 23:57:14 2013 -0200 (2013-01-22)
parents cf390f54e445
children 9878c3c77ff9
line source
1 # Makefile for SliTaz Bugs.
2 #
4 PACKAGE=slitaz-base
5 PREFIX?=/usr
6 LINGUAS?=el fr ru sv
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 --copyright-holder="SliTaz Association" -k -klgettext \
18 ./rootfs/lib/libtaz.sh
19 xgettext -j -o po/$(PACKAGE).pot -L Shell --package-name="SliTaz Base" \
20 --copyright-holder="SliTaz Association" \
21 ./rootfs/usr/lib/slitaz/libpkg.sh \
22 ./rootfs/var/www/cgi-bin/cgi-env.sh \
23 ./rootfs/var/www/cgi-bin/index.cgi \
24 ./rootfs/usr/bin/man
26 msgmerge:
27 @for l in $(LINGUAS); do \
28 echo -n "Updating $$l po file."; \
29 msgmerge -U po/$$l.po po/$(PACKAGE).pot; \
30 done;
32 msgfmt:
33 @for l in $(LINGUAS); do \
34 echo "Compiling $$l mo file..."; \
35 mkdir -p po/mo/$$l/LC_MESSAGES; \
36 msgfmt -o po/mo/$$l/LC_MESSAGES/$(PACKAGE).mo po/$$l.po; \
37 done;
39 # Install
41 install-libtaz:
42 install -m 0744 rootfs/lib/libtaz.sh $(DESTDIR)/lib
43 install -m 0755 -d $(DESTDIR)/usr/share/doc/slitaz
44 install -m 0644 doc/libtaz.txt $(DESTDIR)/usr/share/doc/slitaz
46 install-httphelper:
47 install -m 0744 rootfs/usr/lib/slitaz/httphelper.sh \
48 $(DESTDIR)/usr/lib/slitaz
49 install -m 0755 -d $(DESTDIR)/usr/share/doc/slitaz
50 install -m 0644 doc/httphelper.txt $(DESTDIR)/usr/share/doc/slitaz
52 install-libpkg:
53 install -m 0755 -d $(DESTDIR)/usr/lib/slitaz
54 install -m 0755 -d $(DESTDIR)/usr/share/doc/slitaz
55 install -m 0744 rootfs/usr/lib/slitaz/libpkg.sh \
56 $(DESTDIR)/usr/lib/slitaz
57 install -m 0644 doc/libpkg.txt $(DESTDIR)/usr/share/doc/slitaz
59 install-slitaz:
60 install -m 0755 -d $(DESTDIR)/usr/bin
61 install -m 0755 -d $(DESTDIR)/etc/slitaz
62 install -m 0744 rootfs/usr/bin/slitaz $(DESTDIR)/usr/bin
63 install -m 0644 rootfs/etc/slitaz/slitaz.conf $(DESTDIR)/etc/slitaz
65 install-msg: msgfmt
66 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/locale
67 cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale
69 install: install-msg
70 cp -a rootfs/* $(DESTDIR)/
71 install -m 0755 -d $(DESTDIR)/usr/share/doc/slitaz
72 cp -a doc/* $(DESTDIR)/usr/share/doc/slitaz
73 chown -R root:root $(DESTDIR)/usr/share/doc/slitaz
75 # Clean source
77 clean:
78 rm -rf po/mo
79 rm -f po/*~ $(PACKAGE)*.tar.gz $(PACKAGE)*.md5