* 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> git-svn-id: file:///srv/svn/repo/aya/trunk@75 cec141ff-132a-4243-88a5-ce187bd62f94
18 lines
447 B
Makefile
18 lines
447 B
Makefile
DESTDIR ?=
|
|
GOFLAGS ?= -v -buildvcs=false -mod=vendor -buildmode=exe
|
|
PREFIX ?= /usr/local
|
|
VERSION ?= `git describe --tags`
|
|
|
|
build:
|
|
go build ${GOFLAGS} ./cmd/aya
|
|
clean:
|
|
rm -f aya
|
|
dist:
|
|
git archive --format=tar.gz --output=aya-${VERSION}.tar.gz HEAD
|
|
install:
|
|
install -Dm0755 aya ${DESTDIR}${PREFIX}/bin/aya
|
|
install -Dm0644 aya.1 ${DESTDIR}${PREFIX}/share/man/man1/aya.1
|
|
uninstall:
|
|
rm -f ${PREFIX}/bin/aya
|
|
rm -f ${PREFIX}/share/man/man1/aya.1
|