From bf3ec63f7666663ee8693cfbfacd40eb84259c2d Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Wed, 25 May 2016 01:50:12 +0530 Subject: [PATCH] Fix completion script (un)install. --- Makefile | 7 ++++--- README.md | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 0fc0150..b8039f0 100644 --- a/Makefile +++ b/Makefile @@ -2,9 +2,10 @@ PREFIX ?= /usr/local BINDIR ?= $(DESTDIR)$(PREFIX)/bin MANDIR ?= $(DESTDIR)$(PREFIX)/share/man/man1 DOCDIR ?= $(DESTDIR)$(PREFIX)/share/doc/buku -BASHCOMPDIR = $(DESTDIR)$(PREFIX)/etc/bash_completion.d -FISHCOMPDIR = $(DESTDIR)$(PREFIX)/share/fish/vendor_completions.d -ZSHCOMPDIR = $(DESTDIR)$(PREFIX)/share/zsh/site-functions + +BASHCOMPDIR = $(DESTDIR)/etc/bash_completion.d +FISHCOMPDIR = $(DESTDIR)/usr/share/fish/vendor_completions.d +ZSHCOMPDIR = $(DESTDIR)/usr/share/zsh/site-functions .PHONY: all install install.comp uninstall uninstall.comp diff --git a/README.md b/README.md index c858042..4780b3d 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ Install shell completion scripts: Remove shell completion scripts: $ sudo make uninstall.comp -`PREFIX` is supported. +`DESTDIR` is supported. ## Installing with a package manager