]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
Moving the bash completion files to the standard
authorBreno Leitao <breno.leitao@gmail.com>
Mon, 6 Feb 2017 16:03:14 +0000 (11:03 -0500)
committerBreno Leitao <breno.leitao@gmail.com>
Mon, 6 Feb 2017 16:38:06 +0000 (11:38 -0500)
Currently it is not recommend to put the bash completion files inside
/etc, but on the new /usr/share/completion, as stated in :

https://lintian.debian.org/tags/package-installs-into-obsolete-dir.html
https://bugs.debian.org/776954

Signed-off-by: Breno Leitao <breno.leitao@gmail.com>
Makefile

index 1ada6f5a6506b35a343b126b75a5365f0891900e..e88add79343c97e291fdb6b0c51490171a00c7f6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -62,8 +62,8 @@ install-bin: default
        $(INSTALL) -m 755 nvme $(DESTDIR)$(SBINDIR)
 
 install-bash-completion:
-       $(INSTALL) -d $(DESTDIR)$(SYSCONFDIR)/bash_completion.d
-       $(INSTALL) -m 644 -T ./completions/bash-nvme-completion.sh $(DESTDIR)$(SYSCONFDIR)/bash_completion.d/nvme
+       $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/bash_completion.d
+       $(INSTALL) -m 644 -T ./completions/bash-nvme-completion.sh $(DESTDIR)$(PREFIX)/share/bash_completion.d/nvme
 
 install: install-bin install-man install-bash-completion