all: help
lint: markdownlint
@echo "Begin to golangci-lint."
@golangci-lint run
.PHONY: lint
markdownlint:
@echo "Begin to markdownlint."
@./hack/markdownlint.sh
.PHONY: markdownlint
generate: protoc
@go generate ./...
.PHONY: generate
protoc: go-protoc rust-protoc
.PHONY: protoc
go-protoc:
@echo "Begin to generate grpc protos of golang."
@./hack/protoc.sh
.PHONY: go-protoc
rust-protoc:
@echo "Begin to generate grpc protos of rust."
@cargo build --release
.PHONY: rust-protoc
clean:
@go clean
@rm -rf bin .go .cache
.PHONY: clean
help:
@echo "make lint run code lint"
@echo "make markdownlint run markdown lint"
@echo "make generate run go generate"
@echo "make protoc generate grpc protos"
@echo "make go-protoc generate grpc protos of golang"
@echo "make rust-protoc generate grpc protos of rust"
@echo "make clean clean"