source: code/trunk/Makefile@ 2

Last change on this file since 2 was 2, checked in by Izuru Yakumo, 2 years ago

Power levels keep increasing widly -- to be expected

Signed-off-by: Izuru Yakumo <yakumo.izuru@…>

File size: 508 bytes
Line 
1PREFIX ?= /usr/local
2GOFLAGS ?= -v -ldflags "-w -X `go list`.Version=${VERSION} -X `go list`.Commit=${COMMIT} -X `go list`.Build=${BUILD}" -tags "static_build"
3
4VERSION ?= `git describe --abbrev=0 --tags || echo $VERSION`
5COMMIT ?= `git rev-parse --short HEAD || echo $COMMIT`
6BUILD ?= `git show -s --pretty=format:%cI`
7
8all: yuuka
9
10yuuka:
11 go build ${GOFLAGS}
12 strip -s yuuka
13clean:
14 rm -f yuuka
15install:
16 install -Dm0755 yuuka ${DESTDIR}${PREFIX}/bin/yuuka
17uninstall:
18 rm -f ${DESTDIR}${PREFIX}/bin/yuuka
19
Note: See TracBrowser for help on using the repository browser.