rexforge/rex_server/Makefile
2025-01-28 11:40:56 +01:00

19 lines
284 B
Makefile

NAME = rexserver
VERSION_FILE := ../VERSION.txt
REX_VERSION ?= $(shell cat $(VERSION_FILE))
build: commit.txt
go build -ldflags="-X main.rex_version=$(REX_VERSION)" -o $(NAME)
run: commit.txt
go run .
debug: commit.txt
go run .
commit.txt:
go generate
clean:
rm -f $(NAME)