forked from nitrogen/simple_bridge
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
executable file
·50 lines (36 loc) · 1.04 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
BACKEND:=inets
all: compile
get-deps:
./rebar get-deps
compile: get-deps
./rebar compile
clean: clean-deps
./rebar --config "rebar.$(BACKEND).config" clean
clean-deps:
rm -fr deps/*
test: clean
./rebar --config "rebar.test.config" get-deps
./rebar --config "rebar.test.config" compile
./rebar --config "rebar.test.config" skip_deps=true ct
platform: clean
(escript rebar_deps/merge_deps.escript rebar.config rebar_deps/$(BACKEND).deps rebar.$(BACKEND).config)
(./rebar --config "rebar.$(BACKEND).config" get-deps)
(./rebar --config "rebar.$(BACKEND).config" compile)
(rm -f rebar.$(BACKEND).config)
run_cowboy:
(make platform run BACKEND=cowboy)
run_elli:
(make platform run BACKEND=elli)
run_inets:
(make platform run BACKEND=inets)
run_mochiweb:
(make platform run BACKEND=mochiweb)
run_webmachine:
(make platform run BACKEND=webmachine)
run_yaws:
(make platform run BACKEND=yaws)
run:
erl -pa ebin/ -pa deps/*/ebin \
-config etc/simple_bridge.config \
-simple_bridge backend $(BACKEND) \
-eval "application:start(simple_bridge)"