[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: bug in swig make process?

From: Mathias Weinert <mathias.weinert_at_gfa-net.de>
Date: 2005-11-16 09:04:00 CET

Malcolm Rowe wrote:
> On Tue, Nov 15, 2005 at 04:35:10PM +0100, Mathias Weinert wrote:
> > But (at least on my machine) Makefile sets these two
> > variables to the same directory.
> >
> > If I look at configure.in I see:
> > abs_srcdir="`cd $srcdir && pwd`"
> > abs_builddir="`pwd`"
> > which lets me suppose that these two variables will
> > always be set to the same values.
> >
>
> If you use what's variously known as an objdir or VPATH build, you'll
> notice that these two paths are different. To do that, create a fresh
> directory and run configure from there:
>
> (assuming you've unpacked the tarball into a directory called ~/svn-srcdir)
> $ mkdir ~/svn-objdir
> $ cd ~/svn-objdir
> $ ../svn-srcdir/configure [flags]
>
> Now you'll have a Makefile in ~/svn-objdir that has abs_srcdir set to
> ~/svn-srcdir, and abs_builddir set to ~/svn-objdir. Running 'make'
> will write only to the build directory, not the srcdir.

Got it.

>
> > The reason for this is that the files (and other swig
> > files) are only deleted if the following condition is
> > true:
> > 'if test $(abs_srcdir) != $(abs_builddir);'.
> >
>
> So it only deletes the files in objdir builds. That's odd; I wonder why.
>
> Are the files generated in the srcdir, I wonder? Some of our files are
> (by configure), and make extraclean removes them.
>

Got it.

BTW when I am doing configure for an objdir build (as described above)
the proxy dir is empty.

Thanks for your help!

Mathias

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Nov 16 09:05:00 2005

This is an archived mail posted to the Subversion Dev mailing list.