mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 12:23:09 +00:00
fish.pc: add pkgconfig file for fish
Assists other packages in finding the path to install completions: call `pkg-config --variable=completionsdir fish` or so (like bash-completion). As discussed in #1485.
This commit is contained in:
parent
5157ac30fa
commit
ab5b22982f
3 changed files with 13 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -23,6 +23,7 @@ fish
|
|||
fish_indent
|
||||
fish_tests
|
||||
fishd
|
||||
fish.pc
|
||||
mimedb
|
||||
seq
|
||||
set_color
|
||||
|
|
|
@ -212,7 +212,7 @@ endif
|
|||
# Make everything needed for installing fish
|
||||
#
|
||||
|
||||
all: $(PROGRAMS) $(user_doc) $(share_man) $(TRANSLATIONS)
|
||||
all: $(PROGRAMS) $(user_doc) $(share_man) $(TRANSLATIONS) fish.pc
|
||||
@echo fish has now been built.
|
||||
@echo Use \'$(MAKE) install\' to install fish.
|
||||
.PHONY: all
|
||||
|
@ -450,6 +450,7 @@ doc.h: $(HDR_FILES)
|
|||
-e "s,@docdir\@,$(docdir),g" \
|
||||
-e "s|@configure_input\@|$@, generated from $@.in by the Makefile. DO NOT MANUALLY EDIT THIS FILE!|g" \
|
||||
-e "s,@prefix\@,$(prefix),g" \
|
||||
-e "s,@fish_build_version\@,$(FISH_BUILD_VERSION),g" \
|
||||
|
||||
|
||||
#
|
||||
|
@ -631,6 +632,8 @@ install-force: all install-translations
|
|||
$(INSTALL) -m 755 -d $(DESTDIR)$(datadir)/fish/tools/web_config/sample_prompts
|
||||
$(INSTALL) -m 644 etc/config.fish $(DESTDIR)$(sysconfdir)/fish/
|
||||
$(INSTALL) -m 644 share/config.fish $(DESTDIR)$(datadir)/fish/
|
||||
$(INSTALL) -m 755 -d $(DESTDIR)$(datadir)/pkgconfig
|
||||
$(INSTALL) -m 644 fish.pc $(DESTDIR)$(datadir)/pkgconfig
|
||||
for i in $(COMPLETIONS_DIR_FILES:%='%'); do \
|
||||
$(INSTALL) -m 644 $$i $(DESTDIR)$(datadir)/fish/completions/; \
|
||||
true; \
|
||||
|
|
8
fish.pc.in
Normal file
8
fish.pc.in
Normal file
|
@ -0,0 +1,8 @@
|
|||
prefix=@prefix@
|
||||
datadir=@datadir@
|
||||
completionsdir=${datadir}/fish/vendor_completions.d
|
||||
|
||||
Name: fish
|
||||
Description: fish, the friendly interactive shell
|
||||
URL: http://fishshell.com/
|
||||
Version: @fish_build_version@
|
Loading…
Reference in a new issue