aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2015-12-26 14:42:24 +0100
committerGuido Günther <agx@sigxcpu.org>2015-12-26 14:42:24 +0100
commitd68d4ebd8d23550940196ac3499616dca32ee64a (patch)
tree135426f0aa58001825feb2d320a11beef39c7c7d
parent08efa5f7d2f95a608d1712a8d684aed6c3a1aa4a (diff)
Add Makefile
-rw-r--r--Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..eb16d5e
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,34 @@
+ERL ?= erl
+APP := proputils
+
+.PHONY: deps
+
+all: 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 inets kernel stdlib crypto public_key
+
+dialyzer: $(DEPSOLVER_PLT)
+ dialyzer --plt $(DEPSOLVER_PLT) -Wrace_conditions --src src
+