Hello,
On Wed, Nov 08, 2006 at 11:29:39AM -0700, David Everly wrote:
> I should have used this (because test.txt is not constructed):
>
> dist_sysconf_DATA = $(top_srcdir)/test.txt
>
> However, I've regularly run 'make distcheck' and it gives no error
> with the original sysconf_DATA. How can this be?
`make distcheck' creates a tarball, unpacks it to a new directory and
runs build and install there. This implies that test.txt was
installed during the process. So it seems it was available.
When you run `make dist' with the old setup, is test.txt packed in
the resulting tarball?
Perhaps the file was mentioned in EXTRA_DIST, or another list of
distributed files. In that case it would not be strictly necessary
to use `dist_sysconf_DATA' instead of `sysconf_DATA'.
But in most cases, it is more readable to use `dist_sysconf_DATA'.
HTH,
Stepan