diff --git a/Makefile b/Makefile index 39a7609d4d8ca45c3eaf4edcf08e5efc4c288607..1fc9ec207c26534de2ffe1b35f71409e3ac436cc 100644 --- a/Makefile +++ b/Makefile @@ -537,7 +537,7 @@ upgrade-module: .PHONY: git ## Build Git. -git: ${GIT_PREFIX}/bin/git +git: ${DESTDIR}/${GIT_PREFIX}/bin/git .PHONY: libgit2 ## Build libgit2. @@ -568,7 +568,7 @@ ${DEPENDENCY_DIR}: | ${BUILD_DIR} ${Q}mkdir -p ${DEPENDENCY_DIR} # This target builds a full Git distribution and installs it into GIT_PREFIX. -${GIT_PREFIX}/bin/git: ${DEPENDENCY_DIR}/git-distribution/Makefile +${DESTDIR}/${GIT_PREFIX}/bin/git: ${DEPENDENCY_DIR}/git-distribution/Makefile @ # Remove the Git installation first in case GIT_PREFIX is the default @ # prefix which always points into our build directory. This is done so @ # we never end up with mixed Git installations on developer machines.