title: Qmake in release and debug mode
body: <p>I have a library and I would like it to copy itself to a directory depending upon what configuration i'm in (debug or release). Here is my project file.</p>
  
  <pre><code>#-------------------------------------------------
  #
  # Project created by QtCreator 2011-08-13T12:48:33
  #
  #-------------------------------------------------
  
  TARGET = JECLibrary
  TEMPLATE = lib
  
  DEFINES += JECLIBRARY_LIBRARY
  
  SOURCES += \
      JECMessageText.cpp \
      JECMessageCombo.cpp \
      JECButton.cpp
  
  HEADERS +=\
          JECLibrary_global.h \
      JECMessageText.h \
      JECMessageCombo.h \
      JECButton.h
  
  CONFIG(debug, debug|release)
  {
      DLLDESTDIR += $$quote(../../../Jane/Jane/Build/debug)
      message("Copying to Jane Debug Directory.")
  }
  CONFIG(release, debug|release)
  {
      DLLDESTDIR += $$quote(../../../Jane/Jane/Build/release)
      message("Copying to Jane Release Directory.")
  }
  
  FORMS += \
      JECMessageText.ui \
      JECMessageCombo.ui
  </code></pre>
  
  <p>For some reason, the debug or release DLL are copied to <strong>both</strong> directories instead of just one. So if I run in release mode, I get the release DLL in both the Debug directory and release directory.</p>
  
  <p>I'm totally confused. Could someone shed some light on this? Thanks</p>