From eab4a7b8dcc0a20cdc0fa4bb4bff8f4549d4c6f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 17 Oct 2011 13:06:52 +0200 Subject: Initial commit This is mostly a proof of concept. The client-side can be greatly improved (and we should probably take from other projects directly). The server-side is pretty much how it should be though. --- Makefile | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6c4d71f --- /dev/null +++ b/Makefile @@ -0,0 +1,37 @@ +# See LICENSE for licensing information. + +DIALYZER = dialyzer +REBAR = rebar + +all: app + +app: deps + @$(REBAR) compile + +deps: + @$(REBAR) get-deps + +clean: + @$(REBAR) clean + rm -f test/*.beam + rm -f erl_crash.dump + +tests: clean app eunit ct + +eunit: + @$(REBAR) eunit skip_deps=true + +ct: + @$(REBAR) ct skip_deps=true + +build-plt: + @$(DIALYZER) --build_plt --output_plt .bullet_dialyzer.plt \ + --apps kernel stdlib deps/cowboy + +dialyze: + @$(DIALYZER) --src src --plt .bullet_dialyzer.plt \ + -Wbehaviours -Werror_handling \ + -Wrace_conditions -Wunmatched_returns # -Wunderspecs + +docs: + @$(REBAR) doc skip_deps=true -- cgit v1.2.3