Better build script
authorTorste Aikio <zokier@zokier.laptop>
Tue, 25 May 2010 06:54:17 +0000 (09:54 +0300)
committerTorste Aikio <zokier@zokier.laptop>
Tue, 25 May 2010 06:54:17 +0000 (09:54 +0300)
src/src.pro

index 4f0450c..96ccf68 100644 (file)
@@ -1,4 +1,5 @@
 TEMPLATE = app
+TARGET = irwi
 
 SOURCES += main.cpp
 SOURCES += mainwidget.cpp
@@ -10,19 +11,14 @@ HEADERS += settingsdlg.h
 
 include(qmaemo5homescreenadaptor/qmaemo5homescreenadaptor.pri)
 
-desktop.path = /usr/share/applications/hildon-home
-desktop.files = irwi.desktop
-
-target.path = /usr/lib/hildon-desktop
-#INSTALLS += target desktop
 
 QT += network
 
-  unix {
-    #VARIABLES
-    isEmpty(PREFIX) {
-        PREFIX = /usr/local
-  }
+unix {
+#VARIABLES
+isEmpty(PREFIX) {
+    PREFIX = /usr
+}
 
 BINDIR = $$PREFIX/bin
 DATADIR =$$PREFIX/share
@@ -31,16 +27,13 @@ DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
 
 #MAKE INSTALL
 
-INSTALLS += target desktop service iconxpm icon26 icon48 icon64
+INSTALLS += target desktop iconxpm icon26 icon48 icon64
 
-  target.path =$$BINDIR
+  target.path = $$PREFIX/lib/hildon-desktop
 
-  desktop.path = $$DATADIR/applications/hildon
+  desktop.path = $$PREFIX/share/applications/hildon-home
   desktop.files += $${TARGET}.desktop
 
-  service.path = $$DATADIR/dbus-1/services
-  service.files += $${TARGET}.service
-
   iconxpm.path = $$DATADIR/pixmap
   iconxpm.files += ../data/maemo/$${TARGET}.xpm