From c6156368857d243bba708166a1fa8ab5febe6c5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Wed, 28 Sep 2022 12:21:03 +0200 Subject: [PATCH] Makefile: allow overriding GIT_VERSION with env MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6cc978537..77109f9e1 100644 --- a/Makefile +++ b/Makefile @@ -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