mirror of
https://github.com/paralus/paralus.git
synced 2026-05-06 00:17:19 +00:00
36 lines
492 B
Makefile
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
|