Skip to content

Commit d0ad792

Browse files
tboergerlunny
authored andcommitted
Enforce custom LDFLAGS within makefile (#684)
1 parent 8c2c7b8 commit d0ad792

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ BINDATA := modules/{options,public,templates}/bindata.go
1111
STYLESHEETS := $(wildcard public/less/index.less public/less/_*.less)
1212
JAVASCRIPTS :=
1313

14-
LDFLAGS += -X "main.Version=$(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')"
14+
LDFLAGS ?= -X "main.Version=$(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')"
1515

1616
TARGETS ?= linux/*,darwin/*,windows/*
1717
PACKAGES ?= $(shell go list ./... | grep -v /vendor/)

0 commit comments

Comments
 (0)