help-make
[Top][All Lists]
Advanced

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

Re: MAKEFLAGS and auto-including another makefile


From: Robert P. J. Day
Subject: Re: MAKEFLAGS and auto-including another makefile
Date: Fri, 7 Jan 2005 11:25:46 -0500 (EST)

On Fri, 7 Jan 2005, Ken Smith wrote:

> On Fri, Jan 07, 2005 at 08:33:01AM -0500, Robert P. J. Day wrote:

> >   is there a standard way to do this?  i went looking for a
> > MAKEINCLUDES env variable or something like that, but didn't find one.
> > and i'm not sure i want to use MAKEFILES for something like that.  or
> > do i?
>
> Can you simply ask your users to use the complete path to your
> include makefile?

sorry, not sure what you mean.  ask them to use the complete path
where?  on the "-I" option when they invoke make?  i'd rather avoid
that.  or in the internal "include", which i'd rather avoid as well.
i'm pretty sure i'm misinterpreting what you mean.

for the moment, as grotty as it seems, what i'm doing is just setting
the env variable for everyone:

  export MAKEFLAGS="-I /a/b/c"

so that everyone, when they write their own makefiles, just has to
write:

  include usefuldefines.mk

and it will be found automatically.

  but, again, this seems like a fairly handy thing to be able to do
and, if there's no clean way to do it, what about introducing another
variable, MAKEINCLUDES, to handle it?   it doesn't seem like that
would hurt anything.

rday




reply via email to

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