14.4.5 distuninstallcheck

distcheck also checks that the uninstall rule works properly, both for ordinary and DESTDIR builds. It does this by invoking ‘make uninstall’, and then it checks the install tree to see if any files are left over. This check will make sure that you correctly coded your uninstall-related rules.

By default, the checking is done by the distuninstallcheck rule, and the list of files in the install tree is generated by ‘$(distuninstallcheck_listfiles)’. The value of the latter variable is taken to be a shell command to run that prints the list of files to stdout.

Either of these can be overridden to modify the behavior of distcheck. For instance, to disable this check completely (not recommended), you would write:

distuninstallcheck:
        @: