tazweb view Makefile @ rev 161
Allow IP v6 localhost address to bookmarks work; change "Bookmarks" icon; "cleanse pixmaps" action.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Nov 03 00:47:25 2014 +0200 (2014-11-03) |
parents | 44e8f68b8694 |
children | 43f7bb4e72ee |
line source
1 # Makefile for TazWeb
2 #
3 PREFIX?=/usr
4 DOCDIR?=$(PREFIX)/share/doc
5 DESTDIR?=
7 PACKAGE=tazweb
8 VERSION=1.10
9 LINGUAS?=fr pt_BR ru zh_CN zh_TW
11 CC?=gcc
13 all:
14 $(CC) src/main.c -o $(PACKAGE) $(CFLAGS) \
15 `pkg-config --cflags --libs gtk+-2.0 webkit-1.0`
16 @du -sh $(PACKAGE)
18 qt:
19 cd src && qmake && make
20 @du -sh src/$(PACKAGE)-qt
22 # i18n
24 pot:
25 xgettext -o po/$(PACKAGE).pot -L C -k_ \
26 --package-name="TazWeb" \
27 --package-version="$(VERSION)" \
28 ./src/main.c
30 msgmerge:
31 @for l in $(LINGUAS); do \
32 echo -n "Updating $$l po file."; \
33 msgmerge -U po/$$l.po po/$(PACKAGE).pot; \
34 done;
36 msgfmt:
37 @for l in $(LINGUAS); do \
38 echo "Compiling $$l mo file..."; \
39 mkdir -p po/mo/$$l/LC_MESSAGES; \
40 msgfmt -o po/mo/$$l/LC_MESSAGES/$(PACKAGE).mo po/$$l.po; \
41 done;
43 install:
44 mkdir -p \
45 $(DESTDIR)$(DOCDIR)/$(PACKAGE) \
46 $(DESTDIR)$(PREFIX)/bin \
47 $(DESTDIR)/var/www/cgi-bin \
48 $(DESTDIR)$(PREFIX)/share/tazweb \
49 $(DESTDIR)$(PREFIX)/share/icons/hicolor/32x32/apps \
50 $(DESTDIR)$(PREFIX)/share/applications
51 install -m 0755 $(PACKAGE) $(DESTDIR)$(PREFIX)/bin
52 cp -d doc/* $(DESTDIR)$(DOCDIR)/$(PACKAGE)
53 install -m 0644 data/tazweb.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/32x32/apps
54 install -m 0644 data/tazweb.desktop $(DESTDIR)$(PREFIX)/share/applications
55 install -m 0644 data/bookmarks.txt $(DESTDIR)$(PREFIX)/share/tazweb
56 install -m 0755 data/bookmarks.cgi $(DESTDIR)/var/www/cgi-bin
57 mkdir -p $(DESTDIR)$(PREFIX)/share/locale
58 cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale
60 clean:
61 rm -f $(PACKAGE)
62 rm -rf po/mo
63 rm -f po/*.mo
64 rm -f po/*.*~
65 rm -f src/Makefile src/*.o src/tazweb-qt
67 help:
68 @echo "make [ pot | msgmerge | msgfmt | install | clean ]"