summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ct-ng.in10
1 files changed, 6 insertions, 4 deletions
diff --git a/ct-ng.in b/ct-ng.in
index 5e234c1..f86be46 100644
--- a/ct-ng.in
+++ b/ct-ng.in
@@ -13,11 +13,13 @@ MAKEFLAGS += --no-print-directory --no-builtin-rules
# bash. (Note: this is ugly, but ./configure checks for it).
export SHELL=/bin/bash
-# This is where ct-ng is.
-# Don't bother to change it other than with a new ./configure!
-CT_NG:=@@CT_BINDIR@@/ct-ng
-
+# This is where ct-ng is:
+export CT_NG:=$(lastword $(MAKEFILE_LIST))
+# and this is where we're working in:
export CT_TOP_DIR:=$(shell pwd)
+
+# Paths and values set by ./configure
+# Don't bother to change it other than with a new ./configure!
export CT_LIB_DIR:=@@CT_LIBDIR@@
export CT_DOC_DIR:=@@CT_DOCDIR@@