Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer (GitLab) <jacob@gitlab.com>2017-03-03 20:01:41 +0300
committerJacob Vosmaer (GitLab) <jacob@gitlab.com>2017-03-03 20:01:41 +0300
commit23ce9de01b2869f9907e132c94d50594087e2b0b (patch)
tree77c96dae02441b0d3f630736fa746757beed970c
parent521a532248fe5a3b96622f57d04c1ab6e32e09c0 (diff)
parente9377f9efe08dfa10ffb32eef8bd4d62806ffdbc (diff)
Merge branch 'make-install' into 'master'
Add "make install" See merge request !89
-rw-r--r--Makefile5
-rw-r--r--README.md8
2 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1a4f44d5e..7be15b539 100644
--- a/Makefile
+++ b/Makefile
@@ -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
diff --git a/README.md b/README.md
index a457f5b8c..f6a5a5c15 100644
--- a/README.md
+++ b/README.md
@@ -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