11 lines
272 B
Makefile
11 lines
272 B
Makefile
GO = go
|
|
GOFLAGS = -v -buildvcs=false -buildmode=exe -ldflags='-w -X "`${GO} list`.Version=${VERSION}" -X "`${GO} list`.Revision=${REVISION}"'
|
|
|
|
VERSION ?= `git describe --tags`
|
|
REVISION ?= `git rev-list --all | wc -l`
|
|
|
|
build:
|
|
@${GO} build ${GOFLAGS}
|
|
clean:
|
|
@rm -f mikuru
|