Automake also generates a distcheck
rule that can be of help
to ensure that a given distribution will actually work. Simplifying
a bit, we can say this rule first makes a distribution, and then,
operating from it, takes the following steps (in this order):
VPATH
build (see Parallel Build Trees (a.k.a. VPATH Builds)), with the
srcdir
and all its content made read-only;
make dvi
), if any,
make check
) on this fresh build;
make
install
), and runs the test suite on the resulting installation
(with make installcheck
);
make
uninstall
) and cleaned (by make distclean
);
All of these actions are performed in a temporary directory. The exact location and the exact structure of such a directory (where the read-only sources are placed, how the temporary build and install directories are named and how deeply they are nested, etc.) is to be considered an implementation detail, which can change at any time, so please do not rely on it.