In my current project, I plan to have different makefile filenames for Windows and Mac system. So, one of my choice is to use
Makefile.win32 as Windows makefile filenameMakefile.mac as Mac makefile finename
In my root .pro file, I set
win32{By this method, I can
QMAKE_MAKEFILE = Makefile.win32}
qmakemingw32-make -f Makefile.win32
to build all debug tree without problems.
However, it doesn't work for
mingw32-make debug -f Makefile.win32
or
mingw32-make release -f Makefile.win32
After I checked the content of the generated Makefile.win32, The command for default target is correct, but the commands for debug or release (and check) target lost the -f $(MAKEFILE) option
sub-averPen: averPen\$(MAKEFILE) FORCEThat's why I cannot use debug or release target to build my system.
cd averPen\ && $(MAKE) -f $(MAKEFILE)sub-averPen-sub_Debug: averPen\$(MAKEFILE)
cd averPen\ && $(MAKE) debug
Is there any method to modify some mkspecs\XXX\YYY.prf to patch it?
Bookmarks