add basic makefile

This commit is contained in:
Mike Bloy 2019-08-25 09:21:10 -05:00
parent 136d2fde51
commit 33e2e45346

16
Makefile Normal file
View File

@ -0,0 +1,16 @@
BIN_NAME=gotest
PACKAGE_NAME=git.bloy.org/mike/gotest
GIT_DESCRIBE=$(shell git describe --always --long --dirty)
default: all
all: test build
build:
go build -ldflags "-X ${PACKAGE_NAME}/version.gitDescribe=${GIT_DESCRIBE}"
test:
go test ./...
clean:
go clean