can "vpath" be used to simplify some makefiles? please?

Robert P. J. Day rpjday at mindspring.com
Sun May 14 13:25:03 UTC 2006


On Sun, 14 May 2006, Bernhard Fischer wrote:

> On Thu, May 11, 2006 at 07:05:14AM -0400, Robert P. J. Day wrote:
> >
> >  at the moment, the included makefile libbb/Makefile.in is
> >unnecessarily ugly because of the constant qualification of source
> >file names with "$(srcdir)/".  is there a reason that this can't be
> >simplified with a trivial use of "vpath"?  i mean, really, that's
> >the whole rationale for vpath.
> >
> >  and it's not like vpath is not already being used elsewhere, as
> > in
> >the top-level BB Makefile:
> >
> >	export srctree=$(top_srcdir)
> >	vpath %/Config.in $(srctree)
> >
> >  so, is there any major objection to this kind of change?
>
> I'm not too pleased by that idea.

it doesn't matter -- it's not as simple as i originally thought,
anyway.  i still think the use of "vpath" is a good idea, it just has
to be designed in more carefully.  i'll think about this some more.

rday



More information about the busybox mailing list