Clean before build
-
-
According to documentation the only thing you can use in this case is "system(command)":http://qt-project.org/doc/qt-4.8/qmake-function-reference.html#system-command function.
Anyway, why do you need to clean your project before build? I can't imagine any reason for it.
If you need to clean your project only once, there is a button for this in the menu. -
Thanks for your reply. Ich want to clean it before build because if there are existing binaries and i build the project, the old binaries will be not override.
One concret (and stupid/nonesense) Example that i had:
I have a library that does not work (segementation fault). I do not need the library but when i include it in my LIBS, my program crashes.I build the program without the library, everything works. I add the library and build the program again, everything works. I delete the old binaries and build the program again -> segmentation fault.
My aim is just to be sure that the new build overriedes the old binaries so i start always the freshest build.