Summary:ASTERISK-00966: [patch] Uninstall patch for Makefile
Reporter:damin (damin)Labels:
Date Opened:2004-01-31 15:17:37.000-0600Date Closed:2011-06-07 14:11:54
Versions:Frequency of
Environment:Attachments:( 0) asterisk-uninstall.patch
Description:This is a patch that will allow developers to easilly uninstall Asterisk using "make uninstall".


This is a first round draft. Please comment. There are definitely better ways to do this, but this is a quick and dirty hack that I use to test builds.
Comments:By: Olle Johansson (oej) 2004-04-10 08:31:53

Well, it seems dirty and hard to manage as we add and remove files. Are you sure there's no better and simpler way to add this functionality? Could you check how other Open Source software Makefiles handle this?

edited on: 04-10-04 07:23

By: damin (damin) 2004-04-10 09:59:40

The modular nature of the Asterisk Makefile is going to make -ANY- uninstall option difficult. That being said, you are right. This is dirty and hard to manage. I did it one late night and haven't looked at it since. I was hoping that someone would take this an expand on it a bit, making suggestions such as "do this here, or try using this here". When I get some free-time I'll re-visit this and see if I can make it a little more clean.

By: James Golovich (jamesgolovich) 2004-04-10 13:01:05

Is an uninstall option really necessary?  If you really need to uninstall then probably the easiest thing is to sest an INSTALL_PREFIX of something unique, and then just rm -f that dir to uninstall.  Or instead of removing each file individually just remove everything in the main dirs and the dirs.

I've never really found a need to uninstall anything, I just upgrade/install over the existing files and everything is fine.

By: twisted (twisted) 2004-04-18 00:50:23

Not really something I can see making it to CVS, simply due to the ability to install over the top of existing versions, and the simplicity of removing * as it is...   If you want to share this with the community, post this on the Wiki.