Commit bf70eef5 authored by Natanael Copa's avatar Natanael Copa
Browse files

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

parent 72f25038
......@@ -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))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment