-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (37 loc) · 1.2 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
.NOTPARALLEL:
COMPOSE := docker-compose
exec = $(COMPOSE) exec $(1)
exec-workspace := $(call exec,workspace)
exec-redis := $(call exec,redis)
REBAR3 := $(exec-workspace) rebar3
.PHONY: all
all: workspace-up test
# --------------------------------------------------------------------
# Workspace
# --------------------------------------------------------------------
.PHONY: workspace-build wb
workspace-build wb: ; $(COMPOSE) build
.PHONY: workspace-up wu
workspace-up wu: ; $(COMPOSE) up --detach
.PHONY: workspace-down wd
workspace-down wd: ; $(COMPOSE) down
.PHONY: workspace w
workspace w: ; $(exec-workspace) sh
# --------------------------------------------------------------------
# Project
# --------------------------------------------------------------------
.PHONY: shell s
shell s: ; $(REBAR3) shell
.PHONY: xref x
xref x: ; $(REBAR3) xref
.PHONY: dialyzer d
dialyzer d: ; $(REBAR3) dialyzer
.PHONY: test t
test t: ; $(REBAR3) test
.PHONY: clean c
clean c: ; $(REBAR3) clean --all
# --------------------------------------------------------------------
# Redis
# --------------------------------------------------------------------
.PHONY: redis-cli rc
redis-cli rc: ; $(exec-redis) redis-cli