From dd6bd4a9adbe15f414b19304f15e563829e408fd Mon Sep 17 00:00:00 2001
From: Botond Baranyi <botond.baranyi@ericsson.com>
Date: Fri, 20 Oct 2017 10:12:28 +0200
Subject: [PATCH] Changed generated makefile to only set TTCN3_DIR if it is
 undefined

Change-Id: I99267e4412134b2136b892662cb12954291dd74d
Signed-off-by: Botond Baranyi <botond.baranyi@ericsson.com>
---
 compiler2/makefile.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/compiler2/makefile.c b/compiler2/makefile.c
index caffb45c5..380c117a3 100644
--- a/compiler2/makefile.c
+++ b/compiler2/makefile.c
@@ -2076,7 +2076,9 @@ static void print_makefile(struct makefile_struct *makefile)
           "# The path of your TTCN-3 Test Executor installation:\n"
           "# Uncomment this line to override the environment variable.\n"
           "%s"
-          "# TTCN3_DIR = %s\n"
+          "ifndef TTCN3_DIR\n"
+          "TTCN3_DIR = %s\n"
+          "endif\n"
       , titan_dir ?
         "# The value below points to the location of the TITAN version\n"
         "# that generated this makefile.\n" : ""
-- 
GitLab