smithy

ref: 5f54845356f347be8eb86d4542f251d6db2eb79a

./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/...