slitaz-forge view pkgs/Makefile @ rev 591

mirror/root/dir-generator.php: ISO-8859-1 -> UTF-8; white here already implemented link to the WebArchive (remove line breaks); remove unwanted letters from regexp. mirror/root/static/slitaz.css: white links on light-grey background -> brown links; searchbox with type="search" (it adds "clean" button on the right side when typing).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jan 17 15:20:34 2015 +0200 (2015-01-17)
parents f7caab5251c0
children d50b1e11ce39
line source
1 # Makefile for TazPkg Web.
2 #
4 PACKAGE="tazpkg-web"
5 LINGUAS?=de es_AR fa fr pl pt_BR ru sv zh zh_CN zh_TW
7 all: msgfmt
9 # i18n
11 pot:
12 xgettext -o po/$(PACKAGE).pot -L Shell \
13 --package-name="TazPkg Web" \
14 ./search.sh ./lib/header.sh
16 msgmerge:
17 @for l in $(LINGUAS); do \
18 echo -n "Updating $$l po file."; \
19 msgmerge -U po/$$l.po po/$(PACKAGE).pot; \
20 done;
22 msgfmt:
23 @for l in $(LINGUAS); do \
24 echo "Compiling $$l mo file..."; \
25 mkdir -p po/mo/$$l/LC_MESSAGES; \
26 msgfmt -o po/mo/$$l/LC_MESSAGES/$(PACKAGE).mo po/$$l.po; \
27 done;
29 # Install
31 install-msg: msgfmt
32 cp -a po/mo/* /usr/share/locale
34 # Clean source
36 clean:
37 rm -rf po/mo
38 rm -f po/*.mo
39 rm -f po/*.*~
41 help:
42 @echo "$$ pot - remake pot"
43 @echo "$$ msgmerge - update *.po from *.pot"
44 @echo "$$ msgfmt | all - compile *.mo"
45 @echo "# install-msg - compile *.mo & install to system"
46 @echo "$$ clean - remove *.mo"