Debian Codegraph @

contrib/redis-mixin/Makefile

raw symbols SCIP
1 JSONNET_FMT := jsonnetfmt -n 2 --max-blank-lines 2 --string-style s --comment-style s
2
3 # no lint for now, fails with a lot of errors and needs cleaning up first
4 all: deps fmt build clean
5
6 deps:
7 go install github.com/monitoring-mixins/mixtool/cmd/mixtool@master
8 go install github.com/google/go-jsonnet/cmd/jsonnetfmt@latest
9
10
11 fmt:
12 find . -name 'vendor' -prune -o -name '*.libsonnet' -print -o -name '*.jsonnet' -print | \
13 xargs -n 1 -- $(JSONNET_FMT) -i
14
15 lint:
16 find . -name 'vendor' -prune -o -name '*.libsonnet' -print -o -name '*.jsonnet' -print | \
17 while read f; do \
18 $(JSONNET_FMT) "$$f" | diff -u "$$f" -; \
19 done
20
21 mixtool lint mixin.libsonnet
22
23 build:
24 mixtool generate all mixin.libsonnet
25
26 clean:
27 rm -rf dashboards_out alerts.yaml rules.yaml