[svn-commits] tzafrir: trunk r2571 - /trunk/Makefile
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Tue Jun 5 12:54:27 MST 2007
Author: tzafrir
Date: Tue Jun 5 14:54:27 2007
New Revision: 2571
URL: http://svn.digium.com/view/zaptel?view=rev&rev=2571
Log:
Add an uninstall target (Bug 9752, lathama)
Modified:
trunk/Makefile
Modified: trunk/Makefile
URL: http://svn.digium.com/view/zaptel/trunk/Makefile?view=diff&rev=2571&r1=2570&r2=2571
==============================================================================
--- trunk/Makefile (original)
+++ trunk/Makefile Tue Jun 5 14:54:27 2007
@@ -486,6 +486,18 @@
$(INSTALL) -d $(BIN_DIR)
$(INSTALL) $(BINS) $(BIN_DIR)
+uninstall:
+ mv $(INSTALL_PREFIX)/etc/zaptel.conf $(INSTALL_PREFIX)/etc/zaptel.`date +%F`
+ rm -rf $(INSTALL_PREFIX)/usr/share/zaptel
+ rm -rf $(INSTALL_PREFIX)/usr/include/zaptel
+ rm -f $(INSTALL_PREFIX)/sbin/ztcfg
+ rm -f $(INSTALL_PREFIX)/sbin/sethdlc
+ rm -f $(INSTALL_PREFIX)/sbin/zttool
+ rm -f $(INSTALL_PREFIX)/etc/hotplug/usb/xpp*
+ rm -f $(INSTALL_PREFIX)/etc/udev/rules.d/zaptel.rules
+ rm -f $(INSTALL_PREFIX)/etc/udev/rules.d/xpp.rules
+ rm -f $(INSTALL_PREFIX)/etc/udev/rules.d/zaptel.rules
+
install-modules: install-$(BUILDVER)
install-linux24: $(MODULESO)
$(INSTALL) -d $(MOD_DIR)
More information about the svn-commits
mailing list