tazweb view Makefile @ rev 205
Added tag 1.12 for changeset 1c40642cf6ce
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Mar 18 15:32:16 2017 +0100 (2017-03-18) |
parents | d05a5c35a71e |
children |
line source
1 # Makefile for TazWeb
2 #
3 PREFIX?=/usr
4 DOCDIR?=$(PREFIX)/share/doc
5 DESTDIR?=
7 PACKAGE=tazweb
8 VERSION=1.12
9 LINGUAS?=$(shell grep -v "^\#" po/LINGUAS)
11 CC?=gcc
13 all:
14 $(CC) src/tazweb.c -o $(PACKAGE) $(CFLAGS) \
15 `pkg-config --cflags --libs gtk+-2.0 webkit-1.0`
16 @du -sh $(PACKAGE)
18 # Next generation
19 ng:
20 $(CC) src/tazweb-ng.c -o $(PACKAGE)-ng $(CFLAGS) \
21 `pkg-config --cflags --libs gtk+-2.0 webkit-1.0`
22 @du -sh $(PACKAGE)-ng
24 qt:
25 cd src && qmake && make
26 @du -sh src/$(PACKAGE)-qt
28 # i18n
30 pot:
31 xgettext -o po/$(PACKAGE).pot -k_ \
32 --package-name="TazWeb" \
33 --package-version="$(VERSION)" \
34 ./src/tazweb.c ./lib/helper.sh ./data/tazweb.desktop.in
36 msgmerge:
37 @for l in $(LINGUAS); do \
38 echo -n "Updating $$l po file."; \
39 msgmerge -U po/$$l.po po/$(PACKAGE).pot; \
40 done;
42 msgfmt:
43 @for l in $(LINGUAS); do \
44 echo "Compiling $$l mo file..."; \
45 mkdir -p po/mo/$$l/LC_MESSAGES; \
46 msgfmt -o po/mo/$$l/LC_MESSAGES/$(PACKAGE).mo po/$$l.po; \
47 done;
49 desktop:
50 msgfmt --desktop --template=data/tazweb.desktop.in -d po \
51 -o data/tazweb.desktop;
53 install: msgfmt desktop
54 mkdir -p \
55 $(DESTDIR)$(DOCDIR)/$(PACKAGE) \
56 $(DESTDIR)$(PREFIX)/bin \
57 $(DESTDIR)$(PREFIX)/lib/tazweb \
58 $(DESTDIR)$(PREFIX)/share/tazweb \
59 $(DESTDIR)$(PREFIX)/share/icons/hicolor/32x32/apps \
60 $(DESTDIR)$(PREFIX)/share/applications
61 install -m 0755 $(PACKAGE) $(DESTDIR)$(PREFIX)/bin
62 install -m 0755 lib/helper.sh $(DESTDIR)$(PREFIX)/lib/tazweb
63 cp -d doc/* $(DESTDIR)$(DOCDIR)/$(PACKAGE)
64 install -m 0644 data/tazweb.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/32x32/apps
65 install -m 0644 data/tazweb.desktop $(DESTDIR)$(PREFIX)/share/applications
66 install -m 0644 data/bookmarks.txt $(DESTDIR)$(PREFIX)/share/tazweb
67 mkdir -p $(DESTDIR)$(PREFIX)/share/locale
68 cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale
70 clean:
71 rm -f $(PACKAGE) $(PACKAGE)-ng
72 rm -rf po/mo
73 rm -f po/*.mo
74 rm -f po/*.*~
75 rm -f src/Makefile src/*.o src/tazweb-qt
76 rm -f data/*.desktop
78 help:
79 @echo "make [ ng | qt | pot | msgmerge | msgfmt | install | clean ]"