|
Last change
on this file since 88 was 87, checked in by Izuru Yakumo, 19 months ago |
|
Add support for disabling features at build time
Signed-off-by: Izuru Yakumo <yakumo.izuru@…>
|
|
File size:
590 bytes
|
| Line | |
|---|
| 1 | DESTDIR ?=
|
|---|
| 2 | GOFLAGS ?= -v -buildvcs=false -mod=vendor -buildmode=exe -ldflags "-w -X `go list`.Date=${DATE} -X `go list`.Vendor=${GOOS} -X `go list`.Version=${VERSION}"
|
|---|
| 3 | PREFIX ?= /usr/local
|
|---|
| 4 | DATE ?= `date -u +%F`
|
|---|
| 5 | GOOS ?= `go env GOOS`
|
|---|
| 6 | VERSION ?= `git describe --tags`
|
|---|
| 7 | build:
|
|---|
| 8 | go build ${GOFLAGS} ./cmd/aya
|
|---|
| 9 | clean:
|
|---|
| 10 | rm -f aya
|
|---|
| 11 | dist:
|
|---|
| 12 | git archive --format=tar.gz --output=aya-${VERSION}.tar.gz HEAD
|
|---|
| 13 | install:
|
|---|
| 14 | install -Dm0755 aya ${DESTDIR}${PREFIX}/bin/aya
|
|---|
| 15 | install -Dm0644 aya.1 ${DESTDIR}${PREFIX}/share/man/man1/aya.1
|
|---|
| 16 | uninstall:
|
|---|
| 17 | rm -f ${PREFIX}/bin/aya
|
|---|
| 18 | rm -f ${PREFIX}/share/man/man1/aya.1
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.