Cleanup Makefile

This commit is contained in:
Juan Jose Comellas 2012-11-18 14:18:12 -03:00
parent 266caf429f
commit cd81aa4f11

View File

@ -6,41 +6,30 @@ EPATH := -pa ebin
TEST_EPATH := -pa .eunit TEST_EPATH := -pa .eunit
DIALYZER=dialyzer DIALYZER=dialyzer
DIALYZER_OPTS=-Wno_return -Wrace_conditions -Wunderspecs -Wbehaviours DIALYZER_OPTS=-Wno_return -Wrace_conditions -Wunderspecs -Wno_undefined_callbacks --fullpath
PLT_FILE=.getopt_plt
APPS=kernel stdlib
.PHONY: all clean test .PHONY: all clean compile console dialyze doc test test-console
all: compile all: compile
compile:
@$(REBAR) compile
doc:
@$(REBAR) doc
plt: compile
@$(DIALYZER) --build_plt --output_plt $(PLT_FILE) --apps $(APPS) ebin
check_plt: compile
@$(DIALYZER) --check_plt --plt $(PLT_FILE) --apps $(APPS) ebin
analyze: compile
@$(DIALYZER) --plt $(PLT_FILE) $(DIALYZER_OPTS) -r ebin
clean: clean:
@$(REBAR) clean @$(REBAR) clean
compile:
@$(REBAR) compile
console:
$(ERL) -sname $(APPLICATION) $(EPATH)
dialyze: compile
@$(DIALYZER) $(DIALYZER_OPTS) -r ./
doc:
@$(REBAR) doc
test: test:
@$(REBAR) eunit @$(REBAR) eunit
dialyzer: test-console:
@$(REBAR) analyze
console: compile
$(ERL) -sname $(APPLICATION) $(EPATH)
testshell: test
$(ERL) -sname $(APPLICATION)_test $(TEST_EPATH) $(ERL) -sname $(APPLICATION)_test $(TEST_EPATH)