[Mesa-dev] [PATCH 3/5] build: fix location of generated files in src/mesa

Christopher James Halse Rogers christopher.halse.rogers at canonical.com
Sun Jul 8 19:44:58 PDT 2012


On Sun, 2012-07-08 at 19:39 -0700, Kenneth Graunke wrote:
> On 07/08/2012 04:14 PM, Christopher James Halse Rogers wrote:
> > Signed-off-by: Christopher James Halse Rogers <christopher.halse.rogers at canonical.com>
> > ---
> >  src/mesa/sources.mak |    9 +++++----
> >  1 file changed, 5 insertions(+), 4 deletions(-)
> > 
> > diff --git a/src/mesa/sources.mak b/src/mesa/sources.mak
> > index 16b1c39..87191fd 100644
> > --- a/src/mesa/sources.mak
> > +++ b/src/mesa/sources.mak
> > @@ -4,8 +4,8 @@ SRCDIR ?= .
> >  
> >  # this is part of MAIN_FILES
> >  MAIN_ES_FILES = \
> > -	$(SRCDIR)/main/api_exec_es1.c \
> > -	$(SRCDIR)/main/api_exec_es2.c
> > +	$(TOP)/src/mesa/main/api_exec_es1.c \
> > +	$(TOP)/src/mesa/main/api_exec_es2.c
> 
> Could we use $(top_builddir) instead of $(TOP)?  As your first patch
> demonstrates, there are really two top-level directories, so $(TOP) is
> ambiguous/confusing.  I'd rather see us stop using it, for clarity.

It's included in a number of non-automake Makefiles, where IIUC
$(top_builddir) is not normally defined.

On the other hand, making these Makefiles define $(top_builddir) instead
of $(TOP) would be easy, and probably makes sense given the transition
to autotools. I'll do that.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20120709/019bebcf/attachment.pgp>


More information about the mesa-dev mailing list