-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
40 lines (31 loc) · 946 Bytes
/
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
.DEFAULT_GOAL := help
.PHONY: help
help:
@echo "------------------------------------------------------------------"
@echo " Makefile options"
@echo "------------------------------------------------------------------"
@echo " > make help # show this help info"
@echo " > make build # local build for development testing"
@echo " > make proto-lint # run linter on proto"
@echo " > make proto # regenerate artifacts from proto"
@echo " > make test # run all the go tests"
@echo ""
# required: go get github.com/ckaznocha/protoc-gen-lint
.PHONY: proto-lint
proto-lint:
@echo "Running linter on proto. No output is good."
cd ./tfproto/tfproto/ \
&& protoc --lint_out=./ -I. *.proto
.PHONY: proto
proto:
cd ./tfproto/tfproto/ \
&& protoc --go_out=. --go_opt=plugins=grpc -I. *proto
build:
go build -o ./bin/tfs_model_status_probe
.PHONY: test
test:
go vet ./...
go test .
.PHONY: clean
clean:
rm -rf ./bin/