"Martin" == Martin Frydl <[EMAIL PROTECTED]> writes:
Martin> I have a special rule in my Makefile.am which creates symlink to Martin> one of source directories when building to different directory tree Martin> (using VPATH). I have this directory also in EXTRA_DIST.
Could you show an example of such a setup? I don't understand why you EXTRA_DIST a directory you don't want to distribute.
I've attached an example. Just run test.sh - it will run automake/autoconf for setup, create build directory, run configure in it, compile and then try to run make dist. It should fail with error:
cp: cannot overwrite directory `make-dist-test-0.1/files' with non-directory
I want the directory to be distributed. It contains many test files used by program being built and the test program expects them in directory where it lies. Therefore I create a symlink to that directory in sources.
It's important that we copy symlinked files and I tend to think we should not handle directory differently.
I agree, the problem is that cp does not like copying of symlink onto a directory.
Martin
make-dist-test.tar.gz
Description: application/gzip