fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/erlang/osmo-s1gw/+/37728?usp=email )
Change subject: Makefile: add 'install' target ......................................................................
Makefile: add 'install' target
Change-Id: If4901adb648c98d52dbc0abd97413c20503fb278 --- M Makefile 1 file changed, 19 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/erlang/osmo-s1gw refs/changes/28/37728/1
diff --git a/Makefile b/Makefile index 4482b2c..004e189 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,8 @@ +# config file used by 'run' and 'shell' CONFIG ?= config/sys.config +# directory paths for 'install' +BINDIR ?= /usr/bin +CONFDIR ?= /etc/osmocom
all: build
@@ -23,6 +27,12 @@ analyze: $(GEN_FILES) rebar3 dialyzer
+install: build + install -d $(DESTDIR)$(BINDIR) + install -d $(DESTDIR)$(CONFDIR) + install -m 0755 _build/default/bin/osmo-s1gw $(DESTDIR)$(BINDIR) + install -m 0644 -T 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