Small semantic fix in ct.ng(.in): use make builtin variable to know the make-script name.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Jan 19 21:57:55 2009 +0000 (2009-01-19)
changeset 1144e1bf6cd3a27c
parent 1143 eee9e8de51e3
child 1145 db416a45798a
Small semantic fix in ct.ng(.in): use make builtin variable to know the make-script name.

/trunk/ct-ng.in | 10 6 4 0 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
ct-ng.in
     1.1 --- a/ct-ng.in	Sun Jan 18 17:45:10 2009 +0000
     1.2 +++ b/ct-ng.in	Mon Jan 19 21:57:55 2009 +0000
     1.3 @@ -13,11 +13,13 @@
     1.4  # bash. (Note: this is ugly, but ./configure checks for it).
     1.5  export SHELL=/bin/bash
     1.6  
     1.7 -# This is where ct-ng is.
     1.8 +# This is where ct-ng is:
     1.9 +export CT_NG:=$(lastword $(MAKEFILE_LIST))
    1.10 +# and this is where we're working in:
    1.11 +export CT_TOP_DIR:=$(shell pwd)
    1.12 +
    1.13 +# Paths and values set by ./configure
    1.14  # Don't bother to change it other than with a new ./configure!
    1.15 -CT_NG:=@@CT_BINDIR@@/ct-ng
    1.16 -
    1.17 -export CT_TOP_DIR:=$(shell pwd)
    1.18  export CT_LIB_DIR:=@@CT_LIBDIR@@
    1.19  export CT_DOC_DIR:=@@CT_DOCDIR@@
    1.20