You've already forked prometheus-latency-exporter
24 lines
411 B
Makefile
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}
|