mirror of
https://github.com/prometheus-community/smartctl_exporter.git
synced 2024-11-16 01:33:07 +01:00
27 lines
477 B
Makefile
27 lines
477 B
Makefile
build: get
|
|
@go build -v
|
|
|
|
get:
|
|
@go get -v
|
|
|
|
install:
|
|
@go install
|
|
|
|
run: build
|
|
@go run . --config=$(shell pwd)/smartctl_exporter.yaml --debug --verbose
|
|
|
|
run-sudo: build
|
|
sudo ./smartctl_exporter --config=$(shell pwd)/smartctl_exporter.yaml --debug --verbose
|
|
|
|
clear:
|
|
@clear
|
|
|
|
clean:
|
|
@echo "Cleaning"
|
|
@go clean
|
|
|
|
example:
|
|
@echo "# Example output" > EXAMPLE.md
|
|
@echo '```' >> EXAMPLE.md
|
|
@curl -s localhost:9633/metrics | grep smartctl >> EXAMPLE.md
|
|
@echo '```' >> EXAMPLE.md
|