spk view Makefile @ rev 154

Added tag 1.4.1 for changeset 2a83ddd0845a
author Christophe Lincoln <pankso@slitaz.org>
date Fri Apr 25 04:26:40 2014 +0200 (2014-04-25)
parents 2024b7748587
children
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-doc:
40 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/doc/spk
41 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/applications
42 install -m 0644 data/spk-doc.desktop $(DESTDIR)$(PREFIX)/share/applications
43 install -m 0644 doc/spk.*.html $(DESTDIR)$(PREFIX)/share/doc/spk
44 cp -a doc/spk.html $(DESTDIR)$(PREFIX)/share/doc/spk
46 install: install-lib install-doc
47 install -m 0755 -d $(DESTDIR)$(PREFIX)/bin
48 install -m 0755 -d $(DESTDIR)$(PREFIX)/sbin
49 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/applications
50 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/pixmaps
51 install -m 0755 spk $(DESTDIR)$(PREFIX)/bin
52 install -m 0755 spk-ls $(DESTDIR)$(PREFIX)/bin
53 install -m 0755 spk-find $(DESTDIR)$(PREFIX)/bin
54 install -m 0755 spk-dialog $(DESTDIR)$(PREFIX)/sbin
55 install -m 0755 spk-rm $(DESTDIR)$(PREFIX)/sbin
56 install -m 0755 spk-add $(DESTDIR)$(PREFIX)/sbin
57 install -m 0755 spk-mirror $(DESTDIR)$(PREFIX)/sbin
58 install -m 0755 spk-up $(DESTDIR)$(PREFIX)/sbin
59 install -m 0755 spk-convert $(DESTDIR)$(PREFIX)/sbin
60 cp data/spk-dialog.desktop $(DESTDIR)$(PREFIX)/share/applications
61 cp data/spk.png $(DESTDIR)$(PREFIX)/share/pixmaps
63 # Clean source
65 clean:
66 rm -rf po/mo
67 rm -f po/*~