Produce symlink into builddir on VPATH?

2014-06-11 Thread Rhys Ulerich
Other than resorting to the shell in a target, is there a way to cause
Automake to produce a symlink from the source tree into the build tree
if-and-only-if the build is VPATH?

I've some non-generated Python code (srcdir) relying on generated
Python code (builddir) and I'd like to be able to just use it from the
builddir (hence the symlink from srcdir) without monkeying with
PYTHONPATH.

Thanks,
Rhys



Re: Produce symlink into builddir on VPATH?

2014-06-11 Thread Eric Blake
On 06/11/2014 04:18 PM, Rhys Ulerich wrote:
 Other than resorting to the shell in a target, is there a way to cause
 Automake to produce a symlink from the source tree into the build tree
 if-and-only-if the build is VPATH?

Yes, for new enough autotools.  See how gnulib does it for GNUmakefile:

http://git.savannah.gnu.org/cgit/gnulib.git/tree/modules/gnumakefile

-- 
Eric Blake   eblake redhat com+1-919-301-3266
Libvirt virtualization library http://libvirt.org



signature.asc
Description: OpenPGP digital signature