make: test for .git existence before using git describe to set version
parent
72f2503874
commit
bf70eef53c
|
@ -47,7 +47,7 @@ export srctree objtree
|
|||
##
|
||||
# Consult SCM for better version string.
|
||||
|
||||
GIT_REV := $(shell git describe || echo exported)
|
||||
GIT_REV := $(shell test -d .git && git describe || echo exported)
|
||||
ifneq ($(GIT_REV), exported)
|
||||
FULL_VERSION := $(patsubst $(PACKAGE)-%,%,$(GIT_REV))
|
||||
FULL_VERSION := $(patsubst v%,%,$(FULL_VERSION))
|
||||
|
|
Loading…
Reference in New Issue