2 # Copyright © 2009 Thomas Perl <thp@thpinfo.com>
6 PACKAGES
=glib-2.0 dbus-glib-1 gtk
+-2.0
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)`
27 valac
$(VALAFLAGS
) --ccode
$<
28 # Workaround for Vala bug 595578
29 sed
-i
-e
's/MimeOpen/mime_open/g' $@
32 install -D
-m
655 $(APP
) $(DESTDIR
)$(FEEDHANDLER
)
33 install -D
-m
644 $(SERVICE
) $(DESTDIR
)$(DBUSSERVICE
)
34 install -D
-m
644 $(DESKTOP
) $(DESTDIR
)$(DESKTOPFILE
)
40 .PHONY
: all install clean