assign MAKEFILE even in non-subdirs Makefiles
this is necessary for having a clean way to recurse even from leaf makefiles. the location where the variable is written in the makefile is somewhat bizarre, but the code is so convoluted that finding a better place would mean either a lot of duplication or a lot of prior refactoring. Change-Id: I68e4cf7e3814f6c60b2e3421d69775c993dafb23 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
parent
8c0787a8a9
commit
80b99a6dd7
@ -2192,6 +2192,11 @@ MakefileGenerator::writeStubMakefile(QTextStream &t)
|
||||
bool
|
||||
MakefileGenerator::writeMakefile(QTextStream &t)
|
||||
{
|
||||
QString ofile = Option::fixPathToTargetOS(Option::output.fileName());
|
||||
if (ofile.lastIndexOf(Option::dir_sep) != -1)
|
||||
ofile.remove(0, ofile.lastIndexOf(Option::dir_sep) +1);
|
||||
t << "MAKEFILE = " << ofile << endl << endl;
|
||||
|
||||
t << "####### Compile" << endl << endl;
|
||||
writeObj(t, "SOURCES");
|
||||
writeObj(t, "GENERATED_SOURCES");
|
||||
|
Loading…
Reference in New Issue
Block a user