2022-07-26 00:32:31 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# BSD/POSIX makefile
|
2022-07-03 20:50:58 +00:00
|
|
|
|
2022-07-26 00:32:31 +00:00
|
|
|
include template.mk
|
2022-07-03 20:50:58 +00:00
|
|
|
|
2022-09-04 23:28:47 +00:00
|
|
|
EXE := $(PROG)
|
2022-07-03 20:50:58 +00:00
|
|
|
|
2022-09-04 23:28:47 +00:00
|
|
|
## install: installs awl
|
|
|
|
.PHONY: install
|
2022-07-26 00:32:31 +00:00
|
|
|
install: all
|
2022-10-14 12:47:44 +00:00
|
|
|
install -Dm755 $(PROG) $(DESTDIR)$(PREFIX)/$(BIN)/$(PROG)
|
2024-03-23 21:05:57 +00:00
|
|
|
install -Dm644 docs/$(PROG).1 $(DESTDIR)$(MAN)/man1/$(PROG).1
|
2022-09-04 23:28:47 +00:00
|
|
|
# completions need to go in one specific place :)
|
2022-10-14 12:47:44 +00:00
|
|
|
install -Dm644 completions/bash.bash $(DESTDIR)$(PREFIX)$(SHARE)/bash-completion/completions/$(PROG)
|
|
|
|
install -Dm644 completions/fish.fish $(DESTDIR)$(PREFIX)$(SHARE)/fish/vendor_completions.d/$(PROG).fish
|
|
|
|
install -Dm644 completions/zsh.zsh $(DESTDIR)$(PREFIX)$(SHARE)/zsh/site-functions/_$(PROG)
|