diff options
Diffstat (limited to 'Source/cmUnixMakefile.cxx')
-rw-r--r-- | Source/cmUnixMakefile.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmUnixMakefile.cxx b/Source/cmUnixMakefile.cxx index 4628e9e..7feceaf 100644 --- a/Source/cmUnixMakefile.cxx +++ b/Source/cmUnixMakefile.cxx @@ -107,7 +107,12 @@ void cmUnixMakefile::OutputMakefile(const char* file) { if(!m_Classes[i].m_AbstractClass && !m_Classes[i].m_HeaderFileOnly) { - fout << m_Classes[i].m_ClassName << " \\\n"; + fout << m_Classes[i].m_ClassName; + if(i < m_Classes.size()-1) + { + fout << " \\"; + } + fout << "\n"; } } fout << "\n"; @@ -153,6 +158,8 @@ void cmUnixMakefile::OutputMakefile(const char* file) std::string subdir = FixDirectoryName(m_SubDirectories[i].c_str()); fout << "build_" << subdir.c_str() << ":\n"; fout << "\tcd " << m_SubDirectories[i].c_str() + << "; ${MAKE} -${MAKEFLAGS} CMakeTargets.make\n"; + fout << "\tcd " << m_SubDirectories[i].c_str() << "; ${MAKE} -${MAKEFLAGS} all\n\n"; fout << "clean_" << subdir.c_str() << ": \n"; |