From a98584c8971c1932ddd216fe6bbca456cd94a388 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Fri, 2 Nov 2018 22:42:27 +1100 Subject: Allow ct-ng to be run from non-repo directories closes #993 Signed-off-by: Daniel Black 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 -- cgit v0.10.2-6-g49f6