fixeria has uploaded this change for review.

View Change

Makefile: 'run' becomes an alias of 'shell'

Running osmo-s1gw in form of an escript executable is prone to errors.

* Move away from escript and make 'run' an alias of 'shell'.
* Move `rebar3 escriptize` to a dedicated 'escript' recipe.
* Add 'run-escript' recipe in case its ever needed.

Change-Id: I8b34c11cc9361d8b65316401f67a5038544b27ac
Related: SYS#7332
---
M Makefile
1 file changed, 5 insertions(+), 1 deletion(-)

git pull ssh://gerrit.osmocom.org:29418/erlang/osmo-s1gw refs/changes/57/40757/1
diff --git a/Makefile b/Makefile
index fd9d1ae..14ebc69 100644
--- a/Makefile
+++ b/Makefile
@@ -17,11 +17,15 @@

build: $(GEN_FILES)
rebar3 compile
+
+escript: $(GEN_FILES)
rebar3 escriptize

-run: build
+run-escript: escript
ERL_FLAGS='-config $(CONFIG)' _build/default/bin/osmo-s1gw

+run: shell
+
shell: build
rebar3 shell --config $(CONFIG)


To view, visit change 40757. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: erlang/osmo-s1gw
Gerrit-Branch: master
Gerrit-Change-Id: I8b34c11cc9361d8b65316401f67a5038544b27ac
Gerrit-Change-Number: 40757
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de>