source: code/trunk/Makefile

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