summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Boerger <thomas@webhippie.de>2017-01-17 07:02:44 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2017-01-17 14:02:44 +0800
commitd0ad7921f8681a42ed27b1921ee55e16ef7457d2 (patch)
tree193c221fcc62f0c2764775939505133e233e8c4f
parent8c2c7b802fa0d0da660834bcf2ae60887c0bfd4f (diff)
downloadgitea-d0ad7921f8681a42ed27b1921ee55e16ef7457d2.tar.gz
gitea-d0ad7921f8681a42ed27b1921ee55e16ef7457d2.zip
Enforce custom LDFLAGS within makefile (#684)
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f94fd2a5e3..50ca7c7215 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ BINDATA := modules/{options,public,templates}/bindata.go
STYLESHEETS := $(wildcard public/less/index.less public/less/_*.less)
JAVASCRIPTS :=
-LDFLAGS += -X "main.Version=$(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')"
+LDFLAGS ?= -X "main.Version=$(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')"
TARGETS ?= linux/*,darwin/*,windows/*
PACKAGES ?= $(shell go list ./... | grep -v /vendor/)