view Makefile @ 55:c6785950280e draft

The fastest, period. Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>
author yakumo.izuru
date Sun, 09 Apr 2023 02:39:19 +0000
parents 4d411cdd68c1
children 315dee06253e
line wrap: on
line source

destdir ?= 
goflags ?= -v -ldflags "-w -X `go list`.Version=$(version) -X `go list`.Commit=$(commit)" -tags "static_build"
prefix ?= /usr/local
version ?= `git rev-list --count HEAD || echo "$version"`
commit ?= `git rev-parse --short HEAD || echo "$commit"`


build:
	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