diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-08-10 11:33:43 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-08-10 12:29:01 +0300 |
commit | 17419f5f7aa0a38485b47eccc6319e4afe560200 (patch) | |
tree | b8956fba27d93ff630f25901f507fb5d1527f42f | |
parent | 4a07c83f3c0beac309c758fba74b2f9a81648d99 (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-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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. |