From 0ca63ddc848953adfbb39a123cbf882021998e30 Mon Sep 17 00:00:00 2001 From: Vladimir Zhelezov Date: Sat, 19 Dec 2020 09:57:27 +0100 Subject: [PATCH] Install/uninstall completion for all extensions by default Install the symlinks unconditionally. This way the user don't need to reinstall completion after adding an extension. Of course fine- grained control is possible with: `make install EXTENSIONS=web` e.g. --- shell-completion/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell-completion/Makefile b/shell-completion/Makefile index eac81005b..e61d71066 100644 --- a/shell-completion/Makefile +++ b/shell-completion/Makefile @@ -40,7 +40,7 @@ all: hledger-completion.bash install: @install -v -d "$(DESTDIR)$(BASHCOMPDIR)" @install -v -m 0644 hledger-completion.bash "$(DESTDIR)$(BASHCOMPDIR)/hledger" - @for ext in $(INSTALLED_EXTENSIONS); do \ + @for ext in $(EXTENSIONS); do \ printf "symlink " ; \ ln -sfv hledger "$(DESTDIR)$(BASHCOMPDIR)/hledger-$$ext" ; \ done @@ -48,7 +48,7 @@ install: .PHONY: uninstall uninstall: @rm -vf "$(DESTDIR)$(BASHCOMPDIR)/hledger" - @for ext in $(INSTALLED_EXTENSIONS); do \ + @for ext in $(EXTENSIONS); do \ rm -vf "$(DESTDIR)$(BASHCOMPDIR)/hledger-$$ext" ; \ done