Merge pull request #6 from zaufi/master_bionic

Define `KERNEL_DIR` once and use it
This commit is contained in:
Michael Murphy 2018-07-27 11:19:48 -06:00 committed by GitHub
commit c523cdb570
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,8 @@
obj-m := system76.o
KVERSION := $(shell uname -r)
KERNEL_DIR = /lib/modules/$(shell uname -r)/build
all:
$(MAKE) -C /lib/modules/$(KVERSION)/build M=$(PWD) modules
$(MAKE) -C "$(KERNEL_DIR)" M="$(PWD)" modules
clean:
$(MAKE) -C /lib/modules/$(KVERSION)/build M=$(PWD) clean
$(MAKE) -C "$(KERNEL_DIR)" M="$(PWD)" clean