Also: - Fixed the Makefile - Added a Taskfile.yml (see: https://taskfile.dev) - Updated the manual page Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
11 lines
288 B
Makefile
11 lines
288 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} -o mikuru ./cmd
|
|
clean:
|
|
@rm -f mikuru
|