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
> [EMAIL PROTECTED]
> 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.


_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to