add basic makefile
This commit is contained in:
parent
136d2fde51
commit
33e2e45346
16
Makefile
Normal file
16
Makefile
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user