profile trick to make it rebar2 compatible.
This commit is contained in:
parent
02734c103b
commit
6dbeefc99b
2 changed files with 25 additions and 7 deletions
12
Makefile
12
Makefile
|
@ -1,10 +1,18 @@
|
||||||
|
REBAR = $(shell pwd)/rebar3
|
||||||
|
|
||||||
all: compile
|
all: compile
|
||||||
|
|
||||||
compile:
|
compile:
|
||||||
./rebar3 compile
|
$(REBAR) compile
|
||||||
|
|
||||||
test: compile
|
test: compile
|
||||||
./rebar3 eunit
|
$(REBAR) eunit
|
||||||
|
|
||||||
run:
|
run:
|
||||||
erl -pa ebin/ deps/*/ebin/ -eval "application:start(qdate)"
|
erl -pa ebin/ deps/*/ebin/ -eval "application:start(qdate)"
|
||||||
|
|
||||||
|
publish:
|
||||||
|
$(REBAR) as pkg upgrade
|
||||||
|
$(REBAR) as pkg hex publish
|
||||||
|
$(REBAR) upgrade
|
||||||
|
|
||||||
|
|
16
rebar.config
16
rebar.config
|
@ -1,9 +1,19 @@
|
||||||
% vim:ts=4 sw=4 et ft=erlang
|
%% -*- erlang -*-
|
||||||
|
%% vim:ts=4 sw=4 et ft=erlang
|
||||||
{require_otp_vsn, "R13B04|R14|R15|R16|17"}.
|
{require_otp_vsn, "R13B04|R14|R15|R16|17"}.
|
||||||
|
|
||||||
{cover_enabled, true}.
|
{cover_enabled, true}.
|
||||||
|
|
||||||
{deps, [
|
{deps,
|
||||||
|
[
|
||||||
|
{erlware_commons, ".*", {git, "git://github.com/erlware/erlware_commons.git", {branch, master}}},
|
||||||
|
{erlang_localtime, ".*", {git, "git://github.com/choptastic/erlang_localtime.git", {branch, master}}}
|
||||||
|
]}.
|
||||||
|
|
||||||
|
{profiles,
|
||||||
|
[{pkg,
|
||||||
|
[{deps,
|
||||||
|
[
|
||||||
erlware_commons,
|
erlware_commons,
|
||||||
erlang_localtime
|
erlang_localtime
|
||||||
]}.
|
]}]}]}.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue