summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-09-06 14:47:50 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-09-06 14:47:50 (GMT)
commit27bc5789b92005a09d7de4595cf9baf6f7d9fb25 (patch)
treef0cb273607440ecbb3cba2a394773d70c20fb05d /Source
parent709517bcf03ba1376af1a8f6e174bbdad0fe8d98 (diff)
downloadCMake-27bc5789b92005a09d7de4595cf9baf6f7d9fb25.zip
CMake-27bc5789b92005a09d7de4595cf9baf6f7d9fb25.tar.gz
CMake-27bc5789b92005a09d7de4595cf9baf6f7d9fb25.tar.bz2
ENH: use :: rule and not a long line extension
Diffstat (limited to 'Source')
-rw-r--r--Source/cmUnixMakefileGenerator.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx
index 85a62d2..33a4508 100644
--- a/Source/cmUnixMakefileGenerator.cxx
+++ b/Source/cmUnixMakefileGenerator.cxx
@@ -1352,7 +1352,6 @@ void cmUnixMakefileGenerator::OutputCheckDepends(std::ostream& fout)
fout << "default:\n";
fout << "\t$(MAKE) $(MAKESILENT) -f cmake.check_depends all\n"
<< "\t$(MAKE) $(MAKESILENT) -f cmake.check_depends cmake.depends\n\n";
- fout << "all: ";
for(std::map<cmStdString, cmTarget>::const_iterator target = targets.begin();
target != targets.end(); ++target)
{
@@ -1376,7 +1375,7 @@ void cmUnixMakefileGenerator::OutputCheckDepends(std::ostream& fout)
if(emittedLowerPath.insert(lowerpath).second)
{
emitted.insert(dependfile);
- fout << " \\\n" << dependfile ;
+ fout << "all:: " << dependfile << "\n";
}
}
}
@@ -1384,13 +1383,11 @@ void cmUnixMakefileGenerator::OutputCheckDepends(std::ostream& fout)
}
}
fout << "\n\n# if any of these files changes run make dependlocal\n";
- fout << "cmake.depends: ";
std::set<std::string>::iterator i;
for(i = emitted.begin(); i != emitted.end(); ++i)
{
- fout << " \\\n" << *i;
+ fout << "cmake.depends:: " << *i << "\n\t$(MAKE) $(MAKESILENT) dependlocal\n\n";
}
- fout << "\n\t$(MAKE) $(MAKESILENT) dependlocal\n\n";
fout << "\n\n";
fout << "# if a .h file is removed then run make dependlocal\n\n";
for(std::set<std::string>::iterator i = emitted.begin();