For example i have .pro file:
Qt Code:
  1. TEMPLATE = lib
  2. INCLUDEPATH = ../include \
  3. ../../common/libxml2/include \
  4. ../../common/iconv/include \
  5. ../../common/include
  6. OUTPUT = ../../..
  7. TEMP = ../../../temp/dstr/file
  8. CONFIG += plugin
  9. RCC_DIR = ./res
  10. RESOURCES = ./res/resource.qrc
  11.  
  12. Debug {
  13. DEFINES += _DEBUG
  14. DESTDIR = $${OUTPUT}/debug
  15. OBJECTS_DIR = $${TEMP}/debug
  16. } else {
  17. DESTDIR = $${OUTPUT}/release
  18. OBJECTS_DIR = $${TEMP}/release
  19. }
  20.  
  21. win32 {
  22. LIBS += $${DESTDIR}/libxml2.lib
  23. } else {
  24. LIBS += -lxml2
  25. }
  26.  
  27. MOC_DIR = $${OBJECTS_DIR}
  28.  
  29. PRECOMPILED_HEADER = std.h
  30.  
  31. HEADERS += header.h
  32.  
  33. SOURCES += main.cpp
To copy to clipboard, switch view to plain text mode 

I run qmake program:
Qt Code:
  1. C:\temp>qmake project.pro
To copy to clipboard, switch view to plain text mode 

Program generates files Makefile, Makefile.Release, Makefile.Debug and TEMP, DESTDIR and RCC_DIR directories, as they defined in .pro file.

But i only need Makefiles without generated directories.