mirror of
https://github.com/proski/madwifi
synced 2024-11-21 22:11:32 +03:00
Run depmod on uninstall
Make depmod a separate target. Fix spelling of uninstall-modules.
This commit is contained in:
parent
c5246021b7
commit
e8a57713f1
15
Makefile
15
Makefile
@ -75,18 +75,19 @@ install-modules: modules
|
||||
for i in $(obj-y); do \
|
||||
$(MAKE) -C $$i install || exit 1; \
|
||||
done
|
||||
ifeq ($(DESTDIR),)
|
||||
(export KMODPATH=$(KMODPATH); /sbin/depmod -ae $(KERNELRELEASE))
|
||||
endif
|
||||
$(MAKE) depmod
|
||||
|
||||
.PHONY: install-tools
|
||||
install-tools: tools
|
||||
$(MAKE) -C $(TOOLS) install || exit 1
|
||||
|
||||
.PHONY: uninstall ininstall-modules
|
||||
.PHONY: uninstall
|
||||
uninstall: uninstall-tools uninstall-modules
|
||||
|
||||
.PHONY: uninstall-modules
|
||||
uninstall-modules:
|
||||
sh scripts/find-madwifi-modules.sh -r $(KERNELRELEASE) $(DESTDIR)
|
||||
$(MAKE) depmod
|
||||
|
||||
.PHONY: list-modules find-modules
|
||||
list-modules: find-modules
|
||||
@ -187,3 +188,9 @@ endif
|
||||
fi
|
||||
|
||||
@echo "ok."
|
||||
|
||||
.PHONY: depmod
|
||||
depmod:
|
||||
ifeq ($(DESTDIR),)
|
||||
(export KMODPATH=$(KMODPATH); /sbin/depmod -ae $(KERNELRELEASE))
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user