blob: 3e698d787af082e7e673d2dc25d289ca77a4634b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--- ./Makefile.orig
+++ ./Makefile
@@ -6,7 +6,11 @@
STYLESHEETS := $(wildcard public/less/index.less public/less/_*.less)
JAVASCRIPTS :=
-LDFLAGS += -X "main.Version=$(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')"
+ifeq ($(origin VERSION), undefined)
+ VERSION=$(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')
+endif
+
+LDFLAGS += -X "main.Version=$(VERSION)"
TARGETS ?= linux/*,darwin/*,windows/*
PACKAGES ?= $(shell go list ./... | grep -v /vendor/)
|