Looking through unix/Makefile.in of the current HEAD I noticed that every file that gets installed is handled separately. It is either going through a for-loop or has a separate line in one of the install-targets. Thus is should be possible to extend the install-targets to generate an uninstall.sh script, that would remove the installed parts again.
Even if I missed something and there are files that are handled by globbing it could still be possible to also generate a removal script from an uninstall.sh.in script.
I am not suggesting that this uninstall.sh should be installed as well, but if there is some consent one could think about installing it in $(CONFIG_INSTALL_DIR).
-- Matthias Kraft
see also 217974
217974 and 219271 are requesting an uninstall target in the Makefile. This is not what I want, because it would mean that you have to keep the build environment around. An uninstall.sh is more flexible.