smithy

ref: f82c45db04d39acc9d02c0591438e17c858a38e5

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