summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/Preprocessor.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2014-10-17 23:49:00 +0200
committerJose <jose@zeroc.com>2014-10-17 23:49:00 +0200
commit3270752330a64428f77bd5a103e7d64486353176 (patch)
tree1889b57d9a2ef3133877c7291823f51440c7d274 /cpp/src/Slice/Preprocessor.cpp
parentfix build.xml to install IceDiscovery.jar (diff)
downloadice-3270752330a64428f77bd5a103e7d64486353176.tar.bz2
ice-3270752330a64428f77bd5a103e7d64486353176.tar.xz
ice-3270752330a64428f77bd5a103e7d64486353176.zip
Dependency fixes:
Add quotes to Windows Slice dependencies Fix Cicular dependency issue with Make 3.82 included in rhel7, C++ dependencies now are of type Foo.h: Foo.ice, we don't need Foo.cpp as that always depend on Foo.h
Diffstat (limited to 'cpp/src/Slice/Preprocessor.cpp')
-rw-r--r--cpp/src/Slice/Preprocessor.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/cpp/src/Slice/Preprocessor.cpp b/cpp/src/Slice/Preprocessor.cpp
index a549d224a89..25eb99c26c7 100644
--- a/cpp/src/Slice/Preprocessor.cpp
+++ b/cpp/src/Slice/Preprocessor.cpp
@@ -491,16 +491,14 @@ Slice::Preprocessor::printMakefileDependencies(Language lang, const vector<strin
case CPlusPlus:
{
//
- // Change .o[bj] suffix to the cpp source extension suffix.
+ // Change .o[bj] suffix to the h header extension suffix.
//
string::size_type pos = result.find(suffix);
if(pos != string::npos)
{
string name = result.substr(0, pos);
- result.replace(0, pos + suffix.size() - 1, name + "." + cppSourceExt);
+ result.replace(0, pos + suffix.size() - 1, name + "." + cppHeaderExt);
- result += "\n";
- result += name + "." + cppHeaderExt + ": " + name + "." + cppSourceExt;
}
break;
}
@@ -510,7 +508,7 @@ Slice::Preprocessor::printMakefileDependencies(Language lang, const vector<strin
{
//
// We want to shift the files left one position, so that
- // "x.cpp: x.ice y.ice" becomes "x.ice: y.ice".
+ // "x.h: x.ice y.ice" becomes "x.ice: y.ice".
//
//