提交 625ce231 编写于 作者: K Kevin Ballard

Use pkg-config for FISHDIR/BASHDIR

It looks like zsh doesn't have a pkg-config file so we can't use it for
ZSHDIR.

Fixes #179.
上级 1537759c
DESTDIR =
PREFIX = /usr/local
BASHDIR = $(PREFIX)/etc/bash_completion.d
override define compdir
ifndef $(1)
$(1) := $$(or $$(shell pkg-config --variable=completionsdir $(2) 2>/dev/null),$(3))
endif
endef
$(eval $(call compdir,BASHDIR,bash-completion,$(PREFIX)/etc/bash_completion.d))
ZSHDIR = /usr/share/zsh/vendor-completions
FISHDIR = $(PREFIX)/share/fish/vendor_completions.d
$(eval $(call compdir,FISHDIR,fish,$(PREFIX)/share/fish/vendor_completions.d))
FEATURES ?= default
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册