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> git-svn-id: file:///srv/svn/repo/aya/trunk@75 cec141ff-132a-4243-88a5-ce187bd62f94
This commit is contained in:
11
Makefile
11
Makefile
@@ -1,15 +1,14 @@
|
||||
CGO = 0
|
||||
DESTDIR ?=
|
||||
GOFLAGS ?= -v -ldflags "-w -X `go list`.Version=$(VERSION) -X `go list`.Commit=$(COMMIT)" -mod=vendor -buildmode=exe
|
||||
GOFLAGS ?= -v -buildvcs=false -mod=vendor -buildmode=exe
|
||||
PREFIX ?= /usr/local
|
||||
VERSION ?= `git describe --abbrev=0 --tags || echo "$VERSION"`
|
||||
COMMIT ?= `git rev-parse --short HEAD || echo "$COMMIT"`
|
||||
|
||||
VERSION ?= `git describe --tags`
|
||||
|
||||
build:
|
||||
env CGO_ENABLED=${CGO} go build ${GOFLAGS} ./cmd/aya
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user