2021-08-03 12:11:07 -04:00
|
|
|
SPACE := $(subst ,, )
|
|
|
|
|
|
|
|
|
2021-06-26 10:54:14 -04:00
|
|
|
install:
|
|
|
|
go install -v ./cmd/monero-exporter
|
|
|
|
|
2021-07-11 07:37:54 -04:00
|
|
|
run:
|
|
|
|
monero-exporter \
|
|
|
|
--monero-addr=http://localhost:18081 \
|
2021-08-03 12:11:07 -04:00
|
|
|
--bind-addr=:9000
|
2021-07-11 07:37:54 -04:00
|
|
|
|
2021-06-26 10:54:14 -04:00
|
|
|
test:
|
|
|
|
go test ./...
|
|
|
|
|
|
|
|
lint:
|
2021-07-11 07:37:54 -04:00
|
|
|
go run github.com/golangci/golangci-lint/cmd/golangci-lint run \
|
|
|
|
--config=.golangci.yaml
|
|
|
|
|
|
|
|
|
|
|
|
table-of-contents:
|
|
|
|
doctoc --notitle ./README.md
|
2021-08-03 12:11:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
.images.lock.yaml: .images.yaml
|
|
|
|
kbld -f $< --lock-output $@
|
|
|
|
.PHONY: .images.lock.yaml
|
|
|
|
|
|
|
|
examples/docker-compose.yaml: .images.lock.yaml ./examples/docker-compose.base.yaml
|
|
|
|
kbld --images-annotation=false $(subst $(SPACE), -f , $^) > $@
|