diff --git a/Makefile b/Makefile index 5eafb66..4ba3f64 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,12 @@ .SUFFIXES: .SUFFIXES: .1 .1.scd -VERSION=0.1.0-dev +_git_version=$(shell git describe --tags --dirty 2>/dev/null) +ifeq ($(strip $(_git_version)),) +VERSION=0.1.0 +else +VERSION=$(_git_version) +endif PREFIX?=/usr/local BINDIR?=$(PREFIX)/bin