1
Files
2023-11-13 17:40:37 +01:00

24 lines
414 B
Makefile

DIR = bin
BIN = phplatency-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}