From 32d442e05e5e3b69d180e95a70f7baf4133fbd8b Mon Sep 17 00:00:00 2001 From: Guenter Roeck Date: Sun, 24 Sep 2017 04:20:38 -0700 Subject: [PATCH] Remove version.h when running clean, and clean does not depend on version.h Signed-off-by: Guenter Roeck --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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: -- 2.39.5