]> git.draconx.ca Git - dxcommon.git/commit
Improve distribution of Autotest testsuite dependencies.
authorNick Bowler <nbowler@draconx.ca>
Sat, 8 Feb 2020 16:11:28 +0000 (11:11 -0500)
committerNick Bowler <nbowler@draconx.ca>
Sat, 8 Feb 2020 16:11:28 +0000 (11:11 -0500)
commit157fb6f1bcb5af0d93bb588522bb1be86aa2fd71
treec2ac990b9a1dff308ea29a5f1ff88d9dfa6b10e8
parent803e498e869f88d9daceadf143e3360c17cb7410
Improve distribution of Autotest testsuite dependencies.

A fresh distribution tarball includes a generated testsuite, but
does not have the benefit of rules from automatic dependency tracking.

This means if a file included by the testsuite is modified in the
tarball, the build will not detect that testsuite is out of date
and will not try to rebuild it.

A similar scenario occurs if 'make distclean' is run after building
the test suite.

Since modern Automake uses make rules to generate the dependency stubs,
we can use the distributed testsuite dependencies record to produce
an accurate initial list of prerequisites.  And by ensuring that this
file is updated whenever the testsuite is built, we can handle the
'make distclean' case too.
snippet/autotest.mk