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:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2022-08-10 11:33:43 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2022-08-10 12:29:01 +0300
commit17419f5f7aa0a38485b47eccc6319e4afe560200 (patch)
treeb8956fba27d93ff630f25901f507fb5d1527f42f
parent4a07c83f3c0beac309c758fba74b2f9a81648d99 (diff)
Makefile: Introduce new `install-git` targetpks-makefile-refactor-git-target
The `make git` target is kind of misnamed as it doesn't indicate that it is about installing the Git distribution, but rather sounds like it would only build it. Let's introduce a new `install-git` target that clearly indicates that we're about to install it. This deprecates the old `make git` rule, which is now simply an alias.
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index df5e56cf2..71f55405c 100644
--- a/Makefile
+++ b/Makefile
@@ -533,9 +533,13 @@ upgrade-module:
${Q}${MAKE} proto
.PHONY: git
+# This target is deprecated and will eventually be removed.
+git: install-git
+
+.PHONY: install-git
## Install Git.
-git: ${DEPENDENCY_DIR}/git-distribution/Makefile
- ${Q}env -u PROFILE -u MAKEFLAGS -u GIT_VERSION ${MAKE} -C "$(<D)" -j$(shell nproc) prefix=${GIT_PREFIX} ${GIT_BUILD_OPTIONS} install
+install-git: ${DEPENDENCY_DIR}/git-distribution/Makefile
+ ${Q}env -u PROFILE -u MAKEFLAGS -u GIT_VERSION ${MAKE} -C "${DEPENDENCY_DIR}/git-distribution" -j$(shell nproc) prefix=${GIT_PREFIX} ${GIT_BUILD_OPTIONS} install
.PHONY: libgit2
## Build libgit2.