Separate the build<FORMAT> functions into their own source files
[aya.git] / Makefile
blobedecdb80f7587e1beff187e200f97c784e539d03
1 DESTDIR ?=
2 GOFLAGS ?= -v -buildvcs=false -mod=vendor -buildmode=exe
3 PREFIX ?= /usr/local
4 VERSION ?= `git describe --tags`
6 build:
7 go build ${GOFLAGS} ./cmd/aya
8 clean:
9 rm -f aya
10 dist:
11 git archive --format=tar.gz --output=aya-${VERSION}.tar.gz HEAD
12 install:
13 install -Dm0755 aya ${DESTDIR}${PREFIX}/bin/aya
14 install -Dm0644 aya.1 ${DESTDIR}${PREFIX}/share/man/man1/aya.1
15 uninstall:
16 rm -f ${PREFIX}/bin/aya
17 rm -f ${PREFIX}/share/man/man1/aya.1