source: code/trunk/Makefile@ 3

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