Trying to guess how we were called does not work. Don't try to be smart, and take the full path, even if we are in PATH.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Aug 31 16:20:03 2007 +0000 (2007-08-31)
changeset 3489fcb5046b4b5
parent 347 10d6514f4f94
child 349 68b007f5adf1
Trying to guess how we were called does not work. Don't try to be smart, and take the full path, even if we are in PATH.
ct-ng.in
     1.1 --- a/ct-ng.in	Thu Aug 30 19:49:21 2007 +0000
     1.2 +++ b/ct-ng.in	Fri Aug 31 16:20:03 2007 +0000
     1.3 @@ -7,7 +7,7 @@
     1.4  
     1.5  # Remember the name of the Makefile
     1.6  CT_MAKEFILE := $(lastword $(MAKEFILE_LIST))
     1.7 -CT_NG := $(shell echo '$(CT_MAKEFILE)' |sed -r -e 's,($(subst :,|,$(PATH)))/,,;')
     1.8 +CT_NG := $(CT_MAKEFILE)
     1.9  
    1.10  export CT_TOP_DIR:=$(shell pwd)
    1.11  export CT_LIB_DIR:=@@CT_LIBDIR@@