From 5615523f26ac380670f24f91c604862cf0ed1531 Mon Sep 17 00:00:00 2001 From: Adam Madsen Date: Tue, 10 Nov 2020 06:59:40 -0600 Subject: [PATCH] Add install target to install module --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cf70b9d..3601f0d 100644 --- a/Makefile +++ b/Makefile @@ -2,9 +2,14 @@ USER := $(shell whoami) KVER ?= $(shell uname -r) KDIR ?= /lib/modules/$(KVER)/build -all: +all: build + +build: $(MAKE) -C $(KDIR) M=$(PWD) modules +install: + $(MAKE) -C $(KDIR) M=$(PWD) modules_install + clean: $(MAKE) -C $(KDIR) M=$(PWD) clean @@ -12,4 +17,4 @@ load: all grep -q '^vendor_reset' /proc/modules && sudo rmmod vendor_reset || true sudo insmod ./vendor-reset.ko $(if $(HOOK),install_hook=yes,) -.PHONY: userspace load +.PHONY: userspace load all install