Files
paralus/Makefile
2022-06-14 12:22:24 +05:30

36 lines
492 B
Makefile

.PHONY: tidy
tidy:
GOPRIVATE=github.com/paralus/* go mod tidy
.PHONY: vendor
vendor:
go mod vendor
.PHONY: build
build:
# Omit the symbol table and debug information to reduce the
# size of binary.
go build -ldflags "-s" -o paralus .
.PHONY: build-proto
build-proto:
buf build
.PHONY: gen-proto
gen-proto:
buf generate
.PHONY: test
test:
go test ./...
.PHONY: check
check:
go fmt ./...
go vet ./...
.PHONY: clean
clean:
rm -rf ./**/gen
find . -name "*.pb*" -type f -delete