source: code/trunk/Makefile@ 80

Last change on this file since 80 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
Line 
1DESTDIR ?=
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}"
3PREFIX ?= /usr/local
4DATE ?= `date -u +%F`
5GOOS ?= `go env GOOS`
6VERSION ?= `git describe --tags`
7
8build:
9 go build ${GOFLAGS} ./cmd/aya
10clean:
11 rm -f aya
12dist:
13 git archive --format=tar.gz --output=aya-${VERSION}.tar.gz HEAD
14install:
15 install -Dm0755 aya ${DESTDIR}${PREFIX}/bin/aya
16 install -Dm0644 aya.1 ${DESTDIR}${PREFIX}/share/man/man1/aya.1
17uninstall:
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.