automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: make dist failure with directory symlink


From: Martin Frydl
Subject: Re: make dist failure with directory symlink
Date: Mon, 23 Jun 2003 13:06:52 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030314

Alexandre Duret-Lutz wrote:
"Martin" == Martin Frydl <address@hidden> 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

Attachment: make-dist-test.tar.gz
Description: application/gzip


reply via email to

[Prev in Thread] Current Thread [Next in Thread]