From 2ec55117c0b8de27613d1c0172b21d76b77ae8dd Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Thu, 3 Sep 2015 12:13:37 -0700 Subject: [PATCH] tools: better git describe command to set PATCHLEVEL --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1643ac1bf..1b76c4d11 100644 --- a/Makefile +++ b/Makefile @@ -148,7 +148,7 @@ VERSIONFILE=.version VERSION:=$(shell cat $(VERSIONFILE)) # the number of commits since the last tag -PATCHLEVEL:=$(shell git describe --long | awk -F - '{print $$2}') +PATCHLEVEL:=$(shell git describe --tags | awk -F - '{print $$2}') # the number of commits since the last_release tag #PATCHLEVEL:=$(shell git rev-list last_release..HEAD | wc -l)