-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (24 loc) · 764 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (24 loc) · 764 Bytes
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
BIN := bin/prometheus-render
VERSION := $(shell git describe --tags --always --dirty 2>/dev/null || echo dev)
LDFLAGS := -X main.version=$(VERSION)
.PHONY: all build install test vet fmt examples audit clean
all: build
build:
go build -ldflags '$(LDFLAGS)' -o $(BIN) ./cmd/prometheus-render
install:
go install -ldflags '$(LDFLAGS)' ./cmd/prometheus-render
test:
go test ./...
cd examples/gallery && go build ./...
vet:
go vet ./...
fmt:
gofmt -l -w .
# Redraws out/ from testdata/sample.db. Offline: no data source needed.
examples:
cd examples/gallery && go run . -db ../../testdata/sample.db -out ../../out
# Reads the rendered PNGs back and checks each legend names its series once.
audit:
python3 hack/legend_audit.py
clean:
rm -rf bin