Description: build debug instead of release
 This is needed to be able to create a monkeystudio-dbg package
Forwarded: not-needed
Author: Evgeni Golov <evgeni@debian.org>
Last-Update: 2012-04-29

diff --git a/build.pro b/build.pro
index 67e48ea..14a8396 100644
--- a/monkeystudio.pro
+++ b/monkeystudio.pro
@@ -6,8 +6,8 @@ XUP.MAC_PLATFORM_TARGET_RELEASE = bin/MonkeyStudio.app
 XUP.MAC_PLATFORM_TARGET_DEBUG = bin/MonkeyStudio_debug.app
 XUP.MAC_PLATFORM_TARGET_DEFAULT = bin/MonkeyStudio_debug.app
 XUP.OTHERS_PLATFORM_TARGET_RELEASE = bin/monkeystudio
-XUP.OTHERS_PLATFORM_TARGET_DEBUG = bin/monkeystudio_debug
-XUP.OTHERS_PLATFORM_TARGET_DEFAULT = bin/monkeystudio_debug
+XUP.OTHERS_PLATFORM_TARGET_DEBUG = bin/monkeystudio
+XUP.OTHERS_PLATFORM_TARGET_DEFAULT = bin/monkeystudio
 
 # include install script
 include( installs.pri )
diff --git a/config.pri b/config.pri
index 351f616..2378483 100644
--- a/config.pri
+++ b/config.pri
@@ -1,6 +1,6 @@
 # build mode
-CONFIG  *= qt warn_on thread x11 windows rtti release
-CONFIG  -= warn_off debug debug_and_release x86 x86_64 ppc ppc64
+CONFIG  *= qt warn_on thread x11 windows rtti debug
+CONFIG  -= warn_off release debug_and_release x86 x86_64 ppc ppc64
 QT  *= xml sql
 
 # Mac universal build from 10.4 to up to 10.5
diff --git a/functions.pri b/functions.pri
index 9301ed6..541f677 100644
--- a/functions.pri
+++ b/functions.pri
@@ -108,8 +108,7 @@ isEmpty( translations_pass ) {
         isEqual( q_mode, release ) {
             q_target    = $$quote( $$q_target )
         } else {
-            unix:q_target   = $$quote( $$join( q_target, , , _debug ) )
-            else:q_target   = $$quote( $$join( q_target, , , d ) )
+            q_target    = $$quote( $$q_target )
         }
         
         return( $$q_target )
diff --git a/ctags/ctags.pri b/ctags/ctags.pri
index c9a17cc..6e7b11e 100644
--- a/ctags/ctags.pri
+++ b/ctags/ctags.pri
@@ -17,7 +17,7 @@ LIBS    *= -L$${PACKAGE_BUILD_PATH}
 contains( TEMPLATE, .*app ) {
     CONFIG(debug, debug|release) {
         #Debug
-        unix:LIBS   *= -l$${CTAGS_TARGET}_debug
+        unix:LIBS   *= -l$${CTAGS_TARGET}
         else:LIBS   *= -l$${CTAGS_TARGET}d
     } else {
         #Release
diff --git a/fresh/fresh.pri b/fresh/fresh.pri
index ebcd46e..def27a8 100644
--- a/fresh/fresh.pri
+++ b/fresh/fresh.pri
@@ -13,7 +13,7 @@ LIBS    *= -L$${PACKAGE_BUILD_PATH}
 contains( TEMPLATE, .*app ) {
     CONFIG(debug, debug|release) {
         #Debug
-        unix:LIBS   *= -l$${FRESH_TARGET}_debug
+        unix:LIBS   *= -l$${FRESH_TARGET}
         else:LIBS   *= -l$${FRESH_TARGET}d
     } else {
         #Release
diff --git a/qCtagsSense/qCtagsSense.pri b/qCtagsSense/qCtagsSense.pri
index 6ff8e95..c7a8b3f 100644
--- a/qCtagsSense/qCtagsSense.pri
+++ b/qCtagsSense/qCtagsSense.pri
@@ -17,7 +17,7 @@ LIBS    *= -L$${PACKAGE_BUILD_PATH}
 contains( TEMPLATE, .*app ) {
     CONFIG(debug, debug|release) {
         #Debug
-        unix:LIBS   *= -l$${QCTAGSSENSE_TARGET}_debug
+        unix:LIBS   *= -l$${QCTAGSSENSE_TARGET}
         else:LIBS   *= -l$${QCTAGSSENSE_TARGET}d
     } else {
         #Release
