automake
[Top][All Lists]
Advanced

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

Re: Incorrect directory creation with 'make dist' and EXTRA_DIST


From: Stepan Kasal
Subject: Re: Incorrect directory creation with 'make dist' and EXTRA_DIST
Date: Wed, 4 Jan 2006 21:00:45 +0100
User-agent: Mutt/1.4.1i

Hello,

On Wed, Jan 04, 2006 at 06:12:11PM +0100, Sander Niemeijer wrote:
> distdir: $(DISTFILES)
>         $(am__remove_distdir)
>         mkdir $(distdir)
> --->    $(mkdir_p) $(distdir)/$(top_srcdir)/data

The problem is caused by the following line in Makefile.am:

        EXTRA_DIST = $(top_srcdir)/data/foo.txt

There are two possible answers:

1)  The patch attached to this mail fixes it.

2)  Please use
        EXTRA_DIST = data/foo.txt
Automake finds the fine in the src tree.

If you are using this in a Makefile.am, then use
        EXTRA_DIST = ../../data/foo.txt
or
        EXTRA_DIST = $(top_builddir)/data/foo.txt
It is a bit counter-intuitive: top_builddir always expands to
a relative path, so the above mkdir works.

Have a nice day,
        Stepan Kasal

Attachment: automake-20060104-dist-srcdir.patch
Description: Text document


reply via email to

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