summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-10-17 13:06:52 +0200
committerLoïc Hoguin <[email protected]>2011-10-17 13:08:13 +0200
commiteab4a7b8dcc0a20cdc0fa4bb4bff8f4549d4c6f0 (patch)
treef40a36f646790933265ab291d78cd3831fdca335 /Makefile
downloadbullet-eab4a7b8dcc0a20cdc0fa4bb4bff8f4549d4c6f0.tar.gz
bullet-eab4a7b8dcc0a20cdc0fa4bb4bff8f4549d4c6f0.tar.bz2
bullet-eab4a7b8dcc0a20cdc0fa4bb4bff8f4549d4c6f0.zip
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile37
1 files changed, 37 insertions, 0 deletions
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