From: Guenter Roeck Date: Sun, 24 Sep 2017 11:20:38 +0000 (-0700) Subject: Remove version.h when running clean, and clean does not depend on version.h X-Git-Url: https://git.sur5r.net/?p=groeck-it87;a=commitdiff_plain;h=32d442e05e5e3b69d180e95a70f7baf4133fbd8b Remove version.h when running clean, and clean does not depend on version.h Signed-off-by: Guenter Roeck --- diff --git a/Makefile b/Makefile index 2064147..e702b2c 100644 --- 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 -modules clean: version.h +modules: version.h @$(MAKE) -C $(KERNEL_BUILD) M=$(CURDIR) $@ +clean: + @$(MAKE) -C $(KERNEL_BUILD) M=$(CURDIR) $@ + rm -f version.h + install: modules_install modules_install: