[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: Malcolm Rowe <malcolm-svn-dev_at_farside.org.uk>
Date: 2005-11-15 17:35:33 CET

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.

> 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.


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Nov 15 17:37:16 2005

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