Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Convert ns_server build to rebar

Change-Id: I360cb6f940bb10a0cebd06cd23f9839db2a058c0
Reviewed-on: http://review.membase.org/4455
Reviewed-by: Sean Lynch <seanlynch5@gmail.com>
Tested-by: Sean Lynch <seanlynch5@gmail.com>
  • Loading branch information...
commit 625638a11daeda7c972a8c82476249832ca74282 1 parent 23893f4
Dale Harvey authored Sean Lynch committed
View
9 Emakefile
@@ -1,9 +0,0 @@
-{'src/*', [debug_info,
- {outdir, "ebin"},
- {i, "include"},
- %% warnings_as_errors,
- warn_export_all,
- warn_unused_import
- ]}.
-{'test/*',
- [debug_info, {outdir, "ebin"}, {i, "include"}]}.
View
12 Makefile
@@ -13,9 +13,11 @@ TEST_TARGET=start
DOC_DIR?=./docs/erldocs
+REBAR=./rebar
+
.PHONY: ebins ebin_app version
-all: ebins deps_all
+all: ebins ebin_app deps_all
deps_menelaus:
(cd deps/menelaus && $(MAKE) all)
@@ -28,13 +30,11 @@ deps_all: deps_menelaus deps_smtp
docs:
priv/erldocs $(DOC_DIR)
-ebins: ebin_app
- test -d ebin || mkdir ebin
- erl -noinput +B $(EFLAGS) -eval 'case make:all() of up_to_date -> halt(0); error -> halt(1) end.'
+ebins:
+ $(REBAR) compile
ebin_app: version
- test -d ebin || mkdir ebin
- sed s/0.0.0/`cat $(TMP_VER)`/g src/ns_server.app.src > ebin/ns_server.app
+ sed -i "" s/0.0.0/`cat $(TMP_VER)`/g ebin/ns_server.app
version:
test -d $(TMP_DIR) || mkdir $(TMP_DIR)
View
2  deps/gen_smtp/Emakefile
@@ -1,2 +0,0 @@
-{'src/*', [debug_info, {outdir, "ebin"},
- {i, "include"}]}.
View
4 deps/gen_smtp/Makefile
@@ -1,12 +1,12 @@
SHELL=/bin/sh
+REBAR=../../rebar
.PHONY: ebins
all: ebins
ebins:
- test -d ebin || mkdir ebin
- erl -noinput +B $(EFLAGS) -eval 'case make:all() of up_to_date -> halt(0); error -> halt(1) end.'
+ $(REBAR) compile
clean:
rm -rf ebin
View
6 deps/menelaus/Emakefile
@@ -1,6 +0,0 @@
-{'src/*', [debug_info,
- {outdir, "ebin"},
- {i, "include"},
- {i, "../ns_server/include"},
- {i, "../../pull_make_ns_server/ns_server/include"},
- {i, "../../include"}]}.
View
4 deps/menelaus/Makefile
@@ -4,6 +4,7 @@ TMP_DIR=./tmp
TMP_VER=$(TMP_DIR)/version_num.tmp
DIST_DIR=$(TMP_DIR)/menelaus
SPROCKETIZE=sprocketize
+REBAR=../../rebar
.PHONY: ebins ebin_app version
@@ -11,7 +12,8 @@ all: deps priv/public/js/all.js ebins
ebins: ebin_app
test -d ebin || mkdir ebin
- erl -noinput +B $(EFLAGS) -eval 'case make:all() of up_to_date -> halt(0); error -> halt(1) end.'
+ $(REBAR) compile
+#erl -noinput +B $(EFLAGS) -eval 'case make:all() of up_to_date -> halt(0); error -> halt(1) end.'
ebin_app: version
test -d ebin || mkdir ebin
View
1  deps/menelaus/rebar.config
@@ -0,0 +1 @@
+{erl_opts, [{i, "../../include"}]}.
View
BIN  rebar
Binary file not shown
View
1  rebar.config
@@ -0,0 +1 @@
+{erl_opts, [{src_dirs, ["test"]}]}.
Please sign in to comment.
Something went wrong with that request. Please try again.