Skip to content

Commit 51c70eb

Browse files
author
Thomas Arts
committed
Update Makefile and rebar.config
1 parent 564f26b commit 51c70eb

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ REBAR ?= $(BASE_DIR)/rebar3
88
OVERLAY_VARS ?=
99
TEST_IGNORE ?=
1010
TEST_DEPS_DIR ?= _build/test/lib
11+
REL_DIR ?= _build/default/rel
1112
DEPS = $(patsubst $(TEST_DEPS_DIR)/%, %, $(wildcard $(TEST_DEPS_DIR)/*))
1213
TEST_DEPS = $(filter-out $(TEST_IGNORE), $(DEPS))
1314

@@ -72,9 +73,11 @@ test : test-deps
7273
##
7374
## Release targets
7475
##
75-
rel: locked-deps compile generate
76+
rel: locked-deps compile
77+
$(REBAR) release
7678

7779
relclean:
80+
rm -rf $(REL_DIR)
7881
rm -rf rel/riak
7982

8083
##
@@ -98,6 +101,8 @@ $(eval stagedevrel : $(foreach n,$(SEQ),stagedev$(n)))
98101
$(eval devrel : $(foreach n,$(SEQ),dev$(n)))
99102

100103
## need absolute path for overlay_vars due to rebar3 bug
104+
## We want to use ./rebar3 release --overlay_vars rel/vars/$@_vars.config
105+
## but somehow that seems not to work
101106
dev% : all
102107
mkdir -p dev
103108
cp rel/vars.config rel/vars.config.backup

rebar.config

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
{cluster_info, {git, "git://github.com/basho/cluster_info.git", {branch, "develop-3.0"}}},
1616
{riak_kv, {git, "git://github.com/basho/riak_kv.git", {branch, "develop-3.0"}}},
1717
{riak_auth_mods, {git, "git://github.com/basho/riak_auth_mods.git", {branch, "develop-3.0"}}},
18-
{riak_repl, {git, "git://github.com/basho/riak_repl.git", {branch, "develop-3.0"}}}
19-
%% {yokozuna, {git, "git://github.com/basho/yokozuna.git", {branch, "develop-3.0"}}}
18+
{riak_repl, {git, "git://github.com/basho/riak_repl.git", {branch, "develop-3.0"}}},
19+
{yokozuna, {git, "git://github.com/basho/yokozuna.git", {branch, "develop-3.0"}}}
2020
]}.
2121

2222
{project_plugins, [
@@ -66,7 +66,7 @@
6666
riak_api,
6767
riak_repl,
6868
cluster_info,
69-
%% yokozuna,
69+
yokozuna,
7070
riak_auth_mods]},
7171

7272
{dev_mode, false},

0 commit comments

Comments
 (0)