diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx index e695db031..b932793fc 100644 --- a/Source/cmUnixMakefileGenerator.cxx +++ b/Source/cmUnixMakefileGenerator.cxx @@ -1861,7 +1861,7 @@ void cmUnixMakefileGenerator::OutputMakeRule(std::ostream& fout, { replace = command; m_Makefile->ExpandVariablesInString(replace); - if(replace[0] != '-' || replace.find("echo") != 0 + if(replace[0] != '-' && replace.find("echo") != 0 && replace.find("$(MAKE)") != 0) { fout << "\t" << "echo " << replace.c_str() << "\n";