-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
59 lines (50 loc) · 2.18 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
## Displays commands
help:
$(info Available targets)
$(info ------------------)
@awk '/^[a-zA-Z\-\_0-9]+:/ { \
nb = sub( /^## /, "", helpMsg ); \
if(nb == 0) { \
helpMsg = $$0; \
nb = sub( /^[^:]*:.* ## /, "", helpMsg ); \
} \
if (nb) \
print $$1 " " helpMsg; \
} \
{ helpMsg = $$0 }' \
$(MAKEFILE_LIST) | grep --color '^[^: ]*'
## Get necessary go dependencies
get-dependencies:
go get github.com/go-redis/redis
go get github.com/gocql/gocql
go get github.com/hazelcast/hazelcast-go-client
go get github.com/tarantool/go-tarantool
go get github.com/altay13/godatastructures
## Starts all available db containers and runs interactive console
run-example-interactive-all: start-all-container
go run main.go interactive
## Starts redis db containers and runs interactive console
run-example-interactive-redis: start-redis-container
go run main.go interactive --db=redis --config='localhost'
## Starts hazelcast db containers and runs interactive console
run-example-interactive-hazelcast: start-hazelcast-container
go run main.go interactive --db=hazelcast --config='localhost'
## Starts tarantool db containers and runs interactive console
run-example-interactive-tarantool: start-tarantool-container
go run main.go interactive --db=tarantool --config='localhost'
## Starts cassandra db containers and runs interactive console
run-example-interactive-cassandra: start-cassandra-container
go run main.go interactive --db=cassandra --config='localhost'
## Starts rocksdb db containers and runs interactive console
run-example-interactive-rocksdb: start-rocksdb-container
go run main.go interactive --db=rocksdb --config='localhost'
include example/*.mk
.DEFAULT_GOAL := help
.PHONY: help \
get-dependencies \
run-example-interactive \
run-example-interactive-redis \
run-example-interactive-hazelcast \
run-example-interactive-tarantool \
run-example-interactive-cassandra \
run-example-interactive-rocksdb