summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-06-05 19:54:27 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-06-05 19:54:27 +0000
commitb2522467df94ef74305db120ff5afc573e25a461 (patch)
treeea773384f5ff69f8085e676ef0f94b9d3e35f016
parent3aee761bb76ee9d711ffe71f93efb78fc575f5ae (diff)
Add an uninstall target (Bug 9752, lathama)
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@2571 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 47ec471..7f7fd32 100644
--- a/Makefile
+++ b/Makefile
@@ -486,6 +486,18 @@ install-programs: $(BINS) install-libs install-include
$(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)