Last change
on this file since 3 was 3, checked in by Izuru Yakumo, 5 weeks ago |
You humans are so full of yourselves. If you want to live a long life, then you should be a little more quiet.
|
File size:
582 bytes
|
Rev | Line | |
---|
[3] | 1 | GO ?= go
|
---|
[2] | 2 | PREFIX ?= /usr/local
|
---|
[3] | 3 | GOFLAGS ?= -v -ldflags "-w -X `${GO} list`.Version=${VERSION} -X `${GO} list`.Commit=${REV} -X `${GO} list`.Date=${DATE} -X `${GO} list`.Vendor=${VENDOR}"
|
---|
[2] | 4 |
|
---|
[3] | 5 | VENDOR ?= `uname -s`
|
---|
| 6 | VERSION ?= 0.1.2
|
---|
| 7 | REV ?= `svn info --show-item revision || git rev-list --all | wc -l`
|
---|
[2] | 8 |
|
---|
| 9 | all: yuuka
|
---|
| 10 |
|
---|
| 11 | yuuka:
|
---|
[3] | 12 | ${GO} build ${GOFLAGS}
|
---|
[2] | 13 | strip -s yuuka
|
---|
| 14 | clean:
|
---|
| 15 | rm -f yuuka
|
---|
| 16 | install:
|
---|
| 17 | install -Dm0755 yuuka ${DESTDIR}${PREFIX}/bin/yuuka
|
---|
[3] | 18 | install -Dm0644 yuuka.1 ${DESTDIR}${PREFIX}/man/man1/yuuka.1
|
---|
[2] | 19 | uninstall:
|
---|
[3] | 20 | rm -f ${DESTDIR}${PREFIX}/bin/yuuka ${DESTDIR}${PREFIX}/man/man1/yuuka.1
|
---|
Note:
See
TracBrowser
for help on using the repository browser.