Allow ct-ng to be run from non-repo directories

closes #993

Signed-off-by: Daniel Black <daniel@linux.ibm.com>
This commit is contained in:
Daniel Black 2018-11-02 22:42:27 +11:00 committed by Alexey Neyman
parent 673046cd2b
commit a98584c897

View File

@ -17,7 +17,7 @@ export CT_TOP_DIR:=$(shell pwd)
ifeq (@enable_local@,yes) ifeq (@enable_local@,yes)
# automake does not allow to set pkgxxxdir, they are always derived from # automake does not allow to set pkgxxxdir, they are always derived from
# a respective xxxdir. So, for enable-local case, set them directly here. # 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_LIBEXEC_DIR:=$(CT_TOP_DIR)/kconfig
export CT_DOC_DIR:=$(CT_TOP_DIR)/docs export CT_DOC_DIR:=$(CT_TOP_DIR)/docs
else else