summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2015-09-19 14:03:02 +0200
committerGuido Günther <agx@sigxcpu.org>2015-09-19 14:12:09 +0200
commit4500b9a982f0e0803318d604a993ded16820dcd3 (patch)
tree3f70382fb23f0094b7da5afa7d2f22b67a7d3216 /Makefile
Initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..33198e9
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,36 @@
+ERL ?= erl
+APP := simplec
+
+.PHONY: deps
+
+all: compile
+
+compile: deps
+ @./rebar compile
+
+deps:
+ @./rebar get-deps
+
+clean:
+ @./rebar clean
+
+distclean: clean
+ @./rebar delete-deps
+
+docs:
+ @erl -noshell -run edoc_run application '$(APP)' '"."' '[]'
+
+test: all
+ @(./rebar skip_deps=true eunit)
+
+tags:
+ find . -name "*.[he]rl" -print | etags -
+
+DEPSOLVER_PLT=$(CURDIR)/.depsolver_plt
+$(DEPSOLVER_PLT):
+ dialyzer --output_plt $(DEPSOLVER_PLT) --build_plt \
+ --apps erts kernel stdlib crypto http_uri -r deps
+
+dialyzer: $(DEPSOLVER_PLT)
+ dialyzer --plt $(DEPSOLVER_PLT) -Wrace_conditions --src src
+