Ask HN: Why do Makefiles typically not include an uninstall script?

https://news.ycombinator.com/item?id=4424710
by codebeaker • 14 years ago
5 9 14 years ago

I'm typically a package manager guy, once you start screwing with the status-quo especially on distributions like Ubuntu, things get strange really quickly.

Case in point, Redis, the Makefile is so simple, and the code/project so clean and with so few dependencies, there's not even a `./configure` stage, why doesn't it include a `make uninstall`.

`make install` must generate a file list to perform the uninstallation, it should be trivial to uninstall those files.

Am I missing a trick, is there some way to snatch the file list from `install` and feed it to `rm`, or do they not include an `uninstall` task incase that try to uninstall something that's running (but, even that is a small portion of things which are installed, and surely 9/10 times it would keep running until stopped/rebooted??)

Thanks HN!

Related Stories

Loading related stories...

Source preview

news.ycombinator.com