help-make
[Top][All Lists]
Advanced

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

Re: Q: how to change search path for makefiles inside of makefile?


From: Noel Yap
Subject: Re: Q: how to change search path for makefiles inside of makefile?
Date: Fri, 26 Sep 2003 13:43:21 -0400

I think this solution won't work in this case since makefileB is included from 
makefileA.  By then, the vpath can't be changed.

Noel

Tristan Van Berkom wrote:
> 
> I havent tried it without using a pattern charachter ('%') but this
> should probably work:
> 
> vpath makefileB path
> 
> but I usualy use:
> 
> vpath %.mk path...
> 
> Cheers,
>                     -Tristan
> 
> >Hi!
> >
> >How can I change the search path for a makefileB inside makefileA ?
> >
> >Inside makefileA I have a
> >
> >include makefileB
> >
> >I want to have make search for makefileB first in the current directory (the
> >one I call make inside), then in the directory above and finally another
> >level higher.
> >
> >How do I implement this? Background: at the top level I have a makefile with
> >all settings. Next I want to derive my current makefile from the superclass
> >makefile.
> >
> >Is this possible with GNU make?
> >
> >If not: feature request: MAKEFILE_SEARCHPATH variable which can be defined
> >inside a makefile!!!
> >
> >
> >
> 
> _______________________________________________
> Help-make mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/help-make

-- 
NOTICE: If received in error, please destroy and notify sender.  Sender does 
not waive confidentiality or privilege, and use is prohibited.




reply via email to

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