summaryrefslogtreecommitdiff
path: root/ct-ng.in
diff options
context:
space:
mode:
authorDaniel Black <daniel@linux.ibm.com>2018-11-02 11:42:27 (GMT)
committerAlexey Neyman <stilor@att.net>2018-11-03 21:13:08 (GMT)
commita98584c8971c1932ddd216fe6bbca456cd94a388 (patch)
tree2859afab9e2087e0d9f4968d0bc284005534a4e9 /ct-ng.in
parent673046cd2beb4d44f6bfa7b6b55ebadb1ee3c19e (diff)
Allow ct-ng to be run from non-repo directories
closes #993 Signed-off-by: Daniel Black <daniel@linux.ibm.com>
Diffstat (limited to 'ct-ng.in')
-rw-r--r--ct-ng.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/ct-ng.in b/ct-ng.in
index 2512958..f8dabd7 100644
--- a/ct-ng.in
+++ b/ct-ng.in
@@ -17,7 +17,7 @@ export CT_TOP_DIR:=$(shell pwd)
ifeq (@enable_local@,yes)
# automake does not allow to set pkgxxxdir, they are always derived from
# a respective xxxdir. So, for enable-local case, set them directly here.
-export CT_LIB_DIR:=$(shell cd "@srcdir@" && pwd)
+export CT_LIB_DIR:=$(shell dirname $(CT_NG))
export CT_LIBEXEC_DIR:=$(CT_TOP_DIR)/kconfig
export CT_DOC_DIR:=$(CT_TOP_DIR)/docs
else