summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-10-31 22:22:57 (GMT)
committerBrad King <brad.king@kitware.com>2003-10-31 22:22:57 (GMT)
commitb7361dd04e755820254ab361ad3715d4ce565828 (patch)
tree4ec827708047bd65057dd79591414786cec12042
parent44d6e0362e2ce3d75030f7b057cb9d77267faf45 (diff)
downloadCMake-b7361dd04e755820254ab361ad3715d4ce565828.zip
CMake-b7361dd04e755820254ab361ad3715d4ce565828.tar.gz
CMake-b7361dd04e755820254ab361ad3715d4ce565828.tar.bz2
BUG#318: cmake.check_depends now collects all dependencies for cmake.depends and then uses a single rule.
-rw-r--r--Source/cmLocalUnixMakefileGenerator.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx
index f444c41..3c23d91 100644
--- a/Source/cmLocalUnixMakefileGenerator.cxx
+++ b/Source/cmLocalUnixMakefileGenerator.cxx
@@ -2017,7 +2017,7 @@ void cmLocalUnixMakefileGenerator::OutputCheckDepends(std::ostream& fout)
if(emittedLowerPath.insert(lowerpath).second)
{
emitted.insert(dependfile);
- fout << "all:: " << dependfile << "\n";
+ fout << "all: " << dependfile << "\n";
}
}
}
@@ -2028,9 +2028,10 @@ void cmLocalUnixMakefileGenerator::OutputCheckDepends(std::ostream& fout)
std::set<std::string>::iterator i;
for(i = emitted.begin(); i != emitted.end(); ++i)
{
- fout << "cmake.depends:: " << *i <<
- "\n\t$(MAKE) $(MAKESILENT) dependlocal\n\n";
+ fout << "cmake.depends: " << *i << "\n";
}
+ fout << "cmake.depends: \n"
+ << "\t$(MAKE) $(MAKESILENT) dependlocal\n\n";
fout << "\n\n";
fout << "# if a .h file is removed then run make dependlocal\n\n";
for(std::set<std::string>::iterator it = emitted.begin();