Skip to content

Commit 2bfb8ee

Browse files
committed
Include fish completions in make install
1 parent 16afdf7 commit 2bfb8ee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ HOOKSDIR ?= $(PREFIX)/share/aurpublish
44
ZCOMPDIR ?= $(PREFIX)/share/zsh/site-functions
55
MANS = doc/aurpublish.1
66
BASHCOMPDIR ?= $(shell pkg-config bash-completion --variable=completionsdir || echo '/usr/share/bash-completion/completions')
7+
FISHCOMPDIR ?= $(PREFIX)/share/fish/vendor_completions.d
78

89
edit = sed -e 's|@HOOKSDIR@|$(HOOKSDIR)|g'
910

@@ -26,8 +27,10 @@ install: all
2627
install -m755 *.hook '$(DESTDIR)$(HOOKSDIR)/'
2728
install -dm755 '$(DESTDIR)$(ZCOMPDIR)'
2829
install -dm755 '$(DESTDIR)$(BASHCOMPDIR)'
30+
install -dm755 '$(DESTDIR)$(FISHCOMPDIR)'
2931
install -m644 completion/$(NAME).zsh '$(DESTDIR)$(ZCOMPDIR)/_$(NAME)'
3032
install -m644 completion/$(NAME).bash '$(DESTDIR)$(BASHCOMPDIR)/$(NAME)'
33+
install -m644 completion/$(NAME).fish '$(DESTDIR)$(FISHCOMPDIR)/$(NAME).fish'
3134
for manfile in $(MANS); do \
3235
install -Dm644 $$manfile -t $(DESTDIR)$(PREFIX)/share/man/man$${manfile##*.}; \
3336
done

0 commit comments

Comments
 (0)