0
0
Fork 0
mirror of https://gitea.plemya-x.ru/Plemya-x/ALR.git synced 2025-01-10 17:26:45 +00:00
ALR/Makefile
Евгений Храмов d427b37e23 alr изменения
2024-05-05 13:32:08 +03:00

20 lines
No EOL
546 B
Makefile

PREFIX ?= /usr/local
GIT_VERSION = $(shell git describe --tags )
alr:
CGO_ENABLED=0 go build -ldflags="-X 'go.elara.ws/alr/internal/config.Version=$(GIT_VERSION)'"
clean:
rm -f alr
install: alr installmisc
install -Dm755 alr $(DESTDIR)$(PREFIX)/bin/alr
installmisc:
install -Dm755 scripts/completion/bash $(DESTDIR)$(PREFIX)/share/bash-completion/completions/alr
install -Dm755 scripts/completion/zsh $(DESTDIR)$(PREFIX)/share/zsh/site-functions/_alr
uninstall:
rm -f /usr/local/bin/alr
.PHONY: install clean uninstall installmisc alr