Removed commented section of Makefile that would produce XML/HTML reports of unit...
[uzbl-mobile] / Makefile
1 CFLAGS:=-std=c99 $(shell pkg-config --cflags gtk+-2.0 webkit-1.0 libsoup-2.4 gthread-2.0) -ggdb -Wall -W -DARCH="\"$(shell uname -m)\"" -lgthread-2.0 -DG_ERRORCHECK_MUTEXES -DCOMMIT="\"$(shell git log | head -n1 | sed "s/.* //")\"" $(CPPFLAGS)
2 LDFLAGS:=$(shell pkg-config --libs gtk+-2.0 webkit-1.0 libsoup-2.4 gthread-2.0) -pthread $(LDFLAGS)
3 all: uzbl uzblctrl
4
5 PREFIX?=$(DESTDIR)/usr
6
7 # When compiling unit tests, compile uzbl as a library first
8 test: uzbl.o
9         $(CC) -DUZBL_LIBRARY -shared -Wl uzbl.o -o ./tests/libuzbl.so
10         cd ./tests/; $(MAKE)
11
12 test-dev: uzbl
13         XDG_DATA_HOME=./examples/data               XDG_CONFIG_HOME=./examples/config               ./uzbl --uri http://www.uzbl.org --verbose
14
15 test-share: uzbl
16         XDG_DATA_HOME=/usr/share/uzbl/examples/data XDG_CONFIG_HOME=/usr/share/uzbl/examples/config ./uzbl --uri http://www.uzbl.org --verbose
17
18         
19 clean:
20         rm -f uzbl
21         rm -f uzblctrl
22         rm -f uzbl.o
23         cd ./tests/; $(MAKE) clean
24
25 install:
26         install -d $(PREFIX)/bin
27         install -d $(PREFIX)/share/uzbl/docs
28         install -d $(PREFIX)/share/uzbl/examples
29         install -m755 uzbl $(PREFIX)/bin/uzbl
30         install -m755 uzblctrl $(PREFIX)/bin/uzblctrl
31         cp -rp docs     $(PREFIX)/share/uzbl/
32         cp -rp config.h $(PREFIX)/share/uzbl/docs/
33         cp -rp examples $(PREFIX)/share/uzbl/
34         install -m644 AUTHORS $(PREFIX)/share/uzbl/docs
35         install -m644 README  $(PREFIX)/share/uzbl/docs
36
37
38 uninstall:
39         rm -rf $(PREFIX)/bin/uzbl
40         rm -rf $(PREFIX)/bin/uzblctrl
41         rm -rf $(PREFIX)/share/uzbl