make: test for .git existence before using git describe to set version

cute-signatures
Natanael Copa 2009-05-08 09:32:41 +00:00
parent 72f2503874
commit bf70eef53c
1 changed files with 1 additions and 1 deletions

View File

@ -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))