set version from makefile
This commit is contained in:
parent
564f12f4c7
commit
91a87f065e
@ -7,8 +7,8 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
var (
|
||||||
SERVER_VERSION = "archive/3.0"
|
SERVER_VERSION = "archive/0.0.0"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ArchiveServer struct {
|
type ArchiveServer struct {
|
||||||
|
2
Makefile
2
Makefile
@ -9,7 +9,7 @@ SOURCES:=Makefile \
|
|||||||
cmd $(wildcard cmd/archive-server/*.go) \
|
cmd $(wildcard cmd/archive-server/*.go) \
|
||||||
$(wildcard *.go)
|
$(wildcard *.go)
|
||||||
|
|
||||||
GOFLAGS := -ldflags='-s -w' -gcflags='-trimpath=$(GOPATH)' -asmflags='-trimpath=$(GOPATH)'
|
GOFLAGS := -ldflags='-s -w -X archive.SERVER_VERSION="archive/${VERSION}"' -gcflags='-trimpath=$(GOPATH)' -asmflags='-trimpath=$(GOPATH)'
|
||||||
|
|
||||||
#
|
#
|
||||||
# Phony targets
|
# Phony targets
|
||||||
|
Loading…
Reference in New Issue
Block a user