diff options
author | Brad King <brad.king@kitware.com> | 2007-12-19 21:36:30 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-12-19 21:36:30 (GMT) |
commit | de96fd1df995f5b7d3f79514a5a3bf90c6b4b205 (patch) | |
tree | 381cb2630c9854fb72f0580b910789dc62882a7b /Source/cmMakefileTargetGenerator.cxx | |
parent | c7bf320539c12de919b34868a6af558459f2ddc0 (diff) | |
download | CMake-de96fd1df995f5b7d3f79514a5a3bf90c6b4b205.zip CMake-de96fd1df995f5b7d3f79514a5a3bf90c6b4b205.tar.gz CMake-de96fd1df995f5b7d3f79514a5a3bf90c6b4b205.tar.bz2 |
ENH: Moved dependency integrity check from CheckBuildSystem over to a per-target UpdateDependencies step. This greatly reduces the startup time for make processes and allows individual targets to be built without a global dependency check.
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileTargetGenerator.cxx | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx index d3da5bb..265dee7 100644 --- a/Source/cmMakefileTargetGenerator.cxx +++ b/Source/cmMakefileTargetGenerator.cxx @@ -519,15 +519,6 @@ cmMakefileTargetGenerator this->LocalGenerator->ExpandRuleVariables(*i, vars); } - // Make the target dependency scanning rule include cmake-time-known - // dependencies. The others are handled by the check-build-system - // path. - std::string depMark = - this->LocalGenerator->GetRelativeTargetDirectory(*this->Target); - depMark += "/depend.make.mark"; - this->LocalGenerator->WriteMakeRule(*this->BuildFileStream, 0, - depMark.c_str(), - depends, no_commands, false); // Write the rule. this->LocalGenerator->WriteMakeRule(*this->BuildFileStream, 0, @@ -793,21 +784,6 @@ void cmMakefileTargetGenerator::WriteTargetDependRules() this->LocalGenerator->GetRelativeTargetDirectory(*this->Target); depTarget += "/depend"; - std::string depMark = depTarget; - depMark += ".make.mark"; - depends.push_back(depMark); - - this->LocalGenerator->WriteMakeRule(*this->BuildFileStream, 0, - depTarget.c_str(), - depends, commands, true); - depends.clear(); - - // Write the dependency generation rule. - std::string depEcho = "Scanning dependencies of target "; - depEcho += this->Target->GetName(); - this->LocalGenerator->AppendEcho(commands, depEcho.c_str(), - cmLocalUnixMakefileGenerator3::EchoDepend); - // Add a command to call CMake to scan dependencies. CMake will // touch the corresponding depends file after scanning dependencies. cmOStringStream depCmd; @@ -859,7 +835,7 @@ void cmMakefileTargetGenerator::WriteTargetDependRules() // Write the rule. this->LocalGenerator->WriteMakeRule(*this->BuildFileStream, 0, - depMark.c_str(), + depTarget.c_str(), depends, commands, false); } |