From 43fa61eebf06ebeba324abfb3d15a466c65a5712 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Mon, 24 Apr 2023 00:31:18 +0400 Subject: [PATCH] Pass a version to an executable. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index dfce27d..72a98b5 100755 --- a/Makefile +++ b/Makefile @@ -5,7 +5,9 @@ SYSDDIR_=${shell pkg-config systemd --variable=systemdsystemunitdir} SYSDDIR=${SYSDDIR_:/%=%} DESTDIR=/ -LDFLAGS=-ldflags "-s -w" -tags osusergo,netgo +VERSION=23.17.0 + +LDFLAGS=-ldflags "-s -w -X main.version=${VERSION}" -tags osusergo,netgo all: ${TARGET}