From: Burt P Date: Fri, 12 Jan 2018 18:15:12 +0000 (-0600) Subject: Makefile: DKMS fix X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7f59901679895232ff8a88c4d8fa15d092c62ac5;p=groeck-it87 Makefile: DKMS fix Allow DKMS (or anyone) to specify TARGET in Makefile. Signed-off-by: Burt P --- diff --git a/Makefile b/Makefile index 09ccc89..de8e0d4 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,10 @@ # For building for the current running version of Linux +ifndef TARGET TARGET := $(shell uname -r) +endif # Or specific version #TARGET := 2.6.33.5 + KERNEL_MODULES := /lib/modules/$(TARGET) ifneq ("","$(wildcard /usr/src/linux-headers-$(TARGET)/*)") diff --git a/dkms.conf b/dkms.conf index 3814a8c..c5fccfa 100644 --- a/dkms.conf +++ b/dkms.conf @@ -1,4 +1,4 @@ -MAKE="make" +MAKE="make TARGET=${kernelver}" CLEAN="make clean" PACKAGE_NAME="it87" PACKAGE_VERSION="to be filled by make dkms"