diff --git a/Makefile b/Makefile
index 5d439d9..b152663 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# This Makefile was generated using MakeGen v1.3.7 made by Tim HÃ¥kansson
+# This Makefile was generated using MakeGen v1.3.8 made by Tim HÃ¥kansson
# and is licensed under MIT. Full source of the project can be found at
# https://github.com/Thraix/MakeGen
CC=@g++
diff --git a/makegen.xml b/makegen.xml
index 1c485c7..9921a78 100644
--- a/makegen.xml
+++ b/makegen.xml
@@ -19,5 +19,5 @@
src/
Release
- v1.3.7
+ v1.3.8
diff --git a/src/Common.h b/src/Common.h
index e5febac..838529f 100644
--- a/src/Common.h
+++ b/src/Common.h
@@ -14,7 +14,7 @@
// Release, should be backwards compatible with any minor version
#define MAKEGEN_VERSION_RELEASE 3
// Minor changes, generally bug fixes
-#define MAKEGEN_VERSION_MINOR 7
+#define MAKEGEN_VERSION_MINOR 8
#define MAKEGEN_VERSION ("v" STR(MAKEGEN_VERSION_MAJOR) "." STR(MAKEGEN_VERSION_RELEASE) "." STR(MAKEGEN_VERSION_MINOR))
diff --git a/src/Makefile.cpp b/src/Makefile.cpp
index 3e91ce7..03359c0 100755
--- a/src/Makefile.cpp
+++ b/src/Makefile.cpp
@@ -54,7 +54,9 @@ void Makefile::Save(ConfigFile& conf, unsigned int flags)
{
std::filesystem::path cppFile(*it);
std::filesystem::path oFile = cppFile.replace_extension("o");
- outputFile << "$(OBJPATH)/" << oFile.string() << " ";
+ std::string oFileStr = oFile.string();
+ Utils::Replace(oFileStr, "..", "dotdot");
+ outputFile << "$(OBJPATH)/" << oFileStr << " ";
}
outputFile << std::endl;
if (outputtype == "executable" || outputtype != "sharedlibrary")
@@ -182,7 +184,9 @@ void Makefile::Save(ConfigFile& conf, unsigned int flags)
{
std::filesystem::path cppFile(*it);
std::filesystem::path oFile = cppFile.replace_extension("o");
- outputFile << "$(OBJPATH)/" << oFile.string() << ":";
+ std::string oFileStr = oFile.string();
+ Utils::Replace(oFileStr, "..", "dotdot");
+ outputFile << "$(OBJPATH)/" << oFileStr << ":";
if (flags & FLAG_SIMPLE)
{
outputFile << " " << *it;
@@ -206,7 +210,9 @@ std::set Makefile::GetIntermediateDirectories(const std::set& cppFiles);
static void GetCppAndHFiles(ConfigFile& conf, std::set& hFiles, std::set& cppFiles);
static void GetHFiles(const std::string& dependencyDir, ConfigFile& conf, std::set& hFiles);