diff options
author | Toon Claes <toon@gitlab.com> | 2022-01-28 13:53:03 +0300 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2022-01-28 13:53:03 +0300 |
commit | a2fb0a46a7f64a83880bee00361047752274503f (patch) | |
tree | 6a44a61490f317c9000c0a4c76d422e46b9fadcc | |
parent | 23abb5cd23042d62c10403651a4a13c005b456b2 (diff) | |
parent | 31773721af194b9971f8ad7a421199ed55a39b54 (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-- | Makefile | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -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 |