diff options
author | Brad King <brad.king@kitware.com> | 2006-02-16 23:50:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-02-16 23:50:16 (GMT) |
commit | f09778c4a5484d8d26cecdf31c02e44bdb881f9d (patch) | |
tree | 5b51055c7c6b6305aa78c46483ac19c624d697f0 /Source/cmGlobalUnixMakefileGenerator3.cxx | |
parent | 53821a505ee7b9baee2337c0a93e176d64304896 (diff) | |
download | CMake-f09778c4a5484d8d26cecdf31c02e44bdb881f9d.zip CMake-f09778c4a5484d8d26cecdf31c02e44bdb881f9d.tar.gz CMake-f09778c4a5484d8d26cecdf31c02e44bdb881f9d.tar.bz2 |
BUG: Work-around borland make bug that drops a rule completely if it has no dependencies or commands.
Diffstat (limited to 'Source/cmGlobalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmGlobalUnixMakefileGenerator3.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx index 70c0ed4..f16d9a1 100644 --- a/Source/cmGlobalUnixMakefileGenerator3.cxx +++ b/Source/cmGlobalUnixMakefileGenerator3.cxx @@ -147,6 +147,13 @@ void cmGlobalUnixMakefileGenerator3::WriteMainMakefile2() depends.clear(); + // The all and preinstall rules might never have any dependencies + // added to them. + if(m_EmptyRuleHackDepends != "") + { + depends.push_back(m_EmptyRuleHackDepends); + } + // Write and empty all: lg->WriteMakeRule(makefileStream, "The main recursive all target", "all", |