2026-11-03 20:49:00 -07:00
|
|
|
#version := $(shell cat BOT_VERSION)
|
|
|
|
|
version := 0.1.0
|
|
|
|
|
revision := $(shell git rev-parse HEAD | head -c 8)
|
|
|
|
|
revcount := $(shell git rev-list --count HEAD)
|
|
|
|
|
suffix := amd64
|
2026-09-25 10:16:38 -06:00
|
|
|
|
|
|
|
|
TEST=.
|
|
|
|
|
|
|
|
|
|
all: test build
|
|
|
|
|
|
|
|
|
|
test:
|
|
|
|
|
go test -tags=integration -run=$(TEST) ./...
|
|
|
|
|
|
2026-09-25 10:18:00 -06:00
|
|
|
build:
|
|
|
|
|
go build ./cmd/bot
|
2026-11-03 20:49:00 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
release:
|
|
|
|
|
go build \
|
|
|
|
|
-ldflags="-s -w -X main.Version=$(version)-$(revision)" \
|
|
|
|
|
-trimpath \
|
|
|
|
|
-o build/bot-linux-$(suffix)/bot \
|
|
|
|
|
./cmd/bot
|
|
|
|
|
|