diff options
-rw-r--r-- | Make.rules | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) |