-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (26 loc) · 890 Bytes
/
Makefile
File metadata and controls
31 lines (26 loc) · 890 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
.PHONY: build
SRC = $(shell find . -type f -name '*.go' -not -path "./proto/*")
build:
@echo "Building..."
@GO111MODULE=on go build -o bin/meta-server cmd/meta-server/main.go;
@GO111MODULE=on go build -o bin/api-server cmd/api-server/main.go;
@GO111MODULE=on go build -o bin/dispatcher cmd/dispatcher/main.go;
@GO111MODULE=on go build -o bin/remote-sorter cmd/remote-sorter/main.go;
@GO111MODULE=on go build -o bin/schema-registry cmd/schema-registry/main.go;
@echo "Build complete"
proto_gen:
@echo "Generating go proto files..."
@protoc \
--proto_path=proto \
--go_out=proto/go/tistreampb \
--go_opt=paths=source_relative \
--go-grpc_out=proto/go/tistreampb \
--go-grpc_opt=paths=source_relative \
proto/*.proto
@echo "Go proto files generated"
proto_clean:
@echo "Cleaning go proto files..."
@rm proto/go/tistreampb/*
@echo "Done"
fmt:
@gofmt -l -w $(SRC)