-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathMakefile
More file actions
19 lines (16 loc) · 1.13 KB
/
Makefile
File metadata and controls
19 lines (16 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
clean:
rm -Rfv bin
mkdir bin
build: clean
CGO_ENABLED=0 go build -o bin/mailcow-prometheus-exporter cmd/main.go
build-all: clean
CGO_ENABLED=0 GOOS="linux" GOARCH="amd64" go build -o bin/mailcow-prometheus-exporter__linux-amd64 cmd/main.go
CGO_ENABLED=0 GOOS="linux" GOARCH="arm" GOARM=6 go build -o bin/mailcow-prometheus-exporter__linux-armv6 cmd/main.go
CGO_ENABLED=0 GOOS="linux" GOARCH="arm" GOARM=7 go build -o bin/mailcow-prometheus-exporter__linux-armv7 cmd/main.go
CGO_ENABLED=0 GOOS="linux" GOARCH="arm64" go build -o bin/mailcow-prometheus-exporter__linux-arm64 cmd/main.go
CGO_ENABLED=0 GOOS="darwin" GOARCH="amd64" go build -o bin/mailcow-prometheus-exporter__macos-amd64 cmd/main.go
CGO_ENABLED=0 GOOS="darwin" GOARCH="arm64" go build -o bin/mailcow-prometheus-exporter__macos-arm64 cmd/main.go
CGO_ENABLED=0 GOOS="windows" GOARCH="amd64" go build -o bin/mailcow-prometheus-exporter__win-amd64 cmd/main.go
CGO_ENABLED=0 GOOS="windows" GOARCH="arm64" go build -o bin/mailcow-prometheus-exporter__win-arm64 cmd/main.go
docker:
docker build . -t themailcow/prometheus-exporter