diff options
author | Thomas Boerger <thomas@webhippie.de> | 2017-01-17 07:02:44 +0100 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-01-17 14:02:44 +0800 |
commit | d0ad7921f8681a42ed27b1921ee55e16ef7457d2 (patch) | |
tree | 193c221fcc62f0c2764775939505133e233e8c4f /Makefile | |
parent | 8c2c7b802fa0d0da660834bcf2ae60887c0bfd4f (diff) | |
download | gitea-d0ad7921f8681a42ed27b1921ee55e16ef7457d2.tar.gz gitea-d0ad7921f8681a42ed27b1921ee55e16ef7457d2.zip |
Enforce custom LDFLAGS within makefile (#684)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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/) |