Makefile 378 B

123456789
  1. VERSION=$(shell git describe --tags | sed 's/^v//' )
  2. BUILD=$(shell date +%FT%T%z)
  3. all:
  4. docker run --rm -v $(PWD):/root/go/src/git.scraperwall.com/scw/munchclient -w /root/go/src/git.scraperwall.com/scw/munchclient centos-build:latest make compile
  5. compile:
  6. env GOOS=linux GOARCH=amd64 go build -tags netgo -ldflags "-s -X main.Version=$(VERSION) -X main.BuildDate=$(BUILD)"