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