Boris Kolpackov wrote:
Noel Yap <[EMAIL PROTECTED]> writes:
Try:
$ cat >bar.make
include foo.make
$(warning $(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))))
You gotta be kidding me!
p := $(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)))
include foo.make
$(warning $p)
Like I said, explicitly doing this in the makefiles that need is becomes quite
messy. Moreover, I haven't done any timings, but I'd hazard a guess that this is much
slower than setting __FILE__ for each included makefile.
I never said MAKEFILE_LIST is unusable; I said it's very lacking and that
MAKEFILE_STACK would be better if it existed.
Noel
_______________________________________________
Bug-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-make