CGO = 0 DESTDIR ?= GOFLAGS ?= -v -ldflags "-w -X `go list`.Version=$(VERSION) -X `go list`.Commit=$(COMMIT)" -mod=vendor -buildmode=exe PREFIX ?= /usr/local VERSION ?= `git describe --abbrev=0 --tags || echo "$VERSION"` COMMIT ?= `git rev-parse --short HEAD || echo "$COMMIT"` build: env CGO_ENABLED=${CGO} go build ${GOFLAGS} ./cmd/aya clean: rm -f aya install: install -Dm0755 aya ${DESTDIR}${PREFIX}/bin/aya install -Dm0644 aya.1 ${DESTDIR}${PREFIX}/share/man/man1/aya.1 uninstall: rm -f ${PREFIX}/bin/aya rm -f ${PREFIX}/share/man/man1/aya.1