blob: a1efa568eac4bf14c4077b31185787b7d0632ee1 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
LIBS := gtk+-2.0 webkit-1.0
ARCH := $(shell uname -m)
COMMIT := $(shell git log | head -n1 | sed "s/.* //")
DEBUG := -ggdb -Wall -W -DG_ERRORCHECK_MUTEXES
CFLAGS := $(shell --cflags $(LIBS)) $(DEBUG) -DARCH="$(ARCH)" -DCOMMIT="\"$(COMMIT)\""
LDFLAGS := $(shell --libs $(LIBS)) $(LDFLAGS)
PREFIX ?= $(DESTDIR)/usr
BINDIR ?= $(PREFIX)/bin
UZBLDATA ?= $(PREFIX)/share/uzbl
DOCSDIR ?= $(PREFIX)/share/uzbl/docs
EXMPLSDIR ?= $(PREFIX)/share/uzbl/examples
all: uzbl
uzbl: uzbl.c uzbl.h config.h
%: %.c
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(LIBS) -o $@ $<
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 < $(EXMPLSDIR)/configs/sampleconfig
clean:
rm -f uzbl
install:
install -d $(BINDIR)
install -d $(DOCSDIR)
install -d $(EXMPLSDIR)
install -D -m755 uzbl $(BINDIR)/uzbl
cp -ax docs/* $(DOCSDIR)
cp -ax config.h $(DOCSDIR)
cp -ax examples/* $(EXMPLSDIR)
install -D -m644 AUTHORS $(DOCSDIR)
install -D -m644 README $(DOCSDIR)
uninstall:
rm -rf $(BINDIR)/uzbl
rm -rf $(UZBLDATA)
|