diff --git a/GNUmakefile b/GNUmakefile index 6a03de3d..33188039 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -18,8 +18,9 @@ SRCS = $(shell git ls-files '*.go') PKGS = $(shell go list ./...) VERSION := $(shell git describe --tags --abbrev=0) REVISION := $(shell git rev-parse --short HEAD) +BUILDTIME := $(shell date "+%Y%m%d_%H%M%S") LDFLAGS := -X 'github.com/future-architect/vuls/config.Version=$(VERSION)' \ - -X 'github.com/future-architect/vuls/config.Revision=$(REVISION)' + -X 'github.com/future-architect/vuls/config.Revision=$(BUILDTIME)_$(REVISION)' all: dep build