fix(make)_: avoid calling version script unnecessarily
If we use `:=` we always call it, but it's not necessary for most targetrs. It requires `git` which is not available in Nix build sandbox. Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
d527c4e619
commit
ba37c32c07
10
Makefile
10
Makefile
|
@ -29,8 +29,8 @@ help: SHELL := /bin/sh
|
|||
help: ##@other Show this help
|
||||
@perl -e '$(HELP_FUN)' $(MAKEFILE_LIST)
|
||||
|
||||
RELEASE_TAG:=$(shell ./_assets/scripts/version.sh)
|
||||
RELEASE_DIR := /tmp/release-$(RELEASE_TAG)
|
||||
RELEASE_TAG ?= $(shell ./_assets/scripts/version.sh)
|
||||
RELEASE_DIR ?= /tmp/release-$(RELEASE_TAG)
|
||||
GOLANGCI_BINARY = golangci-lint
|
||||
IPFS_GATEWAY_URL ?= https://ipfs.status.im/
|
||||
|
||||
|
@ -54,9 +54,9 @@ endif
|
|||
CGO_CFLAGS = -I/$(JAVA_HOME)/include -I/$(JAVA_HOME)/include/darwin
|
||||
export GOPATH ?= $(HOME)/go
|
||||
|
||||
GIT_ROOT := $(dir $(realpath $(lastword $(MAKEFILE_LIST))))
|
||||
GIT_COMMIT := $(shell git rev-parse --short HEAD)
|
||||
GIT_AUTHOR := $(shell git config user.email || echo $$USER)
|
||||
GIT_ROOT ?= $(dir $(realpath $(lastword $(MAKEFILE_LIST))))
|
||||
GIT_COMMIT ?= $(shell git rev-parse --short HEAD)
|
||||
GIT_AUTHOR ?= $(shell git config user.email || echo $$USER)
|
||||
|
||||
ENABLE_METRICS ?= true
|
||||
BUILD_TAGS ?= gowaku_no_rln
|
||||
|
|
Loading…
Reference in New Issue