[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: not sure about value of "$(lastword $(MAKEFILE_LIST))" in this examp
From: |
Robert P. J. Day |
Subject: |
Re: not sure about value of "$(lastword $(MAKEFILE_LIST))" in this example |
Date: |
Tue, 15 Oct 2019 13:56:53 -0400 (EDT) |
User-agent: |
Alpine 2.21 (LFD 202 2017-01-01) |
On Tue, 15 Oct 2019, Kaz Kylheku (gmake) wrote:
> On 2019-10-15 10:06, Robert P. J. Day wrote:
> > On Tue, 15 Oct 2019, Kaz Kylheku (gmake) wrote:
> >
> >> On 2019-10-15 08:59, Robert P. J. Day wrote:
> >> > i'm not sure what to make of this since there is only one Makefile
> >> > in play in this directory, and the docker container has its
> >> > working directory set to this directory, and all of the targets
> >> > being invoked are defined in the same Makefile.
> >>
> >> It allows the containing file to re-invoke itself regardless of its
> >> name. Even if it is the only makefile in the directory, this would
> >> be required if its name isn't "dir.mk"...
> >
> > i understood all of that except for the above ... what is magic
> > about the makefile name "dir.mk"? what is magic about that name such
> > that it would be used unless overridden?
>
> Nothing; I think what I was writing was "if its name isn't
> Makefile but something else, like dir.mk". Somehow I bungled
> it in editing.
ok, that makes sense now, thanks.
rday