summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorsruffell <sruffell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-05-13 18:01:28 +0000
committersruffell <sruffell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-05-13 18:01:28 +0000
commit69fabf0902a9936d1cf01cd47dee416d01c6d9f8 (patch)
tree05afb0f777322be24e51f0866dc3962e5493aabb /Makefile
parent6968fa17c0026934eb8809545d83988b924d658a (diff)
Remove old zaptel modules from the kernel modules directory before installing
the new ones. (Related to issue #12262) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4261 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 2 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 622e980..85e1c48 100644
--- a/Makefile
+++ b/Makefile
@@ -525,15 +525,9 @@ install-udev: devices
uninstall-hotplug:
$(MAKE) -C firmware hotplug-uninstall DESTDIR=$(DESTDIR)
-BASENAMES=$(sort $(shell for x in $(ALL_MODULES); do basename $x; done))
uninstall-modules:
ifneq ($(BUILDVER),linux24)
- @./build_tools/uninstall-modules $(DESTDIR)/lib/modules/$(KVERS) $(BASENAMES)
- @for x in $(ALL_MODULES); do \
- rm -f $(DESTDIR)/lib/modules/$(KVERS)/extra/$$x ; \
- rm -f $(DESTDIR)/lib/modules/$(KVERS)/misc/$$x ; \
- rm -f $(DESTDIR)/lib/modules/$(KVERS)/zaptel/$$x ; \
- done;
+ @./build_tools/uninstall-modules $(DESTDIR)/lib/modules/$(KVERS) $(ALL_MODULES)
endif
ifeq ($(BUILDVER),linux24)
@@ -541,7 +535,7 @@ install-modules: $(INSTALL_MODULES) uninstall-modules
$(INSTALL) -d $(DESTDIR)$(MOD_DIR)
$(INSTALL) -m 644 $(INSTALL_MODULES) $(DESTDIR)$(MOD_DIR)
else
-install-modules:
+install-modules: uninstall-modules
$(KMAKE_INST)
endif
[ `id -u` = 0 ] && /sbin/depmod -a $(KVERS) || :