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
|
Rev | Line | |
---|
[67] | 1 | DESTDIR ?=
|
---|
[89] | 2 | GO ?= go
|
---|
| 3 | GOFLAGS ?= -v -buildvcs=false -buildmode=exe -ldflags "-w -X `${GO} list`.Date=${DATE} -X `${GO} list`.Vendor=${GOOS} -X `${GO} list`.Version=${VERSION}"
|
---|
[67] | 4 | PREFIX ?= /usr/local
|
---|
[80] | 5 | DATE ?= `date -u +%F`
|
---|
[89] | 6 | GOOS ?= `${GO} env GOOS`
|
---|
[90] | 7 | VERSION ?= 1.0F+${REV}
|
---|
| 8 | REV ?= `svn info --show-item revision || git rev-list --all | wc -l`
|
---|
[55] | 9 | build:
|
---|
[89] | 10 | ${GO} build ${GOFLAGS} ./cmd/aya
|
---|
[55] | 11 | clean:
|
---|
[56] | 12 | rm -f aya
|
---|
[75] | 13 | dist:
|
---|
| 14 | git archive --format=tar.gz --output=aya-${VERSION}.tar.gz HEAD
|
---|
[55] | 15 | install:
|
---|
[67] | 16 | install -Dm0755 aya ${DESTDIR}${PREFIX}/bin/aya
|
---|
| 17 | install -Dm0644 aya.1 ${DESTDIR}${PREFIX}/share/man/man1/aya.1
|
---|
[55] | 18 | uninstall:
|
---|
[67] | 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.