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