summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index e9a32a9..a6e7363 100644
--- a/Makefile
+++ b/Makefile
@@ -14,10 +14,12 @@
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #
############################################################################
-ifeq ($(wildcard .git),)
+ifneq ($(wildcard .git),)
+VERSION := $(shell git describe --always 2>/dev/null)
+endif
+
+ifndef VERSION
VERSION := 2.5
-else
-VERSION := $(shell git describe --always)
endif
ifndef OS