Makefile: allow overriding GIT_VERSION with env

This is necessary for Nix builds because the sandbox there
does not contain `.git` directory or `git` command.

Also the quotes are pointless.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2022-09-28 12:21:03 +02:00
parent 612023fab0
commit c615636885
No known key found for this signature in database
GPG Key ID: 09AA5403E54D9931
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ endif
NIM_PARAMS := $(NIM_PARAMS) -d:discv5_protocol_id:d5waku
# git version for JSON RPC call
GIT_VERSION := "$(shell git describe --abbrev=6 --always --tags)"
GIT_VERSION ?= $(shell git describe --abbrev=6 --always --tags)
NIM_PARAMS := $(NIM_PARAMS) -d:git_version:\"$(GIT_VERSION)\"
deps: | deps-common nat-libs waku.nims rlnlib rlnzerokitlib