summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-02-15 13:15:15 -0400
committerJoey Hess <joeyh@joeyh.name>2016-02-15 13:23:21 -0400
commit60b79db15e2923dc9ea9d7d68926a48ba11f7ba4 (patch)
tree0078e59a6f6c381a0ea9479effdcfc4cd4e5ec98 /Makefile
parent75fc302e526e22c02aafd06773abb21015f4d95d (diff)
new bash completion dir
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0ff9a05..70bddfa 100644
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,7 @@ bindir=${prefix}/bin
etcdir=/etc
mandir=${prefix}/share/man
vardir=/var
+completiondir=${prefix}/share/bash-completion/completions
CP=cp -R
INSTALL=install
INSTALL_EXE=${INSTALL}
@@ -27,8 +28,8 @@ install: etckeeper.version
$(INSTALL_EXE) etckeeper $(DESTDIR)$(bindir)/etckeeper
mkdir -p $(DESTDIR)$(mandir)/man8
$(INSTALL_DATA) etckeeper.8 $(DESTDIR)$(mandir)/man8/etckeeper.8
- mkdir -p $(DESTDIR)$(etcdir)/bash_completion.d
- $(INSTALL_DATA) bash_completion $(DESTDIR)$(etcdir)/bash_completion.d/etckeeper
+ mkdir -p $(DESTDIR)$(completiondir)
+ $(INSTALL_DATA) bash_completion $(DESTDIR)$(completiondir)/etckeeper
ifeq ($(HIGHLEVEL_PACKAGE_MANAGER),apt)
mkdir -p $(DESTDIR)$(etcdir)/apt/apt.conf.d
$(INSTALL_DATA) apt.conf $(DESTDIR)$(etcdir)/apt/apt.conf.d/05etckeeper