Simplify proto generation and clean

This commit is contained in:
Abin Simon
2022-06-30 17:23:32 +05:30
parent dbf6ff94fd
commit fd37d9aa9e
2 changed files with 9 additions and 7 deletions

1
.gitignore vendored
View File

@@ -1 +1,2 @@
coverage.out
paralus

View File

@@ -11,12 +11,14 @@ build:
# size of binary.
go build -ldflags "-s" -o paralus .
.PHONY: build-proto
build-proto:
buf build
.PHONY: clean-proto
clean-proto:
rm -rf ./gen
find . -name "*.pb*" -type f -delete
.PHONY: gen-proto
gen-proto:
.PHONY: build-proto
build-proto: clean-proto
buf build
buf generate
.PHONY: test
@@ -31,5 +33,4 @@ check:
.PHONY: clean
clean:
rm -rf ./**/gen
find . -name "*.pb*" -type f -delete
rm paralus