Subject: Re: bug#20186: Failure to create directory during info-building phase of "make distcheck"

From: Peter Breitenlohner <[email-masked]>
Date: Wed, 25 Mar 2015 13:47:57 +0100 (CET)

On Tue, 24 Mar 2015, James Youngman wrote:

> The timestamps look OK to me:
>
> ...
>
> Perhaps the cause is this rule, though:
>
> dblocation.texi: ../locate/dblocation.texi
>        cp ../locate/dblocation.texi $@
>
> This will clearly update the mtime of dblocation.texi.

Hi James,

indeed.  You could use the modified rule
 	dblocation.texi: ../locate/dblocation.texi
 		$(LN_S) ../locate/dblocation.texi $@
where $(LN_S) is 'ln -s' on systems with working symlinks or otherwise one
of 'ln' or 'cp'.  I assume your Makefile.in already contains
 	LN_S = @LN_S@
otherwise you should add
 	AC_PROG_LN_S
to your configure.ac.

I assume 'make distcheck' will never run on systems without working symlinks
so this should be OK.

Regards
Peter