diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-12-19 23:45:22 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-12-19 23:45:22 (GMT) |
commit | b67dc16be630724509b8d9d092df8ab7607f7acf (patch) | |
tree | 811aab687330b7393516b47fa108a793b8659b78 /Source/cmNMakeMakefileGenerator.cxx | |
parent | 384cf0c7f3bfb5d8fef107f7076cae290316b0e0 (diff) | |
download | CMake-b67dc16be630724509b8d9d092df8ab7607f7acf.zip CMake-b67dc16be630724509b8d9d092df8ab7607f7acf.tar.gz CMake-b67dc16be630724509b8d9d092df8ab7607f7acf.tar.bz2 |
ENH: add silent mode for makefile builds and fix borland and nmake after the depend stuff
Diffstat (limited to 'Source/cmNMakeMakefileGenerator.cxx')
-rw-r--r-- | Source/cmNMakeMakefileGenerator.cxx | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/Source/cmNMakeMakefileGenerator.cxx b/Source/cmNMakeMakefileGenerator.cxx index 6954a96..e9a11c5 100644 --- a/Source/cmNMakeMakefileGenerator.cxx +++ b/Source/cmNMakeMakefileGenerator.cxx @@ -239,14 +239,17 @@ void cmNMakeMakefileGenerator::BuildInSubDirectory(std::ostream& fout, { std::string dir = directory; cmSystemTools::ConvertToWindowsSlashes(dir); - fout << "\tif not exist " << cmSystemTools::EscapeSpaces(dir.c_str()) + dir = cmSystemTools::EscapeSpaces(dir.c_str()); + fout << "\tif not exist " << dir << " " << "$(MAKE) rebuild_cache\n" - << "\tcd .\\" << directory << "\n" + << "\techo Building " << target1 << " in directory " << directory << "\n" + << "\tcd " << dir << "\n" << "\t$(MAKE) -$(MAKEFLAGS) " << target1 << "\n"; } if(target2) { + fout << "\techo Building " << target2 << " in directory " << directory << "\n"; fout << "\t$(MAKE) -$(MAKEFLAGS) " << target2 << "\n"; } std::string currentDir = m_Makefile->GetCurrentOutputDirectory(); @@ -296,31 +299,33 @@ void cmNMakeMakefileGenerator::OutputMakeRule(std::ostream& fout, fout << replace.c_str(); } fout << "\n"; - const char* startCommand = "\t"; - const char* endCommand = "\n"; if(command) { replace = ShortPathCommand(command); m_Makefile->ExpandVariablesInString(replace); - fout << startCommand << replace.c_str() << endCommand; + fout << "\t" << "echo " << replace.c_str() << "\n"; + fout << "\t" << replace.c_str() << "\n"; } if(command2) { replace = ShortPathCommand(command2); m_Makefile->ExpandVariablesInString(replace); - fout << startCommand << replace.c_str() << endCommand; + fout << "\t" << "echo " << replace.c_str() << "\n"; + fout << "\t" << replace.c_str() << "\n"; } if(command3) { replace = ShortPathCommand(command3); m_Makefile->ExpandVariablesInString(replace); - fout << startCommand << replace.c_str() << endCommand; + fout << "\t" << "echo " << replace.c_str() << "\n"; + fout << "\t" << replace.c_str() << "\n"; } if(command4) { replace = ShortPathCommand(command4); m_Makefile->ExpandVariablesInString(replace); - fout << startCommand << replace.c_str() << endCommand; + fout << "\t" << "echo " << replace.c_str() << "\n"; + fout << "\t" << replace.c_str() << "\n"; } fout << "\n"; } |