blob: 3110b25a29ac553bfe272332cddef79a8ea5c173 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
CPPFLAGS:=$(shell pkg-config --cflags gtk+-2.0 webkit-1.0) -ggdb -Wall -W -DARCH="\"$(shell uname -m)\"" -DG_ERRORCHECK_MUTEXES -DCOMMIT="\"$(shell git log | head -n1 | sed "s/.* //")\"" $(CPPFLAGS)
LDFLAGS:=$(shell pkg-config --libs gtk+-2.0 webkit-1.0) $(LDFLAGS)
all: uzbl uzblctrl
test: uzbl
./uzbl --uri http://www.uzbl.org
test-config: uzbl
./uzbl --uri http://www.uzbl.org < examples/configs/sampleconfig-dev
test-config-real: uzbl
./uzbl --uri http://www.uzbl.org < /usr/share/uzbl/examples/configs/sampleconfig
clean:
rm -f uzbl
rm -f uzblctrl
install:
install -d $(DESTDIR)/usr/bin
install -d $(DESTDIR)/usr/share/uzbl/docs
install -d $(DESTDIR)/usr/share/uzbl/examples
install -D -m755 uzbl $(DESTDIR)/usr/bin/uzbl
install -D -m755 uzblctrl $(DESTDIR)/usr/bin/uzblctrl
cp -ax docs $(DESTDIR)/usr/share/uzbl/
cp -ax config.h $(DESTDIR)/usr/share/uzbl/docs/
cp -ax examples $(DESTDIR)/usr/share/uzbl/
install -D -m644 AUTHORS $(DESTDIR)/usr/share/uzbl/docs
install -D -m644 README $(DESTDIR)/usr/share/uzbl/docs
uninstall:
rm -rf $(DESTDIR)/usr/bin/uzbl
rm -rf $(DESTDIR)/usr/bin/uzblctrl
rm -rf $(DESTDIR)/usr/share/uzbl
|