tazweb view Makefile @ rev 129
Add small Qt port :-)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Jan 04 02:11:10 2014 +0100 (2014-01-04) |
parents | f00b15e274ce |
children | b3a109d2818f |
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 mkdir -p $(DESTDIR)$(PREFIX)/share/locale
55 cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale
57 clean:
58 rm -f $(PACKAGE)
59 rm -rf po/mo
60 rm -f po/*.mo
61 rm -f po/*.*~
62 rm -f src/Makefile src/*.o src/tazweb-qt
64 help:
65 @echo "make [ pot | msgmerge | msgfmt | install | clean ]"