Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 81 lines (63 sloc) 1.527 kb
21b24bc @majek Updated readme, explained rebar messup
majek authored
1 REBAR=./rebar
2
1774590 @majek Makefile tweaks
majek authored
3 .PHONY: all clean distclean
dcd9487 @majek cleanup of makefile
majek authored
4 all: deps
21b24bc @majek Updated readme, explained rebar messup
majek authored
5 $(REBAR) compile
16b26fa @majek #4 rebarize dependencies
majek authored
6
7 deps:
21b24bc @majek Updated readme, explained rebar messup
majek authored
8 $(REBAR) get-deps
7718b3a @simonmacmullen Just a tiny framework that loads the sockjs-client test suite, and serve...
simonmacmullen authored
9
10 clean::
21b24bc @majek Updated readme, explained rebar messup
majek authored
11 $(REBAR) clean
16b26fa @majek #4 rebarize dependencies
majek authored
12 rm -rf priv/www
13
0bbe119 @majek #4 Fix paths.
majek authored
14 distclean::
74400be @majek Cosmetic
majek authored
15 rm -rf deps priv ebin
f399d62 @majek Major refactoring begins.
majek authored
16
dcd9487 @majek cleanup of makefile
majek authored
17
18 # **** serve ****
19
20 .PHONY: serve
0d70bcc @majek Renaming examples.
majek authored
21 SERVE_SCRIPT=./examples/cowboy_test_server.erl
f399d62 @majek Major refactoring begins.
majek authored
22 serve:
23 @if [ -e .pidfile.pid ]; then \
24 kill `cat .pidfile.pid`; \
25 rm .pidfile.pid; \
26 fi
27
28 @while [ 1 ]; do \
21b24bc @majek Updated readme, explained rebar messup
majek authored
29 $(REBAR) compile && ( \
f399d62 @majek Major refactoring begins.
majek authored
30 echo " [*] Running erlang"; \
dcd9487 @majek cleanup of makefile
majek authored
31 $(SERVE_SCRIPT) & \
f399d62 @majek Major refactoring begins.
majek authored
32 SRVPID=$$!; \
33 echo $$SRVPID > .pidfile.pid; \
34 echo " [*] Pid: $$SRVPID"; \
35 ); \
0d70bcc @majek Renaming examples.
majek authored
36 inotifywait -r -q -e modify src/*erl examples/*erl src/*hrl; \
f399d62 @majek Major refactoring begins.
majek authored
37 test -e .pidfile.pid && kill `cat .pidfile.pid`; \
38 rm -f .pidfile.pid; \
39 sleep 0.1; \
40 done
41
42
dcd9487 @majek cleanup of makefile
majek authored
43 # **** dialyzer ****
44
f399d62 @majek Major refactoring begins.
majek authored
45 .dialyzer_generic.plt:
46 dialyzer \
47 --build_plt \
48 --output_plt .dialyzer_generic.plt \
49 --apps erts kernel stdlib compiler sasl os_mon mnesia \
50 tools public_key crypto ssl
51
1774590 @majek Makefile tweaks
majek authored
52 .dialyzer_sockjs.plt: .dialyzer_generic.plt
f01f0c0 @majek Cosmetic: makefile tweaks
majek authored
53 dialyzer \
f399d62 @majek Major refactoring begins.
majek authored
54 --no_native \
f01f0c0 @majek Cosmetic: makefile tweaks
majek authored
55 --add_to_plt \
f399d62 @majek Major refactoring begins.
majek authored
56 --plt .dialyzer_generic.plt \
57 --output_plt .dialyzer_sockjs.plt -r deps/*/ebin
58
1774590 @majek Makefile tweaks
majek authored
59 distclean::
60 rm -f .dialyzer_sockjs.plt
61
f399d62 @majek Major refactoring begins.
majek authored
62 dialyze: .dialyzer_sockjs.plt
f01f0c0 @majek Cosmetic: makefile tweaks
majek authored
63 @dialyzer \
f399d62 @majek Major refactoring begins.
majek authored
64 --plt .dialyzer_sockjs.plt \
65 --no_native \
66 --fullpath \
67 -Wrace_conditions \
68 -Werror_handling \
69 -Wunmatched_returns \
70 ebin
71
1774590 @majek Makefile tweaks
majek authored
72 .PHONY: xref
f399d62 @majek Major refactoring begins.
majek authored
73 xref:
21b24bc @majek Updated readme, explained rebar messup
majek authored
74 $(REBAR) xref | egrep -v unused
e852a9d @majek Release notes
majek authored
75
76
77 # **** release ****
78 # 1. Commit
79 # 2. Bump version in "src/sockjs.app.src"
80 # 3. git tag -s "vx.y.z" -m "Release vx.y.z"
Something went wrong with that request. Please try again.