prometheus-fail2ban-exporter/Makefile

27 lines
465 B
Makefile
Raw Normal View History

2023-06-19 18:37:27 +00:00
download:
2023-06-19 17:58:16 +00:00
go mod download
2021-02-05 22:49:47 +00:00
2023-06-19 18:37:27 +00:00
test: download
2023-06-19 17:58:16 +00:00
go test ./... -v -race
2023-06-19 18:37:27 +00:00
fmt: download
2023-06-19 17:58:16 +00:00
go fmt ./...
2023-06-19 18:37:27 +00:00
check/dependencies: download
go mod tidy -v
git diff-index --quiet HEAD
2023-06-19 18:37:27 +00:00
check/fmt: download
test -z $(shell gofmt -l .)
2023-06-19 18:37:27 +00:00
build:
go build \
-ldflags "\
-X main.version=${shell git describe --tags} \
-X main.commit=${shell git rev-parse HEAD} \
-X main.date=${shell date --iso-8601=seconds} \
-X main.builtBy=manual \
" \
-o fail2ban_exporter \
exporter.go