diff --git a/Makefile b/Makefile index 08ff1b7..9ddcc8d 100644 --- a/Makefile +++ b/Makefile @@ -2,8 +2,8 @@ obj-m += nct6687.o curpwd := $(shell pwd) kver ?= $(shell uname -r) -commitcount := $(shell git rev-list --all --count) -commithash := $(shell git rev-parse --short HEAD) +commitcount := $(shell git rev-list --all --count 2>/dev/null) +commithash := $(shell git rev-parse --short HEAD 2>/dev/null) fedoraver := $(shell sed -n 's/.*Fedora release \([^ ]*\).*/\1/p' /etc/fedora-release 2>/dev/null || echo 0)