#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 TEST=. all: test build test: go test -tags=integration -run=$(TEST) ./... build: go build ./cmd/bot release: go build \ -ldflags="-s -w -X main.Version=$(version)-$(revision)" \ -trimpath \ -o build/bot-linux-$(suffix)/bot \ ./cmd/bot