spk view Makefile @ rev 95
spk-up: improve extra local package
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri May 25 16:42:10 2012 +0200 (2012-05-25) |
parents | 2caa9666fc1f |
children | dae62126a6a4 |
line source
1 # Makefile for Spk.
2 #
4 PACKAGE="spk"
5 PREFIX?=/usr
6 LINGUAS?=
8 all: help
10 # i18n
12 pot:
13 xgettext -o po/$(PACKAGE).pot -L Shell --package-name="Spk" \
14 ./spk ./spk-rm
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 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/locale
33 cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale
35 install-lib:
36 install -m 0755 -d $(DESTDIR)$(PREFIX)/lib/slitaz
37 install -m 0755 lib/libspk.sh $(DESTDIR)$(PREFIX)/lib/slitaz
39 install: install-lib
40 install -m 0755 -d $(DESTDIR)$(PREFIX)/bin
41 install -m 0755 -d $(DESTDIR)$(PREFIX)/sbin
42 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/doc/spk
43 install -m 0755 spk $(DESTDIR)$(PREFIX)/bin
44 install -m 0755 spk-ls $(DESTDIR)$(PREFIX)/bin
45 install -m 0755 spk-rm $(DESTDIR)$(PREFIX)/sbin
46 install -m 0755 spk-add $(DESTDIR)$(PREFIX)/sbin
47 install -m 0755 spk-mirror $(DESTDIR)$(PREFIX)/sbin
48 install -m 0755 spk-up $(DESTDIR)$(PREFIX)/sbin
50 # Clean source
52 clean:
53 rm -rf po/mo
54 rm -f po/*~