mirror of
https://gitlab.nic.cz/knot/knot-dns.git
synced 2026-05-28 04:02:31 -04:00
makefile: install bash completion script for keymgr to correct location.
This commit is contained in:
parent
6850fe4524
commit
85ec51fcc2
2 changed files with 7 additions and 3 deletions
|
|
@ -40,6 +40,10 @@ AC_SUBST([libzscanner_VERSION_INFO],["-version-info 0:1:0"])
|
|||
release_date=$(sed -n 's/^Knot DNS .* (\(.*\))/\1/p;q;' ${srcdir}/NEWS)
|
||||
AC_SUBST([RELEASE_DATE], $release_date)
|
||||
|
||||
# Get Bash completion scripts directory
|
||||
bash_completion_dir=$(pkg-config --variable=completionsdir bash-completion)
|
||||
AC_SUBST([BASH_COMPLETION_DIR], $bash_completion_dir)
|
||||
|
||||
# Set compiler compatibility flags
|
||||
AC_PROG_CC_C99
|
||||
AM_PROG_CC_C_O
|
||||
|
|
|
|||
|
|
@ -24,9 +24,9 @@ install-data-local: knot.sample.conf
|
|||
$(INSTALL) -d $(DESTDIR)/$(config_dir); \
|
||||
$(INSTALL_DATA) knot.sample.conf $(srcdir)/example.com.zone $(DESTDIR)/$(config_dir); \
|
||||
fi
|
||||
if [ \! -f $(DESTDIR)/$(sysconfdir)/bash_completion.d/keymgr ]; then \
|
||||
$(INSTALL) -d $(DESTDIR)/$(sysconfdir)/bash_completion.d; \
|
||||
$(INSTALL_DATA) $(srcdir)/keymgr-completion.sh $(DESTDIR)/$(sysconfdir)/bash_completion.d/keymgr; \
|
||||
if [ \! -f $(BASH_COMPLETION_DIR)/keymgr ]; then \
|
||||
$(INSTALL) -d $(BASH_COMPLETION_DIR); \
|
||||
$(INSTALL_DATA) $(srcdir)/keymgr-completion.sh $(BASH_COMPLETION_DIR)/keymgr; \
|
||||
fi
|
||||
|
||||
uninstall-local:
|
||||
|
|
|
|||
Loading…
Reference in a new issue