]> git.ipfire.org Git - thirdparty/coreutils.git/commit
maint: avoid spurious "make distcheck" failure
authorJim Meyering <meyering@fb.com>
Tue, 20 Jun 2017 14:53:17 +0000 (07:53 -0700)
committerJim Meyering <meyering@fb.com>
Tue, 20 Jun 2017 23:01:39 +0000 (16:01 -0700)
commite13fe20049166da816cc5102f13210264c866008
tree865b6b358f2ab709882a56daca8c2c2d26e8acc2
parent1379bdc65b76471a344b2affc8f1e9b6188d1092
maint: avoid spurious "make distcheck" failure

When the generated file, doc/constants.texi, happens to be older than
doc/coreutils.info, it will not be updated until/unless its generated
contents change.  This is due to way that rule is careful to update
the file, to avoid provoking a pointless rerunning of makeinfo.

Note that this does not happen when one first runs "make distclean",
as recommended in README-release.  However, I sometimes run it as
a more-rigorous "make check", and shouldn't have to manually run
"make distclean" first, in that case.

Before this change, one could reproduce the failure by running
`touch -dyesterday doc/constants.texi && make distcheck`.  It would
fail with "makeinfo: could not open ../../doc/coreutils.info-t
for writing: Permission denied"
* Makefile.am (dist-hook): Touch the two generated files, so that
they cannot be out of date wrt doc/coreutils.texi.
Makefile.am