profile trick to make it rebar2 compatible.

This commit is contained in:
Heinz N. Gies 2015-07-25 21:36:35 +02:00
parent 02734c103b
commit 6dbeefc99b
2 changed files with 25 additions and 7 deletions

View file

@ -1,10 +1,18 @@
REBAR = $(shell pwd)/rebar3
all: compile
compile:
./rebar3 compile
$(REBAR) compile
test: compile
./rebar3 eunit
$(REBAR) eunit
run:
erl -pa ebin/ deps/*/ebin/ -eval "application:start(qdate)"
publish:
$(REBAR) as pkg upgrade
$(REBAR) as pkg hex publish
$(REBAR) upgrade