-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
47 lines (32 loc) · 875 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
39
40
41
42
43
44
45
46
.PHONY: test
CWD=$(shell pwd)
NAME=$(shell basename ${CWD})
CT_LOG=${APP_DIR}/logs
REBAR?=${CWD}/rebar3
all: clean get-deps compile
# check if rebar3.mk exists, and if not, download it
ifeq ("$(wildcard rebar3.mk)","")
$(shell curl -O https://raw.githubusercontent.com/choptastic/rebar3.mk/master/rebar3.mk)
endif
# rebar3.mk adds a new rebar3 rule to your Makefile
# (see https://github.com/choptastic/rebar3.mk) for full info
include rebar3.mk
# Clean all.
clean: rebar3
@$(REBAR) clean
# Gets dependencies.
get-deps: rebar3
@$(REBAR) get-deps
# Compiles.
compile: rebar3
@$(REBAR) compile
run: rebar3
$(REBAR) shell --apps nitro_cache
test: rebar3
$(REBAR) ct
benchmark:
ERL_FLAGS=" +P 60000000" $(REBAR) shell --apps nitro_cache --eval "nitro_cache:benchmark(10000), halt()."
dialyzer: rebar3
$(REBAR) dialyzer
publish: rebar3
$(REBAR) hex publish