twitchsingstools/Makefile

18 lines
333 B
Makefile
Executable File

BUILD=`date +%FT%T%z`
LDFLAGS=-ldflags "-X main.buildDate=${BUILD}"
.PHONY: build deps static
test:
go test git.martyn.berlin/martyn/twitchsingstools/internal/webserver
build:
go build ${LDFLAGS}
deps:
go get
static:
CGO_ENABLED=0 GOOS=linux go build ${LDFLAGS} -a -installsuffix cgo -o twitchsingstools .