From c88408141bcbaa5334818de13eaf6c4855c29346 Mon Sep 17 00:00:00 2001 From: Berk Geveci Date: Mon, 14 Jan 2002 16:02:05 -0500 Subject: [PATCH] Quote echo --- Source/cmUnixMakefileGenerator.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx index 071f943f9..a41e00c5b 100644 --- a/Source/cmUnixMakefileGenerator.cxx +++ b/Source/cmUnixMakefileGenerator.cxx @@ -1875,7 +1875,7 @@ void cmUnixMakefileGenerator::OutputMakeRule(std::ostream& fout, if(replace[0] != '-' && replace.find("echo") != 0 && replace.find("$(MAKE)") != 0) { - fout << "\t" << "echo " << replace.c_str() << "\n"; + fout << "\t" << "echo \"" << replace.c_str() << "\"\n"; } fout << "\t" << replace.c_str() << "\n"; } @@ -1886,7 +1886,7 @@ void cmUnixMakefileGenerator::OutputMakeRule(std::ostream& fout, if(replace[0] != '-' && replace.find("echo") != 0 && replace.find("$(MAKE)") != 0) { - fout << "\t" << "echo " << replace.c_str() << "\n"; + fout << "\t" << "echo \"" << replace.c_str() << "\"\n"; } fout << "\t" << replace.c_str() << "\n"; } @@ -1897,7 +1897,7 @@ void cmUnixMakefileGenerator::OutputMakeRule(std::ostream& fout, if(replace[0] != '-' && replace.find("echo") != 0 && replace.find("$(MAKE)") != 0) { - fout << "\t" << "echo " << replace.c_str() << "\n"; + fout << "\t" << "echo \"" << replace.c_str() << "\"\n"; } fout << "\t" << replace.c_str() << "\n"; } @@ -1908,7 +1908,7 @@ void cmUnixMakefileGenerator::OutputMakeRule(std::ostream& fout, if(replace[0] != '-' && replace.find("echo") != 0 && replace.find("$(MAKE)") != 0) { - fout << "\t" << "echo " << replace.c_str() << "\n"; + fout << "\t" << "echo \"" << replace.c_str() << "\"\n"; } fout << "\t" << replace.c_str() << "\n"; }