From 918fb18d22a9cb858fcc2b56f94b6a748775f5ed Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sat, 6 May 2023 04:50:32 +0400 Subject: [PATCH] Added a VERSION variable in Makefile. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 718c40e..36625d3 100755 --- a/Makefile +++ b/Makefile @@ -6,7 +6,9 @@ SYSDDIR_=${shell pkg-config systemd --variable=systemdsystemunitdir} SYSDDIR=${SYSDDIR_:/%=%} DESTDIR=/ -LDFLAGS=-ldflags "-s -w -X main.version=2.0.2" -tags osusergo,netgo +VERSION=2.0.2 + +LDFLAGS=-ldflags "-s -w -X main.version=${VERSION}" -tags osusergo,netgo all: ${TARGET}