summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator3.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2005-07-05 13:21:44 (GMT)
committerKen Martin <ken.martin@kitware.com>2005-07-05 13:21:44 (GMT)
commit12605f16ac8712547f34541d4c1d1fa4c33435eb (patch)
tree830427dd0ce70779b1c15f5695292219e616a366 /Source/cmLocalUnixMakefileGenerator3.cxx
parentd11707c6e69aae989a9411c1171a24f666e1d11e (diff)
downloadCMake-12605f16ac8712547f34541d4c1d1fa4c33435eb.zip
CMake-12605f16ac8712547f34541d4c1d1fa4c33435eb.tar.gz
CMake-12605f16ac8712547f34541d4c1d1fa4c33435eb.tar.bz2
BUG: util targets now show up in locla makefile and make rebuild_cache now works in subdirs
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.cxx17
1 files changed, 10 insertions, 7 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx
index 04e64c9..fe303a7 100644
--- a/Source/cmLocalUnixMakefileGenerator3.cxx
+++ b/Source/cmLocalUnixMakefileGenerator3.cxx
@@ -992,15 +992,16 @@ cmLocalUnixMakefileGenerator3
makefileStream
<< "# The CMake executable.\n"
<< "CMAKE_COMMAND = "
- << this->Convert(cmakecommand.c_str(),HOME_OUTPUT,MAKEFILE).c_str() << "\n"
+ << this->Convert(cmakecommand.c_str(),START_OUTPUT,MAKEFILE).c_str()
+ << "\n"
<< "\n";
makefileStream
<< "# The command to remove a file.\n"
<< "RM = "
- << this->Convert(cmakecommand.c_str(),HOME_OUTPUT,SHELL).c_str()
+ << this->Convert(cmakecommand.c_str(),START_OUTPUT,SHELL).c_str()
<< " -E remove -f\n"
<< "\n";
-
+
if(m_Makefile->GetDefinition("CMAKE_EDIT_COMMAND"))
{
makefileStream
@@ -1014,12 +1015,13 @@ cmLocalUnixMakefileGenerator3
makefileStream
<< "# The top-level source directory on which CMake was run.\n"
<< "CMAKE_SOURCE_DIR = "
- << this->Convert(m_Makefile->GetHomeDirectory(), HOME_OUTPUT, SHELL)
+ << this->Convert(m_Makefile->GetHomeDirectory(), START_OUTPUT, SHELL)
<< "\n"
<< "\n";
makefileStream
<< "# The top-level build directory on which CMake was run.\n"
- << "CMAKE_BINARY_DIR = ."
+ << "CMAKE_BINARY_DIR = "
+ << this->Convert(m_Makefile->GetHomeOutputDirectory(), START_OUTPUT, SHELL)
<< "\n"
<< "\n";
}
@@ -2800,7 +2802,7 @@ void cmLocalUnixMakefileGenerator3::WriteLocalMakefile()
this->CreateJumpCommand(commands,"Makefile2",dir);
this->WriteMakeRule(ruleFileStream, "The main clean target", "clean", depends, commands);
- // recursively write our targets, and while doing it collect up the object
+ // write our targets, and while doing it collect up the object
// file rules
this->WriteLocalMakefileTargets(ruleFileStream);
@@ -2845,7 +2847,8 @@ void cmLocalUnixMakefileGenerator3
if((t->second.GetType() == cmTarget::EXECUTABLE) ||
(t->second.GetType() == cmTarget::STATIC_LIBRARY) ||
(t->second.GetType() == cmTarget::SHARED_LIBRARY) ||
- (t->second.GetType() == cmTarget::MODULE_LIBRARY))
+ (t->second.GetType() == cmTarget::MODULE_LIBRARY) ||
+ (t->second.GetType() == cmTarget::UTILITY))
{
// Add a rule to build the target by name.
localName = this->GetRelativeTargetDirectory(t->second);