From: Arran Cudbard-Bell Date: Thu, 17 Nov 2022 18:19:34 +0000 (-0600) Subject: Add the git market in to keep debian happy X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ef14c77d427b01be692d64921bfc209f192183a;p=thirdparty%2Ffreeradius-server.git Add the git market in to keep debian happy --- diff --git a/Makefile b/Makefile index a55837281c0..417cff776dd 100644 --- 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