summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2008-07-08 20:18:38 +0000
committerKevin P. Fleming <kpfleming@digium.com>2008-07-08 20:18:38 +0000
commitacf4038567ca79ff0ff1bedbf14054463d0db069 (patch)
tree3e2d986232d8f2b688d0d045841b39ac92a90338 /Makefile
parentb189c980dcd9e8d789f4bdf90cccb1594908e349 (diff)
minor improvements to uninstall-modules: add the PID to the temporary file name to make it less easy to accidentally duplicate, only search directories where we expect that DAHDI or Zaptel modules might be found (known installation locations, even old ones), and always uninstall old DAHDI modules before installing new ones, in case a module is no longer in the tree and shouldn't be left installed
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4575 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7b41cb0..94ed5aa 100644
--- a/Makefile
+++ b/Makefile
@@ -173,6 +173,7 @@ ifndef DESTDIR
rm -rf /lib/modules/$(KVERS)/zaptel; \
echo "done."; \
fi
+ build_tools/uninstall-modules dahdi $(KVERS)
endif
$(KMAKE) INSTALL_MOD_PATH=$(DESTDIR) INSTALL_MOD_DIR=dahdi modules_install
[ `id -u` = 0 ] && /sbin/depmod -a $(KVERS) || :