Do not put project in this path such contains blank space.
fyi, I use a custom makefile in codeblocks for QT project, and it seems work fine.
proj.pro:
qmake -project -o proj.pro
Makefile: proj.pro
qmake -makefile proj.pro
debug: Makefile .force
$(MAKE) -f Makefile debug
release: Makefile .force
$(MAKE) -f Makefile release
debug-clean: Makefile .force
$(MAKE) -f Makefile debug-clean
release-clean: Makefile .force
$(MAKE) -f Makefile release-clean
clean: debug-clean release-clean
.force:
Finally, sorry for my pool Chinese - English.