slitaz-tools view tazdrop/Makefile @ rev 601

Makefile: install tools and boxes with PO files to be more standard and avoid many cp in receipt. Also update the README
author Christophe Lincoln <pankso@slitaz.org>
date Wed Jun 01 19:04:13 2011 +0200 (2011-06-01)
parents 3379cae52afe
children bb2489a18dc8
line source
1 # Makefile for TazDrop
2 #
3 PREFIX?=/usr
4 SYSCONFDIR?=/etc/slitaz
5 LINGUAS?=pt
7 # Installation
9 install:
10 mkdir -p $(DESTDIR)$(PREFIX)/bin \
11 $(DESTDIR)$(PREFIX)/share/doc/tazdrop \
12 $(DESTDIR)$(PREFIX)/share/locale \
13 $(DESTDIR)$(PREFIX)/share/applications \
14 $(DESTDIR)$(SYSCONFDIR)
15 install -m 0777 tazdrop $(DESTDIR)$(PREFIX)/bin
16 install -m 0644 *.conf $(DESTDIR)$(SYSCONFDIR)
17 install -m 0644 data/*.desktop $(DESTDIR)$(PREFIX)/share/applications
18 install -m 0644 README $(DESTDIR)$(PREFIX)/share/doc/tazdrop
19 for l in $(LINGUAS); \
20 do \
21 install -m 0777 -d $(DESTDIR)$(PREFIX)/share/locale/$$l/LC_MESSAGES; \
22 install -m 0644 ../po/mo/$$l/tazdrop.mo \
23 $(DESTDIR)$(PREFIX)/share/locale/$$l/LC_MESSAGES; \
24 done;