-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (25 loc) · 926 Bytes
/
Makefile
File metadata and controls
33 lines (25 loc) · 926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
VERSION := $(shell cat VERSION)
run:
go run main.go
build:
go build -o ./dicedb-cli
check-golangci-lint:
@if ! command -v golangci-lint > /dev/null || ! golangci-lint version | grep -q "$(GOLANGCI_LINT_VERSION)"; then \
echo "Required golangci-lint version $(GOLANGCI_LINT_VERSION) not found."; \
echo "Please install golangci-lint version $(GOLANGCI_LINT_VERSION) with the following command:"; \
echo "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.60.1"; \
exit 1; \
fi
lint: check-golangci-lint
golangci-lint run ./...
release:
git tag -a $(VERSION) -m "release $(VERSION)"
git push origin $(VERSION)
goreleaser release --clean
generate:
protoc --go_out=. --go-grpc_out=. protos/cmd.proto
bench:
go run main.go bench --num-connections=4 --engine=ironhawk
clean:
rm -f ./dicedb-cli
go clean -modcache -cache -testcache