2 GOFLAGS ?
= -v
-ldflags "-w -X `go list`.Version=$(VERSION) -X `go list`.Commit=$(COMMIT)" -tags "static_build" -mod
=vendor
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