awl/Makefile
Sam Therapy e6a3d6040a [SKIP CI] fix: Make makefiles portable
-D isn't supported on MacOS (sample size: 1)

Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-10-13 12:49:15 +00:00

16 lines
618 B
Makefile

# SPDX-License-Identifier: BSD-3-Clause
# BSD/POSIX makefile
include template.mk
EXE := $(PROG)
## install: installs awl
.PHONY: install
install: all
install -m755 $(PROG) $(DESTDIR)$(PREFIX)/$(BIN)/$(PROG)
install -m644 doc/$(PROG).1 $(DESTDIR)$(MAN)/man1/$(PROG).1
# completions need to go in one specific place :)
install -m644 completions/bash.bash $(DESTDIR)$(PREFIX)$(SHARE)/bash-completion/completions/$(PROG)
install -m644 completions/fish.fish $(DESTDIR)$(PREFIX)$(SHARE)/fish/vendor_completions.d/$(PROG).fish
install -m644 completions/zsh.zsh $(DESTDIR)$(PREFIX)$(SHARE)/zsh/site-functions/_$(PROG)