fixeria submitted this change.

View Change

Approvals: Jenkins Builder: Verified osmith: Looks good to me, approved
Makefile: add 'install' target

Related: SYS#7040
Change-Id: If4901adb648c98d52dbc0abd97413c20503fb278
---
M Makefile
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index fdf454f..52390d1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,10 @@
+# config file used by 'run' and 'shell'
CONFIG ?= config/sys.config
+# arguments passed to eunit, used by 'check'
EUNIT_ARGS ?=
+# directory paths for 'install'
+BINDIR ?= /usr/bin
+CONFDIR ?= /etc/osmocom

all: build

@@ -24,6 +29,12 @@
analyze: $(GEN_FILES)
rebar3 dialyzer

+install: build
+ install -Dm0755 _build/default/bin/osmo-s1gw \
+ $(DESTDIR)$(BINDIR)/osmo-s1gw
+ install -Dm0644 config/sys.config \
+ $(DESTDIR)$(CONFDIR)/osmo-s1gw.config
+
clean:
# Avoid running rebar3 clean if _build doesn't exist, since it would try
# to fetch deps from the Internet and that may not be avaialble when in

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

Gerrit-MessageType: merged
Gerrit-Project: erlang/osmo-s1gw
Gerrit-Branch: master
Gerrit-Change-Id: If4901adb648c98d52dbc0abd97413c20503fb278
Gerrit-Change-Number: 37728
Gerrit-PatchSet: 3
Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de>
Gerrit-Reviewer: laforge <laforge@osmocom.org>
Gerrit-Reviewer: osmith <osmith@sysmocom.de>