]> git.sur5r.net Git - groeck-it87/commitdiff
Remove version.h when running clean, and clean does not depend on version.h
authorGuenter Roeck <linux@roeck-us.net>
Sun, 24 Sep 2017 11:20:38 +0000 (04:20 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 24 Sep 2017 11:20:38 +0000 (04:20 -0700)
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Makefile

index 2064147b6a708dd47ba496b57bfbe43b56d46a3b..e702b2c6e61c2e452abb982a82c56af049b30e4c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -49,9 +49,13 @@ DRIVER_VERSION = $(shell git describe --long)
 version.h: it87.c
        @echo "#define IT87_DRIVER_VERSION      \"$(DRIVER_VERSION)\"" > version.h
 
 version.h: it87.c
        @echo "#define IT87_DRIVER_VERSION      \"$(DRIVER_VERSION)\"" > version.h
 
-modules clean: version.h
+modules: version.h
        @$(MAKE) -C $(KERNEL_BUILD) M=$(CURDIR) $@
 
        @$(MAKE) -C $(KERNEL_BUILD) M=$(CURDIR) $@
 
+clean:
+       @$(MAKE) -C $(KERNEL_BUILD) M=$(CURDIR) $@
+       rm -f version.h
+
 install: modules_install
 
 modules_install:
 install: modules_install
 
 modules_install: