GNU Autoconf, Automake, and Libtool
by Gary V. Vaughan, Ben Elliston, Tom Tromey, Ian Lance Taylor
13.4. Uninstall
As if things aren't confusing enough, there is still one more major installation-related feature not yet mentioned: uninstall. Automake adds an uninstall target to your 'Makefile' that does the reverse of install: It deletes the newly installed package.
Unlike install, there is no uninstall-data or uninstall-exec; although possible in theory, we don't think this would be useful enough to actually use. Like install, you can write uninstall-local or uninstall-hook rules.
In our experience, uninstall is not a very useful feature. Automake implements it because it is mandated by the GNU standards, but it does not work reliably across packages. Maintainers who write install hooks typically neglect to write uninstall hooks. Also, because ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access