|
Last change
on this file since 90 was 90, checked in by Izuru Yakumo, 6 months ago |
|
Ayaya, why did I do that again?
|
|
File size:
661 bytes
|
| Line | |
|---|
| 1 | DESTDIR ?=
|
|---|
| 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}"
|
|---|
| 4 | PREFIX ?= /usr/local
|
|---|
| 5 | DATE ?= `date -u +%F`
|
|---|
| 6 | GOOS ?= `${GO} env GOOS`
|
|---|
| 7 | VERSION ?= 1.0F+${REV}
|
|---|
| 8 | REV ?= `svn info --show-item revision || git rev-list --all | wc -l`
|
|---|
| 9 | build:
|
|---|
| 10 | ${GO} build ${GOFLAGS} ./cmd/aya
|
|---|
| 11 | clean:
|
|---|
| 12 | rm -f aya
|
|---|
| 13 | dist:
|
|---|
| 14 | git archive --format=tar.gz --output=aya-${VERSION}.tar.gz HEAD
|
|---|
| 15 | install:
|
|---|
| 16 | install -Dm0755 aya ${DESTDIR}${PREFIX}/bin/aya
|
|---|
| 17 | install -Dm0644 aya.1 ${DESTDIR}${PREFIX}/share/man/man1/aya.1
|
|---|
| 18 | uninstall:
|
|---|
| 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.