mirror of
https://github.com/paralus/paralus.git
synced 2026-02-14 17:49:51 +00:00
37 lines
486 B
Makefile
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
|