perl-module: Copy Perl module from srcdir to builddir before distributing.
authorBen Pfaff <blp@cs.stanford.edu>
Mon, 30 May 2022 18:05:45 +0000 (11:05 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Mon, 30 May 2022 18:05:45 +0000 (11:05 -0700)
commit465b483003f5b3fdb4d1c311f4ba78e71bf48c51
tree049d34cbbf813a78787ae29387d83a1ed951581b
parent20934a68593edbd52577f1ba0ea93c74eb018af5
perl-module: Copy Perl module from srcdir to builddir before distributing.

I ran into an issue where the Perl tests were failing in distcheck, but
not in check.  I changed the sources for the Perl module, but distcheck
still used the old ones.  It turns out that "make dist" uses files from
the builddir, which "make dist" wasn't updating from the srcdir because
that only happened when the Perl module was actually built, which "make
dist" and "make distcheck" don't do.

This commit fixes the problem by ensuring that the Perl module files get
updated in the builddir on "make dist".
perl-module/automake.mk