diff --git a/Makefile b/Makefile index 853b317..c1f57d1 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,5 @@ -# Get the version name first by seeing if HEAD is tagged -version := $(shell git tag --points-at HEAD -l '0.*.*' | sort -r | head -1) -# And if it wasn't use a git hash -ifeq ($(version),) - version := $(shell git log -1 --abbrev=8 --pretty=git%h) -endif +# Get a version name based off the nearest tag (include lightweight tags) +version := $(shell git describe --tags) DESTDIR := /usr