|
Last change
on this file since 56 was 56, checked in by Izuru Yakumo, 3 years ago |
|
The fastest, period.
Signed-off-by: Izuru Yakumo <yakumo.izuru@…>
|
|
File size:
513 bytes
|
| Rev | Line | |
|---|
| [55] | 1 | destdir ?=
|
|---|
| [56] | 2 | goflags ?= -v -ldflags "-w -X `go list`.Version=$(version) -X `go list`.Commit=$(commit)" -tags "static_build"
|
|---|
| [55] | 3 | prefix ?= /usr/local
|
|---|
| [56] | 4 | version ?= `git rev-list --count HEAD || echo "$version"`
|
|---|
| 5 | commit ?= `git rev-parse --short HEAD || echo "$commit"`
|
|---|
| [55] | 6 |
|
|---|
| [56] | 7 |
|
|---|
| [55] | 8 | build:
|
|---|
| [56] | 9 | go build ${goflags} ./cmd/aya
|
|---|
| [55] | 10 | clean:
|
|---|
| [56] | 11 | rm -f aya
|
|---|
| [55] | 12 | install:
|
|---|
| [56] | 13 | install -Dm0755 aya ${destdir}${prefix}/bin/aya
|
|---|
| 14 | install -Dm0644 aya.1 ${destdir}${prefix}/share/man/man1/aya.1
|
|---|
| [55] | 15 | uninstall:
|
|---|
| [56] | 16 | rm -f ${prefix}/bin/aya
|
|---|
| 17 | rm -f ${prefix}/share/man/man1/aya.1
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.