lure/Makefile

20 lines
556 B
Makefile
Raw Normal View History

PREFIX ?= /usr/local
2023-09-21 23:18:18 +00:00
GIT_VERSION = $(shell git describe --tags )
2023-09-21 23:18:18 +00:00
lure:
2023-10-06 22:14:42 +00:00
CGO_ENABLED=0 go build -ldflags="-X 'go.elara.ws/lure/internal/config.Version=$(GIT_VERSION)'"
2022-09-29 00:10:01 +00:00
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
2022-09-29 00:10:01 +00:00
uninstall:
rm -f /usr/local/bin/lure
2023-09-21 23:18:18 +00:00
.PHONY: install clean uninstall installmisc lure