Updated Makefile

This commit is contained in:
Fabio Salvini 2017-07-05 20:42:04 +02:00
parent 680a5d3aed
commit c13e493b72

View File

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