Switch to rebar3

This commit is contained in:
Juan Jose Comellas
2017-11-01 15:55:20 -03:00
parent fe027dc097
commit 1566e7d69f
4 changed files with 98 additions and 96 deletions
+10 -18
View File
@@ -1,32 +1,24 @@
APPLICATION := getopt
REBAR=$(shell which rebar || echo ./rebar)
ERL := erl
EPATH := -pa ebin
DIALYZER=dialyzer
DIALYZER_OPTS=-Wno_return -Wrace_conditions -Wunderspecs -Wno_undefined_callbacks --fullpath
.PHONY: all clean compile console dialyze doc test
.PHONY: all clean compile dialyzer edoc shell test
all: compile
clean:
@$(REBAR) clean
@rebar3 clean
compile:
@$(REBAR) compile
@rebar3 compile
console:
$(ERL) -sname $(APPLICATION) $(EPATH)
dialyzer: compile
@rebar3 dialyzer
dialyze: compile
@$(DIALYZER) $(DIALYZER_OPTS) -r ./
edoc:
@rebar3 edoc
doc:
@$(REBAR) doc
shell:
@rebar3 shell
test:
@erl -make
@$(ERL) -sname $(APPLICATION) $(EPATH) -noinput -s getopt_test test -s init stop
@rebar3 eunit