2022-12-19 02:27:02 +00:00
|
|
|
PREFIX ?= /usr/local
|
|
|
|
|
2023-01-11 21:03:40 +00:00
|
|
|
lure: internal/config/version.txt
|
2022-09-29 00:10:01 +00:00
|
|
|
go build
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f lure
|
|
|
|
|
2023-01-02 03:17:06 +00:00
|
|
|
install: lure installmisc
|
2022-12-19 02:27:02 +00:00
|
|
|
install -Dm755 lure $(DESTDIR)$(PREFIX)/bin/lure
|
2023-01-02 03:17:06 +00:00
|
|
|
|
|
|
|
installmisc:
|
2022-12-19 02:27:02 +00:00
|
|
|
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
|
2022-11-22 20:51:45 +00:00
|
|
|
|
2023-01-02 04:40:05 +00:00
|
|
|
internal/config/version.txt:
|
|
|
|
go generate ./internal/config
|
2022-09-29 00:10:01 +00:00
|
|
|
|
|
|
|
.PHONY: install clean uninstall
|