From aeff5965241d617d0086e19951f7f0131e6ecd2c Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Sun, 14 Oct 2012 11:34:52 +0200 Subject: [PATCH] Makefile: fix clean and install target clean: do not try to wipe /usr/src/linux-... load: rmmod and insmod do not have to be in /sbin (for example, /usr/bin on Arch Linux). Assume that the user has a sane PATH. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index ae14e28..f9cc1e9 100644 --- a/Makefile +++ b/Makefile @@ -9,11 +9,11 @@ default: $(MAKE) -C $(KDIR) M=$(PWD) modules clean: - $(MAKE) -C $(KDIR) M=$(PWD) clean + $(MAKE) O=$(PWD) -C $(KDIR) M=$(PWD) clean load: - -/sbin/rmmod $(modname) - /sbin/insmod $(modname).ko + -rmmod $(modname) + insmod $(modname).ko install: mkdir -p /lib/modules/$(KVERSION)/misc/$(modname)