From: Yohan Pereira Date: Sat, 26 Aug 2017 13:16:09 +0000 (+0530) Subject: Create the hwmon folder if it does not exist X-Git-Tag: v1.0~11 X-Git-Url: https://git.sur5r.net/?p=groeck-it87;a=commitdiff_plain;h=b9deb7cb414069672ccadbc934322db50ed168c2 Create the hwmon folder if it does not exist --- diff --git a/Makefile b/Makefile index 1ee555c..b975bc7 100644 --- a/Makefile +++ b/Makefile @@ -32,5 +32,6 @@ modules clean: install: modules_install modules_install: - cp $(DRIVER).ko $(KERNEL_MODULES)/kernel/$(MOD_SUBDIR) + mkdir -p $(KERNEL_MODULES)/kernel/$(MOD_SUBDIR) + cp $(DRIVER).ko $(KERNEL_MODULES)/kernel/$(MOD_SUBDIR)/ depmod -a -F $(SYSTEM_MAP) $(TARGET)