]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Add the git market in to keep debian happy
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 17 Nov 2022 18:19:34 +0000 (12:19 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 17 Nov 2022 18:19:34 +0000 (12:19 -0600)
Makefile

index a55837281c0dea581f110884fafa1d928bf7905d..417cff776dd77e7b4f7ffb7e3b455e69e9b3e490 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -58,10 +58,14 @@ ifeq "$(RADIUS_VERSION)" ""
   # Default to an incremental version of 0 if we're not building from git
   RADIUSD_VERSION_INCRM := $(shell git status > /dev/null 2>&1 && git describe | cut -d '-' -f 2)
   ifeq "$(RADIUSD_VERSION_INCRM)" ""
-       RADIUSD_VERSION_INCRM := "0"
+    RADIUSD_VERSION_INCRM := 0
+    RADIUSD_VERSION_GIT :=
+  else
+    RADIUSD_VERSION_GIT := +git
   endif
-
-  RADIUSD_VERSION := $(shell cat VERSION | cut -d '.' -f 1,2).$(RADIUSD_VERSION_INCRM)
+  RADIUSD_VERSION := $(shell cat VERSION | cut -d '.' -f 1,2).$(RADIUSD_VERSION_INCRM)$(RADIUSD_VERSION_GIT)
+else
+  RADIUSD_VERSION_STRING := $(RADIUSD_VERSION)
 endif
 
 MFLAGS += --no-print-directory