]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Makefile: show the commit hash if no tags are found
authorRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Mon, 18 Apr 2022 14:33:06 +0000 (20:03 +0530)
committerRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Mon, 18 Apr 2022 14:33:06 +0000 (20:03 +0530)
Makefile

index bcdf64da66b42e9f3bee62324e8e477e4b429143..81cc95cbd9632a25b808da52f9ff4a3ee82df8a5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ UNAME_S := $(shell uname -s)
 
 # Get git commit version and date
 GIT_DATE := $(firstword $(shell git --no-pager show --date=short --format="%ai" --name-only))
-GIT_VERSION := $(shell git describe --abbrev=0 --tags)
+GIT_VERSION := $(shell git describe --abbrev=0 --tags --always)
 
 # uncomment the following line to force 480x320 screen
 #SMALL_SCREEN_OPTIONS=-D SMALL_SCREEN