view Makefile @ 57:9e556e91fbf6 draft

Use absolute paths for running extensions found in .aya Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>
author yakumo.izuru
date Thu, 13 Apr 2023 23:37:34 +0000
parents 315dee06253e
children 787b5ee0289d
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 describe --abbrev=0 --tags || 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