Updated Makefile

This commit is contained in:
Fabio Salvini 2017-07-05 20:42:04 +02:00
parent 680a5d3aed
commit c13e493b72
1 changed files with 16 additions and 7 deletions

View File

@ -1,24 +1,33 @@
REBAR=rebar3
all: release
prod:
${REBAR} as prod tar
release:
${REBAR} release
all: compile code test release
.PHONY: compile
compile:
${REBAR} compile
.PHONY: code
code:
${REBAR} dialyzer
.PHONY: test
test:
${REBAR} eunit
.PHONY: release
release:
${REBAR} release
.PHONY: prod
prod: compile code test
${REBAR} as prod tar
.PHONY: doc
doc:
${REBAR} edoc
.PHONY: clean
clean:
${REBAR} clean
rm -rf _build
rm -rf apps/log_monitor/doc