mirror of
https://gitea.plemya-x.ru/Plemya-x/ALR.git
synced 2025-01-10 17:26:45 +00:00
20 lines
556 B
Makefile
20 lines
556 B
Makefile
|
PREFIX ?= /usr/local
|
||
|
GIT_VERSION = $(shell git describe --tags )
|
||
|
|
||
|
lure:
|
||
|
CGO_ENABLED=0 go build -ldflags="-X 'go.elara.ws/lure/internal/config.Version=$(GIT_VERSION)'"
|
||
|
|
||
|
clean:
|
||
|
rm -f lure
|
||
|
|
||
|
install: lure installmisc
|
||
|
install -Dm755 lure $(DESTDIR)$(PREFIX)/bin/lure
|
||
|
|
||
|
installmisc:
|
||
|
install -Dm755 scripts/completion/bash $(DESTDIR)$(PREFIX)/share/bash-completion/completions/lure
|
||
|
install -Dm755 scripts/completion/zsh $(DESTDIR)$(PREFIX)/share/zsh/site-functions/_lure
|
||
|
|
||
|
uninstall:
|
||
|
rm -f /usr/local/bin/lure
|
||
|
|
||
|
.PHONY: install clean uninstall installmisc lure
|