diff --git a/.gitignore b/.gitignore index 2d83068..70400c8 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ coverage.out +paralus diff --git a/Makefile b/Makefile index 0e17b10..1543afc 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ .PHONY: tidy tidy: - GOPRIVATE=github.com/paralus/* go mod tidy + go mod tidy .PHONY: vendor vendor: go mod vendor @@ -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