-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (30 loc) · 830 Bytes
/
Makefile
File metadata and controls
38 lines (30 loc) · 830 Bytes
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
ERL ?= erl
ERLC ?= erlc
REBAR ?= ./rebar
EVAL ?= "application:start(cloudfile)."
START ?= cloudfile
NODE ?= cloudfile
HOSTNAME ?= `uname -n`
REBAR ?= "./rebar"
CONFIG ?= "cloudfile.config"
RUN := $(ERL) -pa lib/*/ebin -pa deps/*/ebin -smp enable -boot start_sasl -config ${CONFIG} ${ERL_ARGS}
EVAL_IGNITION = -eval ${EVAL};
START_IGNITION = -s ${START}
IGNITION = ${START_IGNITION}
all:
${REBAR} get-deps compile
quick:
${REBAR} skip_deps=true compile
clean:
${REBAR} clean
quick_clean:
${REBAR} skip_deps=true clean
release:
${REBAR} get-deps compile generate
run: quick
if [ -n "${NODE}" ]; then ${RUN} -name ${NODE}@${HOSTNAME} ${IGNITION}; \
else ${RUN} ${IGNITION}; \
fi
test:
@$(ERLC) -o tests/ tests/*.erl
prove -v tests/*.t tests/**/*.t