diff --git a/Makefile b/Makefile index b8039f0..ecfce8f 100644 --- a/Makefile +++ b/Makefile @@ -3,11 +3,7 @@ BINDIR ?= $(DESTDIR)$(PREFIX)/bin MANDIR ?= $(DESTDIR)$(PREFIX)/share/man/man1 DOCDIR ?= $(DESTDIR)$(PREFIX)/share/doc/buku -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 +.PHONY: all install uninstall all: @@ -21,16 +17,7 @@ install: install -m644 README.md $(DOCDIR) rm -f buku.1.gz -install.comp: - install -m755 -d $(BASHCOMPDIR) $(FISHCOMPDIR) $(ZSHCOMPDIR) - install -m644 auto-completion/bash/buku-completion.bash $(BASHCOMPDIR) - install -m644 auto-completion/fish/buku.fish $(FISHCOMPDIR) - install -m644 auto-completion/zsh/_buku $(ZSHCOMPDIR) - uninstall: rm -f $(BINDIR)/buku rm -f $(MANDIR)/buku.1.gz rm -rf $(DOCDIR) - -uninstall.comp: - rm -f $(BASHCOMPDIR)/buku-completion.bash $(FISHCOMPDIR)/buku.fish $(ZSHCOMPDIR)/_buku diff --git a/README.md b/README.md index 4780b3d..15eff30 100644 --- a/README.md +++ b/README.md @@ -89,16 +89,7 @@ To remove, run: ## Shell completion -Shell completion scripts for Bash, Fish and Zsh can be found in respective subdirectories of [auto-completion/](https://github.com/jarun/buku/blob/master/auto-completion). - -Install shell completion scripts: - - $ sudo make install.comp - -Remove shell completion scripts: - - $ sudo make uninstall.comp -`DESTDIR` is supported. +Shell completion scripts for Bash, Fish and Zsh can be found in respective subdirectories of [auto-completion/](https://github.com/jarun/buku/blob/master/auto-completion). Please refer to your shell's manual for installation instructions. ## Installing with a package manager