[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: need access to Makefile path

From: Noel Yap
Subject: Re: need access to Makefile path
Date: Tue, 18 May 2004 14:02:31 -0400
User-agent: Mozilla Thunderbird 0.5 (Windows/20040212)

Boris Kolpackov wrote:

Noel Yap <address@hidden> writes:


$ 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]