From 4500b9a982f0e0803318d604a993ded16820dcd3 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Sat, 19 Sep 2015 14:03:02 +0200 Subject: Initial commit --- Makefile | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 + -- cgit v1.2.3