2022-07-01 02:28:20 -04:00
|
|
|
.PHONY: build
|
|
|
|
|
|
|
|
GIT_COMMIT := $(shell git rev-parse HEAD)
|
|
|
|
BUILD_DATE := $(shell date -u +.%Y%m%d.%H%M%S)
|
|
|
|
CGO_ENABLED=0
|
|
|
|
|
|
|
|
default:
|
2022-07-01 17:06:48 -04:00
|
|
|
CGO_ENABLED=$(CGO_ENABLED) go build -o out/engibot -trimpath -ldflags "-s -w -X main.gitCommit=$(GIT_COMMIT)" .
|
2022-07-01 02:28:20 -04:00
|
|
|
|
|
|
|
debug:
|
|
|
|
go build -o out/ -ldflags "-X main.gitCommit=$(GIT_COMMIT)" main.go
|
2022-07-01 17:06:48 -04:00
|
|
|
|
|
|
|
run:
|
|
|
|
go run . --token $(TOKEN)
|