Files
paralus/Makefile
2022-06-30 19:44:29 +05:30

37 lines
486 B
Makefile

.PHONY: tidy
tidy:
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: clean-proto
clean-proto:
rm -rf ./gen
find . -name "*.pb*" -type f -delete
.PHONY: build-proto
build-proto: clean-proto
buf build
buf generate
.PHONY: test
test:
go test ./...
.PHONY: check
check:
go fmt ./...
go vet ./...
.PHONY: clean
clean:
rm paralus