cli: Install bash autocomplete during 'make install'
This commit is contained in:
committed by
Anton Mitrofanov
parent
2e3caed26d
commit
a41d4e2944
@@ -388,6 +388,10 @@ distclean: clean
|
||||
install-cli: cli
|
||||
$(INSTALL) -d $(DESTDIR)$(bindir)
|
||||
$(INSTALL) x264$(EXE) $(DESTDIR)$(bindir)
|
||||
ifneq ($(BASHCOMPLETIONSDIR),)
|
||||
$(INSTALL) -d $(DESTDIR)$(BASHCOMPLETIONSDIR)
|
||||
$(INSTALL) -m 644 -T $(SRCPATH)/tools/bash-autocomplete.sh $(DESTDIR)$(BASHCOMPLETIONSDIR)/x264
|
||||
endif
|
||||
|
||||
install-lib-dev:
|
||||
$(INSTALL) -d $(DESTDIR)$(includedir) $(DESTDIR)$(libdir)/pkgconfig
|
||||
@@ -418,6 +422,9 @@ ifneq ($(IMPLIBNAME),)
|
||||
else ifneq ($(SONAME),)
|
||||
rm -f $(DESTDIR)$(libdir)/$(SONAME) $(DESTDIR)$(libdir)/libx264.$(SOSUFFIX)
|
||||
endif
|
||||
ifneq ($(BASHCOMPLETIONSDIR),)
|
||||
rm -f $(DESTDIR)$(BASHCOMPLETIONSDIR)/x264
|
||||
endif
|
||||
|
||||
etags TAGS:
|
||||
etags $(SRCS) $(SRCS_X) $(SRCS_8)
|
||||
|
||||
@@ -1528,6 +1528,9 @@ fi
|
||||
if [ "$cli" = "yes" ]; then
|
||||
echo 'default: cli' >> config.mak
|
||||
echo 'install: install-cli' >> config.mak
|
||||
if pkg_check bash-completion ; then
|
||||
echo "BASHCOMPLETIONSDIR=$($PKGCONFIG --variable=completionsdir bash-completion)" >> config.mak
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$shared" = "yes" ]; then
|
||||
|
||||
Reference in New Issue
Block a user