source: code/trunk/Makefile@ 77

Last change on this file since 77 was 75, checked in by Izuru Yakumo, 18 months ago

The Empress (III)

  • Change the way how versions are handled in version.go (to ease `go install`)
  • Upgrade yaml.v2 to yaml.v3

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

File size: 447 bytes
RevLine 
[67]1DESTDIR ?=
[75]2GOFLAGS ?= -v -buildvcs=false -mod=vendor -buildmode=exe
[67]3PREFIX ?= /usr/local
[75]4VERSION ?= `git describe --tags`
[55]5
6build:
[75]7 go build ${GOFLAGS} ./cmd/aya
[55]8clean:
[56]9 rm -f aya
[75]10dist:
11 git archive --format=tar.gz --output=aya-${VERSION}.tar.gz HEAD
[55]12install:
[67]13 install -Dm0755 aya ${DESTDIR}${PREFIX}/bin/aya
14 install -Dm0644 aya.1 ${DESTDIR}${PREFIX}/share/man/man1/aya.1
[55]15uninstall:
[67]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.