Initial implementation.

This commit is contained in:
2020-07-31 13:12:54 +02:00
commit b2267537c5
3 changed files with 133 additions and 0 deletions

12
Makefile Normal file
View File

@ -0,0 +1,12 @@
BUILD_HASH := $(shell git describe --always --tags --long)
LDFLAGS := "-X main.version=${BUILD_HASH} -s -w"
.PHONY: install
install:
go fmt ./...
go install -ldflags ${LDFLAGS} ./...
.PHONY: build
build:
go fmt ./...
go build -ldflags ${LDFLAGS} ./...