Use vendored modules
[aya.git] / Makefile
blobeca8e8b14c0aabeb98e68e90fc40c0d6cb3ae327
1 DESTDIR ?=
2 GOFLAGS ?= -v -ldflags "-w -X `go list`.Version=$(VERSION) -X `go list`.Commit=$(COMMIT)" -tags "static_build" -mod=vendor
3 PREFIX ?= /usr/local
4 VERSION ?= `git describe --abbrev=0 --tags || echo "$VERSION"`
5 COMMIT ?= `git rev-parse --short HEAD || echo "$COMMIT"`
8 build:
9 go build ${GOFLAGS} ./cmd/aya
10 clean:
11 rm -f aya
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