annotate Makefile @ 74:d8727551f403
draft
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@chaotic.ninja>
author |
yakumo.izuru |
date |
Mon, 04 Dec 2023 00:54:29 +0000 |
parents |
4edfa07d5fe0 |
children |
7b122b71fcfa |
rev |
line source |
66
|
1 DESTDIR ?=
|
74
|
2 GOFLAGS ?= -v -buildvcs=false -mod=vendor -buildmode=exe
|
66
|
3 PREFIX ?= /usr/local
|
74
|
4 VERSION ?= `git describe --tags`
|
54
|
5
|
|
6 build:
|
74
|
7 go build ${GOFLAGS} ./cmd/aya
|
54
|
8 clean:
|
55
|
9 rm -f aya
|
74
|
10 dist:
|
|
11 git archive --format=tar.gz --output=aya-${VERSION}.tar.gz HEAD
|
54
|
12 install:
|
66
|
13 install -Dm0755 aya ${DESTDIR}${PREFIX}/bin/aya
|
|
14 install -Dm0644 aya.1 ${DESTDIR}${PREFIX}/share/man/man1/aya.1
|
54
|
15 uninstall:
|
66
|
16 rm -f ${PREFIX}/bin/aya
|
|
17 rm -f ${PREFIX}/share/man/man1/aya.1
|