Summary:ASTERISK-03996: [patch] Add a superclean function to the Makefile
Reporter:Leif Madsen (lmadsen)Labels:
Date Opened:2005-04-26 23:29:50Date Closed:2005-04-27 10:55:29
Versions:Frequency of
Environment:Attachments:( 0) Makefile.patch.HEAD.txt
( 1) Makefile.patch.stable.txt
Description:Last night I was experiencing a problem with a server which I did not install. I couldn't figure out for the life of me (no pun intended) why I was having such random error problems - specifically a codec negotiation problem. After advice from bkw and file, I tracked it down to the system having used old header files in  the /usr/include/asterisk dir. This patch will create a new function in the Makefile (name suggestion by oej) to clean those directories out.
Comments:By: Kevin P. Fleming (kpfleming) 2005-04-26 23:42:12

I'm not sure I like any Makefile target doing the equivalent of an "uninstall", without it being called "uninstall". Can you imagine someone unpacking the source, typing "make superclean" and breaking their existing (working) installation?

Would a more proper solution just be to modify the Makefile to ensure that /usr/include/asterisk ends up as an exact copy of ./include/asterisk during "make install", including removing old files that are no longer needed?

By: Leif Madsen (lmadsen) 2005-04-26 23:57:20

I imagine that would work. I just don't want make clean ; make ; make install to use old files that can interfere with a clean installation.

By: Kevin P. Fleming (kpfleming) 2005-04-27 00:28:19

OK, I'll whip something up, since I seem to be on a roll tonight :-)

By: Kevin P. Fleming (kpfleming) 2005-04-27 00:58:03

Fix committed to CVS, it will now remove any unneeded header files from the destination include/asterisk directory at 'make install' time. Should not be necessary for stable, as the header files there will not be changing dramatically.