This was way more complicated than it should be

This commit is contained in:
Imbus 2025-01-28 12:06:22 +01:00
parent f5de8d1f37
commit e072f20d9b
4 changed files with 6 additions and 24 deletions

View file

@ -1,7 +1,6 @@
NAME = rexserver
VERSION_FILE := ../VERSION.txt
REX_VERSION ?= $(shell cat $(VERSION_FILE))
REX_VERSION ?= $(shell bash ../generate_version.sh)
build: commit.txt
go build -ldflags="-X main.rex_version=$(REX_VERSION)" -o $(NAME)