source: code/trunk/Makefile@ 78

Last change on this file since 78 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
Line 
1DESTDIR ?=
2GOFLAGS ?= -v -buildvcs=false -mod=vendor -buildmode=exe
3PREFIX ?= /usr/local
4VERSION ?= `git describe --tags`
5
6build:
7 go build ${GOFLAGS} ./cmd/aya
8clean:
9 rm -f aya
10dist:
11 git archive --format=tar.gz --output=aya-${VERSION}.tar.gz HEAD
12install:
13 install -Dm0755 aya ${DESTDIR}${PREFIX}/bin/aya
14 install -Dm0644 aya.1 ${DESTDIR}${PREFIX}/share/man/man1/aya.1
15uninstall:
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.