Cleanup
[speedometer] / Makefile
index cd7d4a9..49e9b38 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,9 @@
 PKGS     = gtk+-2.0 liblocation gconf-2.0 libosso
 CC       = gcc
 LINK     = gcc
-CFLAGS   = -g -Wall -O0 -pedantic -std=gnu99
+CFLAGS   = -g -Wall -O0 -pedantic -std=gnu99 `pkg-config --cflags maemo-launcher-app` 
 INCPATH  = `pkg-config --cflags $(PKGS)`
-LIBS     = `pkg-config --libs $(PKGS)`
+LIBS     = `pkg-config --libs $(PKGS) maemo-launcher-app`
 
 SOURCES  = main.c callbacks.c ui.c util.c
 OBJECTS  = main.o callbacks.o ui.o util.o
@@ -26,12 +26,16 @@ install: all
        install -D data/speedometer.desktop $(DESTDIR)/usr/share/applications/hildon/speedometer.desktop
        install -D data/speedometer.service $(DESTDIR)/usr/share/dbus-1/services/speedometer.service
        install -d $(DESTDIR)/usr/share/speedometer/
-       install data/*.png $(DESTDIR)/usr/share/speedometer/
+       install gfx/*.png $(DESTDIR)/usr/share/speedometer/
+       install -D icons/speedometer-64.png $(DESTDIR)/usr/share/icons/hicolor/scalable/hildon/speedometer.png
 
 uninstall:
        rm -rf $(DESTDIR)/usr/share/speedometer
        rm -f $(DESTDIR)/bin/speedometer
        rm -f $(DESTDIR)/usr/share/applications/hildon/speedometer.desktop
        rm -f $(DESTDIR)/usr/share/dbus-1/services/speedometer.service
-       
+
+deb:
+       dpkg-buildpackage -rfakeroot -b
+