smartctl_exporter/Makefile

28 lines
475 B
Makefile
Raw Normal View History

2019-08-14 22:34:49 +02:00
build: get
@go build -v
2019-08-14 22:34:49 +02:00
get:
@go get -v
2019-08-14 22:34:49 +02:00
install:
@go install
2019-08-14 22:34:49 +02:00
run: build
@go run . --config=$(shell pwd)/smartctl_exporter.yaml --debug --verbose
2019-08-14 22:34:49 +02:00
run-sudo: build
sudo smartctl_exporter --config=$(shell pwd)/smartctl_exporter.yaml --debug --verbose
2019-08-14 22:34:49 +02:00
clear:
@clear
clean:
@echo "Cleaning"
@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