From 6dbeefc99b29b3cbe203b60e6da968eb94b92087 Mon Sep 17 00:00:00 2001 From: "Heinz N. Gies" Date: Sat, 25 Jul 2015 21:36:35 +0200 Subject: [PATCH] profile trick to make it rebar2 compatible. --- Makefile | 12 ++++++++++-- rebar.config | 20 +++++++++++++++----- 2 files changed, 25 insertions(+), 7 deletions(-) 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 + ]}]}]}.