forked from metalmatze/slo-libsonnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (31 loc) · 2.54 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
all: jsonnetfmt examples
JSONNET_FILES = $(shell find . -type f -not -path './examples/vendor/*' -name '*.libsonnet' -o -name '*.jsonnet')
jsonnetfmt: .bingo/jsonnetfmt $(JSONNET_FILES)
.bingo/jsonnetfmt -n 2 --max-blank-lines 2 --string-style s --comment-style s -i $(JSONNET_FILES)
examples: \
examples/http-request-error-burnrate.yaml \
examples/http-request-errorlatency-burnrate.yaml \
examples/http-request-errors.yaml \
examples/http-request-latency-burnrate.yaml \
examples/http-request-latency.yaml
examples/vendor: examples/jsonnetfile.json examples/jsonnetfile.lock.json .bingo/jb
cd examples && ../.bingo/jb install
examples/http-request-error-burnrate.yaml: examples/http-request-error-burnrate.jsonnet .bingo/jsonnetfmt .bingo/jsonnet .bingo/gojsontoyaml
.bingo/jsonnet -J examples/vendor examples/http-request-error-burnrate.jsonnet | .bingo/gojsontoyaml > examples/http-request-error-burnrate.yaml
examples/http-request-errorlatency-burnrate.yaml: examples/http-request-errorlatency-burnrate.jsonnet .bingo/jsonnetfmt .bingo/jsonnet .bingo/gojsontoyaml
.bingo/jsonnetfmt -i examples/http-request-errorlatency-burnrate.jsonnet
.bingo/jsonnet -J examples/vendor examples/http-request-errorlatency-burnrate.jsonnet | .bingo/gojsontoyaml > examples/http-request-errorlatency-burnrate.yaml
examples/http-request-errors.yaml: examples/http-request-errors.jsonnet .bingo/jsonnetfmt .bingo/jsonnet .bingo/gojsontoyaml
.bingo/jsonnet -J examples/vendor examples/http-request-errors.jsonnet | .bingo/gojsontoyaml > examples/http-request-errors.yaml
examples/http-request-latency-burnrate.yaml: examples/http-request-latency-burnrate.jsonnet .bingo/jsonnetfmt .bingo/jsonnet .bingo/gojsontoyaml
.bingo/jsonnet -J examples/vendor examples/http-request-latency-burnrate.jsonnet | .bingo/gojsontoyaml > examples/http-request-latency-burnrate.yaml
examples/http-request-latency.yaml: examples/http-request-latency.jsonnet .bingo/jsonnetfmt .bingo/jsonnet .bingo/gojsontoyaml
.bingo/jsonnet -J examples/vendor examples/http-request-latency.jsonnet | .bingo/gojsontoyaml > examples/http-request-latency.yaml
.bingo/jb:
go build -modfile .bingo/jb.mod -o .bingo/jb github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb
.bingo/jsonnet:
go build -modfile .bingo/jsonnet.mod -o .bingo/jsonnet github.com/google/go-jsonnet/cmd/jsonnet
.bingo/jsonnetfmt:
go build -modfile .bingo/jsonnetfmt.mod -o .bingo/jsonnetfmt github.com/google/go-jsonnet/cmd/jsonnetfmt
.bingo/gojsontoyaml:
go build -modfile .bingo/gojsontoyaml.mod -o .bingo/gojsontoyaml github.com/brancz/gojsontoyaml