Commit 18b2f6bc authored by Janos Guljas's avatar Janos Guljas

do not set empty commit value with ldflags in Makefile

parent f4f9cb40
COMMIT ?= ""
GO ?= go
GOLANGCI_LINT ?= golangci-lint
LDFLAGS ?= -s -w -X github.com/ethersphere/bee.commit="$(COMMIT)"
LDFLAGS ?= -s -w
ifdef COMMIT
LDFLAGS += -X github.com/ethersphere/bee.commit="$(COMMIT)"
endif
.PHONY: all
all: build lint vet test binary
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment