Update website, description; remove libsoup dependency
[feedhandler.git] / makefile
blobf301058259d1c7951ef5fba8364bef569d7ebc97
1 # Feed Handler
2 # Copyright © 2009 Thomas Perl <thp@thpinfo.com>
4 APP=feedhandler
5 OBJS=feedhandler.o
6 PACKAGES=glib-2.0 dbus-glib-1 gtk+-2.0 libosso
8 DESTDIR ?= /
9 PREFIX ?= /usr
11 DESKTOP=feedhandler.desktop
12 SERVICE=feedhandler.service
14 FEEDHANDLER=$(PREFIX)/bin/$(APP)
15 DBUSSERVICE=$(PREFIX)/share/dbus-1/services/org.maemo.garage.feedhandler.service
16 DESKTOPFILE=$(PREFIX)/share/applications/hildon/zzz-feedhandler.desktop
18 VALAFLAGS=$(addprefix --pkg=,$(PACKAGES))
19 CFLAGS=`pkg-config --cflags $(PACKAGES)`
20 LDFLAGS=`pkg-config --libs $(PACKAGES)`
22 all: $(APP)
24 $(APP): $(OBJS)
26 %.c: %.vala
27 valac $(VALAFLAGS) --ccode $<
28 # Workaround for Vala bug 595578
29 sed -i -e 's/MimeOpen/mime_open/g' $@
31 install: $(APP)
32 install -D -m 655 $(APP) $(DESTDIR)$(FEEDHANDLER)
33 install -D -m 644 $(SERVICE) $(DESTDIR)$(DBUSSERVICE)
34 install -D -m 644 $(DESKTOP) $(DESTDIR)$(DESKTOPFILE)
36 clean:
37 rm -f $(OBJS) $(APP)
39 .DEFAULT: all
40 .PHONY: all install clean