smithy

ref: 5997e10eade2d7461f217ea752c0a136713c84f0

./Makefile


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
BUILD_VERSION ?= $(shell git describe --always --abbrev=40 --dirty)

LDFLAGS="-X github.com/honza/smithy/cmd.SmithyVersion=${BUILD_VERSION}"

all:
	statik -src=include -dest=pkg -f -m
	CGO_ENABLED=0 go build -ldflags $(LDFLAGS) -o smithy main.go

gofmt:
	go fmt ./pkg/... ./cmd/...