tazweb view Makefile @ rev 123

Add French and Portuguese (Brasilian) translations ('make install' with Cookutils works not correctly with single translation)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 27 19:39:19 2013 +0000 (2013-02-27)
parents a8d926c59509
children f00b15e274ce
line source
1 # Makefile for TazWeb
2 #
3 PREFIX?=/usr
4 DOCDIR?=$(PREFIX)/share/doc
5 DESTDIR?=
7 PACKAGE=tazweb
8 VERSION=1.6.4
9 LINGUAS?=fr pt_BR ru
11 all:
12 gcc src/main.c -o $(PACKAGE) \
13 `pkg-config --cflags --libs gtk+-2.0 webkit-1.0`
14 @du -sh $(PACKAGE)
16 # i18n
18 pot:
19 xgettext -o po/$(PACKAGE).pot -L C -k_ \
20 --package-name="TazWeb" \
21 --package-version="$(VERSION)" \
22 ./src/main.c
24 msgmerge:
25 @for l in $(LINGUAS); do \
26 echo -n "Updating $$l po file."; \
27 msgmerge -U po/$$l.po po/$(PACKAGE).pot; \
28 done;
30 msgfmt:
31 @for l in $(LINGUAS); do \
32 echo "Compiling $$l mo file..."; \
33 mkdir -p po/mo/$$l/LC_MESSAGES; \
34 msgfmt -o po/mo/$$l/LC_MESSAGES/$(PACKAGE).mo po/$$l.po; \
35 done;
38 install:
39 mkdir -p \
40 $(DESTDIR)$(DOCDIR)/$(PACKAGE) \
41 $(DESTDIR)$(PREFIX)/bin \
42 $(DESTDIR)$(PREFIX)/share/tazweb \
43 $(DESTDIR)$(PREFIX)/share/pixmaps \
44 $(DESTDIR)$(PREFIX)/share/applications
45 install -m 0755 $(PACKAGE) $(DESTDIR)$(PREFIX)/bin
46 cp -d doc/* $(DESTDIR)$(DOCDIR)/$(PACKAGE)
47 install -m 0644 data/tazweb.png \
48 $(DESTDIR)$(PREFIX)/share/pixmaps
49 install -m 0644 data/tazweb.desktop \
50 $(DESTDIR)$(PREFIX)/share/applications
51 cp -a data/*.html $(DESTDIR)$(PREFIX)/share/tazweb
52 install -m 0644 data/style.css \
53 $(DESTDIR)$(PREFIX)/share/tazweb
54 cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale
56 clean:
57 rm -f $(PACKAGE)
58 rm -rf po/mo
59 rm -f po/*.mo
60 rm -f po/*.*~
62 help:
63 @echo "make [ pot | msgmerge | msgfmt | install | clean ]"