source: main/trunk/Makefile

Last change on this file was 6bbceb9, checked in by www <www@…>, 8 weeks ago

Mirrored from yuuka.git

git-svn-id: https://svn.chaotic.ninja/svn/yuuka-yakumo.izuru@1 0f3ee07c-c614-0a4d-b2a1-86c95f6ad348

  • Property mode set to 100644
File size: 503 bytes
Line 
1PREFIX ?= /usr/local
2GOFLAGS ?= -v -ldflags "-w -X `go list`.Version=${VERSION} -X `go list`.Commit=${COMMIT} -X `go list`.Build=${BUILD}" -buildmode=exe
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.