aboutsummaryrefslogtreecommitdiff
path: root/ct-ng.in
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2018-11-03 14:31:58 -0700
committerGitHub <noreply@github.com>2018-11-03 14:31:58 -0700
commitbe1ae32a984b6223b3ab66aa1bdd9c63b36e3849 (patch)
treec69b2ca17032e4327242b09ae1180ae9631a285d /ct-ng.in
parent673046cd2beb4d44f6bfa7b6b55ebadb1ee3c19e (diff)
parentd4aa8d954d5f802c75ffaadd3fb938055d62cf25 (diff)
downloadcrosstool-ng-be1ae32a984b6223b3ab66aa1bdd9c63b36e3849.tar.gz
crosstool-ng-be1ae32a984b6223b3ab66aa1bdd9c63b36e3849.tar.bz2
crosstool-ng-be1ae32a984b6223b3ab66aa1bdd9c63b36e3849.zip
Merge pull request #1082 from stilor/run-from
Run "local" ct-ng from any directory
Diffstat (limited to 'ct-ng.in')
-rw-r--r--ct-ng.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/ct-ng.in b/ct-ng.in
index 25129583..75f33545 100644
--- a/ct-ng.in
+++ b/ct-ng.in
@@ -17,9 +17,9 @@ 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_LIBEXEC_DIR:=$(CT_TOP_DIR)/kconfig
-export CT_DOC_DIR:=$(CT_TOP_DIR)/docs
+export CT_LIB_DIR:=$(dir $(CT_NG))
+export CT_LIBEXEC_DIR:=$(CT_LIB_DIR)/kconfig
+export CT_DOC_DIR:=$(CT_LIB_DIR)/docs
else
# Paths and values set by ./configure
# Don't bother to change it other than with a new ./configure!