aboutsummaryrefslogtreecommitdiff
path: root/server/Makefile
blob: 6f1388ca9292d7517b9ceca59ea035f598ca91c8 (plain)
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
.PHONY: all compile clean test test-unit test-prop test-perf run console release

REBAR = rebar3

all: compile

compile:
	$(REBAR) compile

clean:
	$(REBAR) clean
	rm -rf _build

test: test-unit test-prop test-perf

test-unit:
	$(REBAR) ct --suite=jchat_SUITE

test-prop:
	$(REBAR) as test ct --suite=jchat_prop_SUITE

test-perf:
	$(REBAR) as test ct --suite=jchat_perf_SUITE

run:
	$(REBAR) shell --name jchat@localhost

console: compile
	$(REBAR) shell --apps jchat

release:
	$(REBAR) as prod release

dialyzer:
	$(REBAR) dialyzer

# Development helpers
dev-setup:
	mkdir -p log data
	$(REBAR) get-deps compile

format:
	$(REBAR) fmt

# Docker support
docker-build:
	docker build -t jchat:latest .

docker-run:
	docker run -p 8080:8080 jchat:latest