2 goflags ?
= -v
-ldflags "-w -X `go list`.Version=$(version) -X `go list`.Commit=$(commit)" -tags "static_build"
4 version ?
= `git describe --abbrev=0 --tags || echo "$version"`
5 commit ?
= `git rev-parse --short HEAD || echo "$commit"`
9 go build
${goflags} .
/cmd
/aya
13 install -Dm0755 aya
${destdir}${prefix}/bin
/aya
14 install -Dm0644 aya
.1 ${destdir}${prefix}/share
/man
/man1
/aya
.1
16 rm -f
${prefix}/bin
/aya
17 rm -f
${prefix}/share
/man
/man1
/aya
.1