Switch to rebar3
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user