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
12
Makefile
12
Makefile
|
@ -29,9 +29,9 @@ help: SHELL := /bin/sh
|
||||||
help: ##@other Show this help
|
help: ##@other Show this help
|
||||||
@perl -e '$(HELP_FUN)' $(MAKEFILE_LIST)
|
@perl -e '$(HELP_FUN)' $(MAKEFILE_LIST)
|
||||||
|
|
||||||
RELEASE_TAG:=$(shell ./_assets/scripts/version.sh)
|
RELEASE_TAG ?= $(shell ./_assets/scripts/version.sh)
|
||||||
RELEASE_DIR := /tmp/release-$(RELEASE_TAG)
|
RELEASE_DIR ?= /tmp/release-$(RELEASE_TAG)
|
||||||
GOLANGCI_BINARY=golangci-lint
|
GOLANGCI_BINARY = golangci-lint
|
||||||
IPFS_GATEWAY_URL ?= https://ipfs.status.im/
|
IPFS_GATEWAY_URL ?= https://ipfs.status.im/
|
||||||
|
|
||||||
ifeq ($(OS),Windows_NT) # is Windows_NT on XP, 2000, 7, Vista, 10...
|
ifeq ($(OS),Windows_NT) # is Windows_NT on XP, 2000, 7, Vista, 10...
|
||||||
|
@ -54,9 +54,9 @@ endif
|
||||||
CGO_CFLAGS = -I/$(JAVA_HOME)/include -I/$(JAVA_HOME)/include/darwin
|
CGO_CFLAGS = -I/$(JAVA_HOME)/include -I/$(JAVA_HOME)/include/darwin
|
||||||
export GOPATH ?= $(HOME)/go
|
export GOPATH ?= $(HOME)/go
|
||||||
|
|
||||||
GIT_ROOT := $(dir $(realpath $(lastword $(MAKEFILE_LIST))))
|
GIT_ROOT ?= $(dir $(realpath $(lastword $(MAKEFILE_LIST))))
|
||||||
GIT_COMMIT := $(shell git rev-parse --short HEAD)
|
GIT_COMMIT ?= $(shell git rev-parse --short HEAD)
|
||||||
GIT_AUTHOR := $(shell git config user.email || echo $$USER)
|
GIT_AUTHOR ?= $(shell git config user.email || echo $$USER)
|
||||||
|
|
||||||
ENABLE_METRICS ?= true
|
ENABLE_METRICS ?= true
|
||||||
BUILD_TAGS ?= gowaku_no_rln
|
BUILD_TAGS ?= gowaku_no_rln
|
||||||
|
|
Loading…
Reference in New Issue