diff --git a/Makefile b/Makefile index 5411aa7..126a2ae 100644 --- a/Makefile +++ b/Makefile @@ -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 + diff --git a/rebar.config b/rebar.config index bd606a1..61208c4 100644 --- a/rebar.config +++ b/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"}. {cover_enabled, true}. -{deps, [ - erlware_commons, - erlang_localtime -]}. +{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, + erlang_localtime + ]}]}]}.