spk annotate Makefile @ rev 104

changed several tools to use lib functions
author Christian Mesh <meshca@clarkson.edu>
date Sat Jun 02 18:48:02 2012 -0500 (2012-06-02)
parents 2caa9666fc1f
children dae62126a6a4
rev   line source
pankso@10 1 # Makefile for Spk.
pankso@10 2 #
pankso@10 3
pankso@10 4 PACKAGE="spk"
pankso@10 5 PREFIX?=/usr
pankso@10 6 LINGUAS?=
pankso@10 7
pankso@10 8 all: help
pankso@10 9
pankso@10 10 # i18n
pankso@10 11
pankso@10 12 pot:
pankso@10 13 xgettext -o po/$(PACKAGE).pot -L Shell --package-name="Spk" \
pankso@10 14 ./spk ./spk-rm
pankso@10 15
pankso@10 16 msgmerge:
pankso@10 17 @for l in $(LINGUAS); do \
pankso@10 18 echo -n "Updating $$l po file."; \
pankso@10 19 msgmerge -U po/$$l.po po/$(PACKAGE).pot; \
pankso@10 20 done;
pankso@10 21
pankso@10 22 msgfmt:
pankso@10 23 @for l in $(LINGUAS); do \
pankso@10 24 echo "Compiling $$l mo file..."; \
pankso@10 25 mkdir -p po/mo/$$l/LC_MESSAGES; \
pankso@10 26 msgfmt -o po/mo/$$l/LC_MESSAGES/$(PACKAGE).mo po/$$l.po; \
pankso@10 27 done;
pankso@10 28
pankso@10 29 # Install
pankso@10 30
pankso@10 31 install-msg: msgfmt
pankso@10 32 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/locale
pankso@10 33 cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale
pankso@10 34
pankso@16 35 install-lib:
pankso@16 36 install -m 0755 -d $(DESTDIR)$(PREFIX)/lib/slitaz
pankso@16 37 install -m 0755 lib/libspk.sh $(DESTDIR)$(PREFIX)/lib/slitaz
pankso@16 38
pankso@16 39 install: install-lib
pankso@10 40 install -m 0755 -d $(DESTDIR)$(PREFIX)/bin
pankso@19 41 install -m 0755 -d $(DESTDIR)$(PREFIX)/sbin
pankso@10 42 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/doc/spk
pankso@19 43 install -m 0755 spk $(DESTDIR)$(PREFIX)/bin
pankso@16 44 install -m 0755 spk-ls $(DESTDIR)$(PREFIX)/bin
pankso@19 45 install -m 0755 spk-rm $(DESTDIR)$(PREFIX)/sbin
pankso@31 46 install -m 0755 spk-add $(DESTDIR)$(PREFIX)/sbin
pankso@62 47 install -m 0755 spk-mirror $(DESTDIR)$(PREFIX)/sbin
pankso@80 48 install -m 0755 spk-up $(DESTDIR)$(PREFIX)/sbin
pankso@10 49
pankso@10 50 # Clean source
pankso@10 51
pankso@10 52 clean:
pankso@10 53 rm -rf po/mo
pankso@10 54 rm -f po/*~
pankso@10 55