diff options
author | John Cai <jcai@gitlab.com> | 2022-07-21 18:58:28 +0300 |
---|---|---|
committer | John Cai <jcai@gitlab.com> | 2022-07-25 17:40:57 +0300 |
commit | e6e4d4bfa095b8a63027038a0ca41f56289e5262 (patch) | |
tree | 2d01b42a3c2c623b8c299babb069c919422f5283 | |
parent | 942d8298610eded70b5204863048617ee1c136cd (diff) |
Makefile: Add section for environment variablesjc-add-docs-for-git-version
GIT_VERSION can be set to, for instance, run tests with a specific git
version. Add a section to `make help` to display this.
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -145,6 +145,11 @@ GIT_EXECUTABLES += git GIT_EXECUTABLES += git-remote-http GIT_EXECUTABLES += git-http-backend +## The version of Git to build and test Gitaly with when not used +## WITH_BUNDLED_GIT=YesPlease. Can be set to an arbitrary Git revision with +## tags, branches, and commit ids. +GIT_VERSION ?= + # The default version is used in case the caller does not set the variable or # if it is either set to the empty string or "default". ifeq (${GIT_VERSION:default=},) @@ -311,7 +316,8 @@ help: { desc = "" }' $(MAKEFILE_LIST) | sort | column -s: -t ${Q}echo "" - ${Q}echo "These are common variables which can be overridden in config.mak:" + ${Q}echo "These are common variables which can be overridden in config.mak" + ${Q}echo "or by passing them to make directly as environment variables:" ${Q}echo "" @ # Match all variables which have preceding `## ` comments and which are assigned via `?=`. |