source: code/trunk/Makefile@ 84

Last change on this file since 84 was 80, checked in by Izuru Yakumo, 18 months ago

A good time to finally release a stable version

Signed-off-by: Izuru Yakumo <yakumo.izuru@…>

File size: 591 bytes
RevLine 
[67]1DESTDIR ?=
[80]2GOFLAGS ?= -v -buildvcs=false -mod=vendor -buildmode=exe -ldflags "-w -X `go list`.Date=${DATE} -X `go list`.Vendor=${GOOS} -X `go list`.Version=${VERSION}"
[67]3PREFIX ?= /usr/local
[80]4DATE ?= `date -u +%F`
5GOOS ?= `go env GOOS`
[75]6VERSION ?= `git describe --tags`
[55]7
8build:
[75]9 go build ${GOFLAGS} ./cmd/aya
[55]10clean:
[56]11 rm -f aya
[75]12dist:
13 git archive --format=tar.gz --output=aya-${VERSION}.tar.gz HEAD
[55]14install:
[67]15 install -Dm0755 aya ${DESTDIR}${PREFIX}/bin/aya
16 install -Dm0644 aya.1 ${DESTDIR}${PREFIX}/share/man/man1/aya.1
[55]17uninstall:
[67]18 rm -f ${PREFIX}/bin/aya
19 rm -f ${PREFIX}/share/man/man1/aya.1
Note: See TracBrowser for help on using the repository browser.