Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Make clean tries to remove directory: "core"
in my application there is a directory 'core' and it holds source files. But when I run make clean, make will try to remove this directory. On Windows it even succeeds. This is annoying as I need those files when I want to compile it again.
When running qmake, it will put this in the Makefile:
-$(DEL_FILE) *~ core *.core
I don't want this line in there. '*~' would be nice, but the other two I don't need.
Does anyone know how to prevent qmake from putting that line in the Makefile?
lgeyer last edited by
How does your .pro file look like?
svn browse complete source:
goetz last edited by
core is usually the name of a coredump. On the clean step, qmake tries to remove these leftovers from a failed run or build. The line is hardcoded to the makefile generator of qmake. You'll have to rename the directory or move it to a subdirectory to prevent deletion.
Ok, to bad. But good to know.