diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2017-03-03 19:57:58 +0300 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2017-03-03 19:57:58 +0300 |
commit | e9377f9efe08dfa10ffb32eef8bd4d62806ffdbc (patch) | |
tree | 77c96dae02441b0d3f630736fa746757beed970c | |
parent | 521a532248fe5a3b96622f57d04c1ab6e32e09c0 (diff) |
Add "make install"
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | README.md | 8 |
2 files changed, 13 insertions, 0 deletions
@@ -1,3 +1,4 @@ +PREFIX=/usr/local PKG=gitlab.com/gitlab-org/gitaly BUILD_DIR=$(shell pwd) BIN_BUILD_DIR=${BUILD_DIR}/_build/bin @@ -22,6 +23,10 @@ build: clean-build ${BUILD_DIR}/_build $(shell find . -name '*.go' -not -path '. go install ${PKG}/cmd/... cp ${BIN_BUILD_DIR}/* ${BUILD_DIR}/ +install: build + mkdir -p $(DESTDIR)${PREFIX}/bin/ + cd ${BIN_BUILD_DIR} && install ${CMDS} ${DESTDIR}${PREFIX}/bin/ + verify: lint check-formatting govendor-status check-formatting: install-developer-tools @@ -45,6 +45,14 @@ To maintain the focus of the project, the following subjects are out-of-scope fo - [Git Transfer Protocol internals](https://git-scm.com/book/en/v2/Git-Internals-Transfer-Protocols) - [E3 Elastic Experiment Executor](https://bitbucket.org/atlassian/elastic-experiment-executor) +## Installation + +Gitaly requires Go 1.5 or newer. To install into `/usr/local/bin`, +run: + +``` +make install +``` ## Name |