mirror of https://github.com/proski/madwifi
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 \
|
for i in $(obj-y); do \
|
||||||
$(MAKE) -C $$i install || exit 1; \
|
$(MAKE) -C $$i install || exit 1; \
|
||||||
done
|
done
|
||||||
ifeq ($(DESTDIR),)
|
$(MAKE) depmod
|
||||||
(export KMODPATH=$(KMODPATH); /sbin/depmod -ae $(KERNELRELEASE))
|
|
||||||
endif
|
|
||||||
|
|
||||||
.PHONY: install-tools
|
.PHONY: install-tools
|
||||||
install-tools: tools
|
install-tools: tools
|
||||||
$(MAKE) -C $(TOOLS) install || exit 1
|
$(MAKE) -C $(TOOLS) install || exit 1
|
||||||
|
|
||||||
.PHONY: uninstall ininstall-modules
|
.PHONY: uninstall
|
||||||
uninstall: uninstall-tools uninstall-modules
|
uninstall: uninstall-tools uninstall-modules
|
||||||
|
|
||||||
|
.PHONY: uninstall-modules
|
||||||
uninstall-modules:
|
uninstall-modules:
|
||||||
sh scripts/find-madwifi-modules.sh -r $(KERNELRELEASE) $(DESTDIR)
|
sh scripts/find-madwifi-modules.sh -r $(KERNELRELEASE) $(DESTDIR)
|
||||||
|
$(MAKE) depmod
|
||||||
|
|
||||||
.PHONY: list-modules find-modules
|
.PHONY: list-modules find-modules
|
||||||
list-modules: find-modules
|
list-modules: find-modules
|
||||||
|
@ -187,3 +188,9 @@ endif
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@echo "ok."
|
@echo "ok."
|
||||||
|
|
||||||
|
.PHONY: depmod
|
||||||
|
depmod:
|
||||||
|
ifeq ($(DESTDIR),)
|
||||||
|
(export KMODPATH=$(KMODPATH); /sbin/depmod -ae $(KERNELRELEASE))
|
||||||
|
endif
|
||||||
|
|
Loading…
Reference in New Issue