-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (26 loc) · 786 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
.PHONY: build
build:
@go build -o build/protoc-gen-connectclient-go .
@./build/protoc-gen-connectclient-go -version
.PHONY: proto
proto: build
@rm -rf internal/testdata/gen
@buf generate ./internal/proto --template ./internal/proto/buf.gen.yaml
.PHONY: examples
examples: build example-bufapi example-bufregistry example-eliza example-bestofgo
example-bufapi:
@buf generate --template ./examples/bufapi/buf.gen.yaml
example-bufregistry:
@buf generate --template ./examples/bufregistry/buf.gen.yaml
example-eliza:
@buf generate --template ./examples/eliza/buf.gen.yaml
example-bestofgo:
@buf generate --template ./examples/bestofgo/buf.gen.yaml
.PHONY: generate
generate: proto examples
.PHONY: format
format:
@buf format -w
.PHONY: gitclean
gitclean:
@git clean -xdf