mirror of
https://github.com/correl/riichi.git
synced 2024-11-14 03:00:12 +00:00
26 lines
500 B
Makefile
26 lines
500 B
Makefile
.PHONY: all deps compile test clean
|
|
|
|
REBAR=rebar
|
|
DEPS_PLT=$(CURDIR)/.deps_plt
|
|
DEPS=kernel stdlib erts mnesia eunit
|
|
|
|
all: deps compile
|
|
|
|
docs:
|
|
@$(REBAR) doc
|
|
deps:
|
|
@$(REBAR) get-deps
|
|
@$(REBAR) update-deps
|
|
compile: deps
|
|
@$(REBAR) compile
|
|
|
|
$(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
|
|
test:
|
|
@$(REBAR) skip_deps=true eunit
|
|
clean:
|
|
@$(REBAR) clean
|
|
@$(REBAR) delete-deps
|