Files
2023-10-25 15:31:18 +02:00

24 lines
411 B
Makefile

DIR = bin
BIN = latency-exporter
GOARCH = amd64
all: build
setup:
go mod download
mkdir -p bin/
linux:
GOOS=linux GOARCH=${GOARCH} go build -o ${DIR}/${BIN}-linux-${GOARCH} .
darwin:
GOOS=darwin GOARCH=${GOARCH} go build -o ${DIR}/${BIN}-darwin-${GOARCH} .
windows:
GOOS=windows GOARCH=${GOARCH} go build -o ${DIR}/${BIN}-windows-${GOARCH} .
build: setup linux darwin windows
clean:
rm -rf ${DIR}