source: code/trunk/Makefile@ 88

Last change on this file since 88 was 87, checked in by Izuru Yakumo, 14 months ago

Add support for disabling features at build time

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

File size: 590 bytes
RevLine 
[67]1DESTDIR ?=
[80]2GOFLAGS ?= -v -buildvcs=false -mod=vendor -buildmode=exe -ldflags "-w -X `go list`.Date=${DATE} -X `go list`.Vendor=${GOOS} -X `go list`.Version=${VERSION}"
[67]3PREFIX ?= /usr/local
[80]4DATE ?= `date -u +%F`
5GOOS ?= `go env GOOS`
[75]6VERSION ?= `git describe --tags`
[55]7build:
[75]8 go build ${GOFLAGS} ./cmd/aya
[55]9clean:
[56]10 rm -f aya
[75]11dist:
12 git archive --format=tar.gz --output=aya-${VERSION}.tar.gz HEAD
[55]13install:
[67]14 install -Dm0755 aya ${DESTDIR}${PREFIX}/bin/aya
15 install -Dm0644 aya.1 ${DESTDIR}${PREFIX}/share/man/man1/aya.1
[55]16uninstall:
[67]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.