-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
38 lines (29 loc) · 869 Bytes
/
Makefile
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
34
35
36
37
38
VERSION?="0.0.1"
.PHONY: compile-linux
compile-linux:
GOOS=linux GOARCH=amd64 go build -race -v ./...
.PHONY: compile-windows
compile-windows:
GOOS=windows GOARCH=amd64 go build -race -v ./...
.PHONY: unit-test
unit-test:
go test -covermode=count -coverprofile=profile.cov -v ./...
.PHONY: protogen
protogen:
./generate_proto.sh
.PHONY: build-example-storage
build-example-storage:
go build -o _output/example_storage -v ./examples/storage/
.PHONY: build-kv
build-kv:
go build -gcflags="-N -l" -o _output/icecanekv ./cmd/icecanekv/main.go
.PHONY: build-sql
build-sql:
go build -gcflags="-N -l" -o _output/icecanesql ./cmd/icecanesql/main.go
.PHONY: run-kv-cluster
run-kv-cluster:
docker-compose -f docker/docker-compose.yml up --remove-orphans
#### Dev Commands ####
.PHONY: clean-example-directory
clean-example-directory:
rm -rf example-directory/*