]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
Fix install bash completions
authorKeith Busch <keith.busch@intel.com>
Tue, 26 Jul 2016 21:37:26 +0000 (15:37 -0600)
committerKeith Busch <keith.busch@intel.com>
Tue, 26 Jul 2016 21:43:41 +0000 (15:43 -0600)
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 <keith.busch@intel.com>
Makefile

index 394bd3209108d1a2cea1d46adcee055629f58782..dbcce3e290f68bfbe84db7783da9848bfda24822 100644 (file)
--- 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