]> git.sur5r.net Git - groeck-it87/blobdiff - Makefile
Create the hwmon folder if it does not exist
[groeck-it87] / Makefile
index 1ee555c22e6f86a1482a40676c47e8d0243092bb..b975bc769a333c92dd6f884cb76d29919c128200 100644 (file)
--- 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)