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:
authorToon Claes <toon@gitlab.com>2022-01-28 13:53:03 +0300
committerToon Claes <toon@gitlab.com>2022-01-28 13:53:03 +0300
commita2fb0a46a7f64a83880bee00361047752274503f (patch)
tree6a44a61490f317c9000c0a4c76d422e46b9fadcc
parent23abb5cd23042d62c10403651a4a13c005b456b2 (diff)
parent31773721af194b9971f8ad7a421199ed55a39b54 (diff)
Merge branch 'pks-makefile-separate-bundled-git-targets' into 'master'
Makefile: Allow standalone installation of bundled Git See merge request gitlab-org/gitaly!4291
-rw-r--r--Makefile17
1 files changed, 12 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index f1ae08265..c6ccee7d1 100644
--- a/Makefile
+++ b/Makefile
@@ -347,16 +347,23 @@ install: build
${Q}mkdir -p ${INSTALL_DEST_DIR}
install $(call find_command_binaries) ${INSTALL_DEST_DIR}
-ifdef WITH_BUNDLED_GIT
-build: $(patsubst %,${BUILD_DIR}/bin/gitaly-%,${GIT_EXECUTABLES})
+.PHONY: build-bundled-git
+## Build bundled Git binaries.
+build-bundled-git: $(patsubst %,${BUILD_DIR}/bin/gitaly-%,${GIT_EXECUTABLES})
-install: $(patsubst %,${INSTALL_DEST_DIR}/gitaly-%,${GIT_EXECUTABLES})
+.PHONY: install-bundled-git
+## Install bundled Git binaries. The target directory can be modified by
+## setting PREFIX and DESTDIR.
+install-bundled-git: $(patsubst %,${INSTALL_DEST_DIR}/gitaly-%,${GIT_EXECUTABLES})
-prepare-tests: $(patsubst %,${BUILD_DIR}/bin/gitaly-%,${GIT_EXECUTABLES})
+ifdef WITH_BUNDLED_GIT
+build: build-bundled-git
+prepare-tests: build-bundled-git
+install: install-bundled-git
export GITALY_TESTING_BUNDLED_GIT_PATH ?= ${BUILD_DIR}/bin
else
-prepare-tests: git $(patsubst %,${BUILD_DIR}/bin/gitaly-%,${GIT_EXECUTABLES})
+prepare-tests: git build-bundled-git
export GITALY_TESTING_BUNDLED_GIT_PATH ?= ${BUILD_DIR}/bin
export GITALY_TESTING_GIT_BINARY ?= ${GIT_PREFIX}/bin/git