ENH: Fix echo's to use @echo. This way verbose mode does not print twice: Bug #45 - add @ from echo commands

This commit is contained in:
Andy Cedilnik 2003-08-01 12:49:12 -04:00
parent 4228cd1ecf
commit b036f6e91d
1 changed files with 9 additions and 9 deletions

View File

@ -1679,7 +1679,7 @@ void cmLocalUnixMakefileGenerator::BuildInSubDirectoryWindows(std::ostream& fout
<< "$(MAKE) $(MAKESILENT) rebuild_cache\n"; << "$(MAKE) $(MAKESILENT) rebuild_cache\n";
if (!silent) if (!silent)
{ {
fout << "\techo " << directory << ": building " << target1 << "\n"; fout << "\t@echo " << directory << ": building " << target1 << "\n";
} }
fout << "\tcd " << dir << "\n" fout << "\tcd " << dir << "\n"
<< "\t$(MAKE) -$(MAKEFLAGS) $(MAKESILENT) " << target1 << "\n"; << "\t$(MAKE) -$(MAKEFLAGS) $(MAKESILENT) " << target1 << "\n";
@ -1688,7 +1688,7 @@ void cmLocalUnixMakefileGenerator::BuildInSubDirectoryWindows(std::ostream& fout
{ {
if (!silent) if (!silent)
{ {
fout << "\techo " << directory << ": building " << target2 << "\n"; fout << "\t@echo " << directory << ": building " << target2 << "\n";
} }
fout << "\t$(MAKE) -$(MAKEFLAGS) $(MAKESILENT) " << target2 << "\n"; fout << "\t$(MAKE) -$(MAKEFLAGS) $(MAKESILENT) " << target2 << "\n";
} }
@ -1716,7 +1716,7 @@ void cmLocalUnixMakefileGenerator::BuildInSubDirectory(std::ostream& fout,
<< "; then $(MAKE) rebuild_cache; fi\n"; << "; then $(MAKE) rebuild_cache; fi\n";
if (!silent) if (!silent)
{ {
fout << "\techo " << directory << ": building " << target1 << "\n"; fout << "\t@echo " << directory << ": building " << target1 << "\n";
} }
fout << "\t@cd " << directory fout << "\t@cd " << directory
<< "; $(MAKE) " << target1 << "\n"; << "; $(MAKE) " << target1 << "\n";
@ -1725,7 +1725,7 @@ void cmLocalUnixMakefileGenerator::BuildInSubDirectory(std::ostream& fout,
{ {
if (!silent) if (!silent)
{ {
fout << "\techo " << directory << ": building " << target2 << "\n"; fout << "\t@echo " << directory << ": building " << target2 << "\n";
} }
fout << "\t@cd " << directory fout << "\t@cd " << directory
<< "; $(MAKE) " << target2 << "\n"; << "; $(MAKE) " << target2 << "\n";
@ -2134,7 +2134,7 @@ void cmLocalUnixMakefileGenerator::OutputInstallRules(std::ostream& fout)
// first make the directories for each target // first make the directories for each target
fout << "\t@if [ ! -d \"$(DESTDIR)" << prefix << l->second.GetInstallPath() << fout << "\t@if [ ! -d \"$(DESTDIR)" << prefix << l->second.GetInstallPath() <<
"\" ] ; then \\\n"; "\" ] ; then \\\n";
fout << "\t echo \"Making directory \\\"$(DESTDIR)" << prefix fout << "\t @echo \"Making directory \\\"$(DESTDIR)" << prefix
<< l->second.GetInstallPath() << "\\\" \"; \\\n"; << l->second.GetInstallPath() << "\\\" \"; \\\n";
fout << "\t mkdir -p \"$(DESTDIR)" << prefix << l->second.GetInstallPath() fout << "\t mkdir -p \"$(DESTDIR)" << prefix << l->second.GetInstallPath()
<< "\"; \\\n"; << "\"; \\\n";
@ -2742,13 +2742,13 @@ void cmLocalUnixMakefileGenerator::OutputMakeRule(std::ostream& fout,
{ {
cmSystemTools::ReplaceString(echostring, "\\\n", " "); cmSystemTools::ReplaceString(echostring, "\\\n", " ");
cmSystemTools::ReplaceString(echostring, " \t", " "); cmSystemTools::ReplaceString(echostring, " \t", " ");
cmSystemTools::ReplaceString(echostring, "\n\t", "\"\n\techo \""); cmSystemTools::ReplaceString(echostring, "\n\t", "\"\n\t@echo \"");
fout << "\techo \"" << echostring.c_str() << "\"\n"; fout << "\t@echo \"" << echostring.c_str() << "\"\n";
} }
else else
{ {
cmSystemTools::ReplaceString(echostring, "\n\t", "\n\techo "); cmSystemTools::ReplaceString(echostring, "\n\t", "\n\t@echo ");
fout << "\techo " << echostring.c_str() << "\n"; fout << "\t@echo " << echostring.c_str() << "\n";
} }
} }
fout << "\t" << replace.c_str() << "\n"; fout << "\t" << replace.c_str() << "\n";