--- compat.pro.orig	2011-10-19 13:37:56.000000000 -0400
+++ compat.pro	2011-10-19 13:40:25.000000000 -0400
@@ -2,14 +2,16 @@
 LANGUAGE = C++
 TARGET = assistant_adp
 
-CONFIG += qt warn_on
+CONFIG += qt warn_on @ARCHES@
 
 unix:contains(QT_CONFIG, dbus):QT += dbus
 
-build_all:!build_pass {
-    CONFIG -= build_all
-    CONFIG += release
-}
+# build release only for the .app
+contains(CONFIG,debug):CONFIG -= debug
+contains(CONFIG,debug_and_release):CONFIG -= debug_and_release
+contains(CONFIG,build_all):CONFIG -= build_all
+!contains(CONFIG,release): CONFIG += release
+
 QT += xml network
 
 PROJECTNAME = Assistant
@@ -81,3 +83,8 @@
         }        
     }
 }
+
+# install target
+target.path=@QT_APPS_DIR@
+
+INSTALLS += target
