From: Keith Busch Date: Tue, 26 Jul 2016 21:37:26 +0000 (-0600) Subject: Fix install bash completions X-Git-Tag: v0.9~20 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=4d5fc347badf9b0d4fa9d00131c12e683334b5fd;p=users%2Fsagi%2Fnvme-cli.git Fix install bash completions The install didn't match the rpm spec. This patch changes the install directory to match systems that build rpms. Signed-off-by: Keith Busch --- diff --git a/Makefile b/Makefile index 394bd320..dbcce3e2 100644 --- a/Makefile +++ b/Makefile @@ -63,8 +63,8 @@ install-bin: default $(INSTALL) -m 755 nvme $(DESTDIR)$(SBINDIR) install-bash-completion: - $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/bash-completion/completions - $(INSTALL) -m 644 -T ./completions/bash-nvme-completion.sh $(DESTDIR)$(PREFIX)/share/bash-completion/completions/nvme + $(INSTALL) -d $(DESTDIR)$(SYSCONFDIR)/bash_completion.d + $(INSTALL) -m 644 -T ./completions/bash-nvme-completion.sh $(DESTDIR)$(SYSCONFDIR)/bash_completion.d/nvme install: install-bin install-man install-bash-completion