summaryrefslogtreecommitdiff
path: root/Makefile
blob: 5c6a4c279f36e6cf35c090c5bc07a51339e1e8d0 (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
CFLAGS = -Wall -g
CPPFLAGS = $(shell pkg-config --cflags gtk+-2.0 cairo gconf-2.0)
LDLIBS = $(shell pkg-config --libs gtk+-2.0 cairo gconf-2.0) -lm
LDFLAGS = -g
GCONFTOOL = gconftool-2

prefix = $(HOME)
targets = akamaru dock
schemas = kiba.schemas
akamaru_objs = main.o akamaru.o
dock_objs = dock.o akamaru.o
objs = $(akamaru_objs) $(dock_objs)

all : $(targets)

akamaru : $(akamaru_objs)

dock : $(dock_objs)

$(objs) : akamaru.h

install-schemas :
	GCONF_CONFIG_SOURCE=$(GCONF_CONFIG_SOURCE) \
		$(GCONFTOOL) --makefile-install-rule $(schemas)

install : install-schemas
	install dock $(prefix)/bin/kiba-dock
	sh populate-dock.sh

uninstall-schemas : gconf-clean
	GCONF_CONFIG_SOURCE=$(GCONF_CONFIG_SOURCE) \
		$(GCONFTOOL) --makefile-uninstall-rule $(schemas)

gconf-clean :
	$(GCONFTOOL) --recursive-unset /apps/kiba

index.html : index.html.in
	./log.sh > index.html

clean :
	rm -f $(targets) $(objs)