source: code/trunk/Makefile@ 90

Last change on this file since 90 was 90, checked in by Izuru Yakumo, 5 weeks ago

Ayaya, why did I do that again?

File size: 661 bytes
Line 
1DESTDIR ?=
2GO ?= go
3GOFLAGS ?= -v -buildvcs=false -buildmode=exe -ldflags "-w -X `${GO} list`.Date=${DATE} -X `${GO} list`.Vendor=${GOOS} -X `${GO} list`.Version=${VERSION}"
4PREFIX ?= /usr/local
5DATE ?= `date -u +%F`
6GOOS ?= `${GO} env GOOS`
7VERSION ?= 1.0F+${REV}
8REV ?= `svn info --show-item revision || git rev-list --all | wc -l`
9build:
10 ${GO} build ${GOFLAGS} ./cmd/aya
11clean:
12 rm -f aya
13dist:
14 git archive --format=tar.gz --output=aya-${VERSION}.tar.gz HEAD
15install:
16 install -Dm0755 aya ${DESTDIR}${PREFIX}/bin/aya
17 install -Dm0644 aya.1 ${DESTDIR}${PREFIX}/share/man/man1/aya.1
18uninstall:
19 rm -f ${PREFIX}/bin/aya
20 rm -f ${PREFIX}/share/man/man1/aya.1
Note: See TracBrowser for help on using the repository browser.