ssfs view Makefile @ rev 73

Prepa for i18n
author Christophe Lincoln <pankso@slitaz.org>
date Mon Jun 13 20:57:43 2011 +0200 (2011-06-13)
parents 694076541061
children 00d35dfe62e4
line source
1 # Makefile for Ssfs
2 #
3 PREFIX?=/usr
4 DOCDIR?=$(PREFIX)/share/doc
5 DESTDIR?=
7 PACKAGE=ssfs
8 VERSION=0.1-beta
9 LINGUAS?=fr
11 all: msgmerge
13 # i18n
15 pot:
16 xgettext -o po/ssfs.pot -L Shell \
17 --package-name="Ssfs" \
18 --package-version="$(VERSION)" \
19 ./ssfs ./ssfs-box
21 msgmerge:
22 @for l in $(LINGUAS); do \
23 echo -n "Updating $$l po file."; \
24 msgmerge -U po/$$l.po po/ssfs.pot; \
25 done;
27 msgfmt:
28 @for l in $(LINGUAS); do \
29 echo "Compiling $$l mo file..."; \
30 mkdir -p po/mo/$$l/LC_MESSAGES; \
31 msgfmt -o po/mo/$$l/LC_MESSAGES/ssfs.mo po/$$l.po; \
32 done;
34 # Installation
36 install:
37 mkdir -p $(DESTDIR)/bin \
38 $(DESTDIR)/etc/$(PACKAGE) \
39 $(DESTDIR)$(DOCDIR)/$(PACKAGE) \
40 $(DESTDIR)$(PREFIX)/bin \
41 $(DESTDIR)$(PREFIX)/sbin \
42 $(DESTDIR)/var/lib/$(PACKAGE) \
43 $(DESTDIR)$(PREFIX)/share/applications \
44 $(DESTDIR)$(PREFIX)/share/pixmaps \
45 $(DESTDIR)$(PREFIX)/share/$(PACKAGE)/rootfs/bin
46 install -m 0755 $(PACKAGE)-sh $(DESTDIR)/bin
47 install -m 0755 $(PACKAGE) $(DESTDIR)$(PREFIX)/bin
48 install -m 0755 $(PACKAGE)-box $(DESTDIR)$(PREFIX)/bin
49 install -m 0755 $(PACKAGE)-server $(DESTDIR)$(PREFIX)/sbin
50 install -m 0644 README $(DESTDIR)$(DOCDIR)/$(PACKAGE)
51 install -m 0644 data/$(PACKAGE)-server.conf $(DESTDIR)/etc/$(PACKAGE)
52 install -m 0644 data/$(PACKAGE).png $(DESTDIR)$(PREFIX)/share/pixmaps
53 install -m 0644 data/$(PACKAGE).desktop \
54 $(DESTDIR)$(PREFIX)/share/applications
55 install -m 0755 $(PACKAGE)-env \
56 $(DESTDIR)$(PREFIX)/share/$(PACKAGE)/rootfs/bin
57 #cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale
58 touch $(DESTDIR)/var/lib/$(PACKAGE)/vdisk.files