summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2017-04-28 15:48:24 +0200
committerKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2017-04-28 20:28:38 +0200
commitcebe3a6b2fb91a4dbaa6bac3fe5ff5bccb52d019 (patch)
tree7fcec562769916a3127c63b89233383c94744ca9 /Makefile
parent91d64656a46848f1dceacbdf7f03677cd83d5aa0 (diff)
downloadgitea-cebe3a6b2fb91a4dbaa6bac3fe5ff5bccb52d019.tar.gz
gitea-cebe3a6b2fb91a4dbaa6bac3fe5ff5bccb52d019.zip
Revert "Set VERSION from git once, in a variable (#1447)"
This reverts commit 410af6971b87ac5dc7ac198f538d8383c1f47a1f.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 1 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 93ca44818d..6701178b7f 100644
--- a/Makefile
+++ b/Makefile
@@ -14,9 +14,7 @@ JAVASCRIPTS :=
GOFLAGS := -i -v
EXTRA_GOFLAGS ?=
-VERSION := $(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')
-
-LDFLAGS := -X "main.Version=$(VERSION)" -X "main.Tags=$(TAGS)"
+LDFLAGS := -X "main.Version=$(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')" -X "main.Tags=$(TAGS)"
PACKAGES ?= $(filter-out code.gitea.io/gitea/integrations,$(shell go list ./... | grep -v /vendor/))
SOURCES ?= $(shell find . -name "*.go" -type f)