Permalink
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (26 sloc) 534 Bytes
REBAR = $(shell pwd)/rebar3
compile: $(REBAR) .git/hooks/pre-commit
$(REBAR) compile
.git/hooks/pre-commit: hooks/pre-commit
cp hooks/pre-commit .git/hooks
pre-commit: lint xref dialyzer test
dialyzer: $(REBAR)
$(REBAR) dialyzer
xref: $(REBAR)
$(REBAR) xref
test: $(REBAR)
$(REBAR) eunit
lint: $(REBAR)
$(REBAR) as lint lint
$(REBAR):
cp `which rebar3` $(REBAR)
upgrade: $(REBAR)
$(REBAR) upgrade
make tree
tree: $(REBAR)
$(REBAR) tree | grep -v '=' | sed 's/ (.*//' > tree
###
### Docs
###
docs:
$(REBAR) edoc