Makefile 179 B

123456
  1. VERSION=$(shell git describe --tags | sed 's/^v//' )
  2. BUILD=$(shell date +%FT%T%z)
  3. all:
  4. go build -tags netgo -ldflags "-s -X main.Version=$(VERSION) -X main.BuildDate=$(BUILD)"