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
|
Line | |
---|
1 | GO ?= go
|
---|
2 | PREFIX ?= /usr/local
|
---|
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}"
|
---|
4 |
|
---|
5 | VENDOR ?= `uname -s`
|
---|
6 | VERSION ?= 0.1.2
|
---|
7 | REV ?= `svn info --show-item revision || git rev-list --all | wc -l`
|
---|
8 |
|
---|
9 | all: yuuka
|
---|
10 |
|
---|
11 | yuuka:
|
---|
12 | ${GO} build ${GOFLAGS}
|
---|
13 | strip -s yuuka
|
---|
14 | clean:
|
---|
15 | rm -f yuuka
|
---|
16 | install:
|
---|
17 | install -Dm0755 yuuka ${DESTDIR}${PREFIX}/bin/yuuka
|
---|
18 | install -Dm0644 yuuka.1 ${DESTDIR}${PREFIX}/man/man1/yuuka.1
|
---|
19 | uninstall:
|
---|
20 | rm -f ${DESTDIR}${PREFIX}/bin/yuuka ${DESTDIR}${PREFIX}/man/man1/yuuka.1
|
---|
Note:
See
TracBrowser
for help on using the repository browser.