summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2022-05-10 19:41:21 +0200
committerAlejandro Colomar <alx.manpages@gmail.com>2022-05-10 19:41:21 +0200
commit93f5320e43498ba4fbeaf2d729727a97257362b2 (patch)
treef82516e57d843643455c18dfb98778efe1e55956 /Makefile
parent985ea862bc268e02418874dfaab6c571e3b8d060 (diff)
Makefile: DISTVERSION: Fix for when no git tags exist yet
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 502df74..2ba0442 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ MAKEFLAGS += --warn-undefined-variables
package := grepc
-DISTVERSION := $(shell git describe 2>/dev/null)
+DISTVERSION := $(shell git describe --always 2>/dev/null)
DISTNAME := $(package)-$(DISTVERSION)
DIST_FILES := $(shell git ls-files -z 2>/dev/null | xargs -0 find)