destdir ?= goflags ?= -v -ldflags "-w -X `go list`.Version=$(version) -X `go list`.Commit=$(commit)" -tags "static_build" prefix ?= /usr/local version ?= `git describe --abbrev=0 --tags || echo "$version"` commit ?= `git rev-parse --short HEAD || echo "$commit"` build: 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