smartctl_exporter/Makefile

28 lines
477 B
Makefile
Raw Normal View History

2019-08-14 22:34:49 +02:00
build: get
2020-10-02 13:30:09 +02:00
@go build -v
2019-08-14 22:34:49 +02:00
get:
2020-10-02 13:30:09 +02:00
@go get -v
2019-08-14 22:34:49 +02:00
install:
2020-10-02 13:30:09 +02:00
@go install
2019-08-14 22:34:49 +02:00
run: build
2020-10-02 13:30:09 +02:00
@go run . --config=$(shell pwd)/smartctl_exporter.yaml --debug --verbose
2019-08-14 22:34:49 +02:00
run-sudo: build
2020-10-02 13:30:09 +02:00
sudo ./smartctl_exporter --config=$(shell pwd)/smartctl_exporter.yaml --debug --verbose
2019-08-14 22:34:49 +02:00
clear:
@clear
clean:
@echo "Cleaning"
2020-10-02 13:30:09 +02:00
@go clean
example:
@echo "# Example output" > EXAMPLE.md
2019-08-17 12:26:31 +02:00
@echo '```' >> EXAMPLE.md
@curl -s localhost:9633/metrics | grep smartctl >> EXAMPLE.md
2019-08-17 12:26:31 +02:00
@echo '```' >> EXAMPLE.md