diff options
author | Peter Xu <peterx@redhat.com> | 2016-03-10 14:37:33 +0800 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2016-03-10 17:17:21 -0500 |
commit | 77bdcb9b291e6842de79b1d421aacff74283ba02 (patch) | |
tree | 206b9f616121b0f5c52aa8a814471c3e1b6e0b7d | |
parent | 4a49c45559bdd144a775da40446a20f16fc19ba0 (diff) | |
download | trace-cmd-77bdcb9b291e6842de79b1d421aacff74283ba02.tar.gz |
trace-cmd: Install trace-cmd.bash when installing
Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -68,6 +68,8 @@ endif HELP_DIR = -DHELP_DIR=$(html_install) HELP_DIR_SQ = '$(subst ','\'',$(HELP_DIR))' +BASH_COMPLETE_DIR ?= /etc/bash_completion.d + # copy a bit from Linux kbuild ifeq ("$(origin V)", "command line") @@ -562,7 +564,10 @@ $(PYTHON_PY_PLUGINS): %.install : %.py force install_python: $(PYTHON_SO_INSTALL) $(PYTHON_PY_PROGS) $(PYTHON_PY_LIBS) $(PYTHON_PY_PLUGINS) -install_cmd: all_cmd install_plugins install_python +install_bash_completion: force + $(Q)$(call do_install_data,trace-cmd.bash,$(BASH_COMPLETE_DIR)) + +install_cmd: all_cmd install_plugins install_python install_bash_completion $(Q)$(call do_install,trace-cmd,$(bindir_SQ)) install: install_cmd |