slitaz-base-files view Makefile @ rev 285
Change slitaz-doc CSS and JS.
Show link destination (while current SliTaz doc browser (TazWeb) can't do it by itself).
Show doc section title.
Show link destination (while current SliTaz doc browser (TazWeb) can't do it by itself).
Show doc section title.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Oct 08 00:22:16 2015 +0300 (2015-10-08) |
parents | 9db13a2c9830 |
children | 5bc2687bfecf |
line source
1 # Makefile for SliTaz Bugs.
2 #
4 PACKAGE=slitaz-base
5 PREFIX?=/usr
6 LINGUAS?=el es fa fr pl pt_BR ru sv zh_CN zh_TW
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" -k -klgettext \
18 ./rootfs/lib/libtaz.sh
19 xgettext -j -o po/$(PACKAGE).pot -L Shell --package-name="SliTaz Base" \
20 --copyright-holder="SliTaz" -k_ -k_n \
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