diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-12-28 22:00:05 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-12-28 22:00:05 (GMT) |
commit | e4843d83a4a7523f4f2c0c5912fb4b01f0b74830 (patch) | |
tree | 4a1828ff714a7488281ca703f92114d9a3ae0338 /Source/cmNMakeMakefileGenerator.cxx | |
parent | a9cdcba66063fcc00e9687ced74a5fb9dfdaaf03 (diff) | |
download | CMake-e4843d83a4a7523f4f2c0c5912fb4b01f0b74830.zip CMake-e4843d83a4a7523f4f2c0c5912fb4b01f0b74830.tar.gz CMake-e4843d83a4a7523f4f2c0c5912fb4b01f0b74830.tar.bz2 |
ENH: remove the rule to run make depend from the top with each change in any cmakelist file. Instead, run make depend in the current directory if a source file changes, or if a .h file changes or is removed
Diffstat (limited to 'Source/cmNMakeMakefileGenerator.cxx')
-rw-r--r-- | Source/cmNMakeMakefileGenerator.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/cmNMakeMakefileGenerator.cxx b/Source/cmNMakeMakefileGenerator.cxx index 4e4b3ed..5b945a1 100644 --- a/Source/cmNMakeMakefileGenerator.cxx +++ b/Source/cmNMakeMakefileGenerator.cxx @@ -260,7 +260,7 @@ void cmNMakeMakefileGenerator::BuildInSubDirectory(std::ostream& fout, } std::string currentDir = m_Makefile->GetCurrentOutputDirectory(); cmSystemTools::ConvertToWindowsSlashes(currentDir); - fout << "\tcd " << cmSystemTools::EscapeSpaces(currentDir.c_str()) << "\n"; + fout << "\tcd " << cmSystemTools::EscapeSpaces(currentDir.c_str()) << "\n\n"; } @@ -720,8 +720,11 @@ void cmNMakeMakefileGenerator::OutputBuildLibraryInDir(std::ostream& fout, std::string currentDir = m_Makefile->GetCurrentOutputDirectory(); cmSystemTools::ConvertToWindowsSlashes(currentDir); fout << cmSystemTools::EscapeSpaces(fullpath) - << ":\n\tcd " << cmSystemTools::EscapeSpaces(path) - << "\n\t$(MAKE) $(MAKESILENT) " << cmSystemTools::EscapeSpaces(fullpath) + << ":\n\tcd " << cmSystemTools::EscapeSpaces(path) << "\n" + << "\t$(MAKE) -$(MAKEFLAGS) $(MAKESILENT) cmake.depends\n" + << "\t$(MAKE) -$(MAKEFLAGS) $(MAKESILENT) cmake.check_depends\n" + << "\t$(MAKE) -$(MAKEFLAGS) $(MAKESILENT) -f cmake.check_depends\n" + << "\t$(MAKE) $(MAKESILENT) " << cmSystemTools::EscapeSpaces(fullpath) << "\n\tcd " << cmSystemTools::EscapeSpaces(currentDir.c_str()) << "\n"; } |