fixeria has submitted this change. ( 
https://gerrit.osmocom.org/c/erlang/osmo-s1gw/+/37728?usp=email )

Change subject: Makefile: add 'install' target
......................................................................

Makefile: add 'install' target

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

Approvals:
  Jenkins Builder: Verified
  osmith: Looks good to me, approved




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 https://gerrit.osmocom.org/c/erlang/osmo-s1gw/+/37728?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

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 <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>

Reply via email to