[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Querying the name of the current makefile
From: |
Greg Chicares |
Subject: |
Re: Querying the name of the current makefile |
Date: |
Mon, 03 Apr 2006 16:03:48 +0000 |
User-agent: |
Mozilla Thunderbird 1.0.2 (Windows/20050317) |
On 2006-4-3 15:38 UTC, John Graham-Cumming wrote:
> Greg Chicares wrote:
>
>> Is there any way to determine the name of the current makefile?
>
> THIS_MAKEFILE := $(words $(word $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
[I think you meant:]
$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
I had RT wrong FM. It's not present in 3.79, but section 3.5
of the make-3.80 manual explains this in detail. Thanks.