aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authortechknowlogick <matti@mdranta.net>2019-03-18 22:29:07 -0400
committerGitHub <noreply@github.com>2019-03-18 22:29:07 -0400
commitd10a668ffc4ed2a81a8a62ee78f0885ede713ddd (patch)
tree39c21a8660f5a01e50c873187a1ae893701bc268 /Makefile
parent0b94f106f88a5cfa4a8eacb4b56e3b6be7d4b58f (diff)
downloadgitea-d10a668ffc4ed2a81a8a62ee78f0885ede713ddd.tar.gz
gitea-d10a668ffc4ed2a81a8a62ee78f0885ede713ddd.zip
Make the version within makefile overwriteable (#6080)
Fix #1173
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index bd599b791d..23da149d76 100644
--- a/Makefile
+++ b/Makefile
@@ -25,14 +25,14 @@ EXTRA_GOFLAGS ?=
ifneq ($(DRONE_TAG),)
VERSION ?= $(subst v,,$(DRONE_TAG))
- GITEA_VERSION := $(VERSION)
+ GITEA_VERSION ?= $(VERSION)
else
ifneq ($(DRONE_BRANCH),)
VERSION ?= $(subst release/v,,$(DRONE_BRANCH))
else
VERSION ?= master
endif
- GITEA_VERSION := $(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')
+ GITEA_VERSION ?= $(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')
endif
LDFLAGS := -X "main.Version=$(GITEA_VERSION)" -X "main.Tags=$(TAGS)"