Mercurial > yakumo_izuru > aya
view Makefile @ 73:8533d875a2bb draft
The World (XXI)
* Replace all iterations of log.* with fmt.* and os.Exit()
* Use proper Go versioning
Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>
author | yakumo.izuru |
---|---|
date | Tue, 21 Nov 2023 11:44:14 +0000 |
parents | 4edfa07d5fe0 |
children | d8727551f403 |
line wrap: on
line source
CGO = 0 DESTDIR ?= GOFLAGS ?= -v -ldflags "-w -X `go list`.Version=$(VERSION) -X `go list`.Commit=$(COMMIT)" -mod=vendor -buildmode=exe PREFIX ?= /usr/local VERSION ?= `git describe --abbrev=0 --tags || echo "$VERSION"` COMMIT ?= `git rev-parse --short HEAD || echo "$COMMIT"` build: env CGO_ENABLED=${CGO} go build ${GOFLAGS} ./cmd/aya clean: rm -f aya 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