Merge pull request #32 from paralus/simplify-makefile

Clean up Makefile
This commit is contained in:
Abin Simon
2022-07-01 11:18:51 +05:30
committed by GitHub
2 changed files with 10 additions and 8 deletions

1
.gitignore vendored
View File

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

View File

@@ -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