riichi/Makefile

27 lines
500 B
Makefile
Raw Normal View History

2012-05-04 12:18:08 +00:00
.PHONY: all deps compile test clean
2012-09-16 19:06:44 +00:00
REBAR=rebar
2013-06-15 03:43:46 +00:00
DEPS_PLT=$(CURDIR)/.deps_plt
DEPS=kernel stdlib erts mnesia eunit
2012-05-04 12:18:08 +00:00
all: deps compile
docs:
@$(REBAR) doc
2012-05-04 12:18:08 +00:00
deps:
@$(REBAR) get-deps
2013-06-15 03:43:46 +00:00
@$(REBAR) update-deps
2012-05-04 12:18:08 +00:00
compile: deps
@$(REBAR) compile
2013-06-15 03:43:46 +00:00
$(DEPS_PLT):
dialyzer --output_plt $(DEPS_PLT) --build_plt \
--apps $(DEPS) -r deps
dialyzer: $(DEPS_PLT)
dialyzer --fullpath --plt $(DEPS_PLT) -Wrace_conditions -r ./ebin
2012-05-04 12:18:08 +00:00
test:
@$(REBAR) skip_deps=true eunit
clean:
@$(REBAR) clean
2013-06-15 03:43:46 +00:00
@$(REBAR) delete-deps