From 5efd29dd6fb91d1d5beb1aabc9f17c072d5052fd Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Fri, 21 Aug 2020 18:19:47 +0200 Subject: [PATCH] [FIX] Clean-up Makefile I added missing .PHONY rules, and made Vim quit after installing its packages. --- Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 99b6510..a5ca0e5 100644 --- a/Makefile +++ b/Makefile @@ -140,6 +140,8 @@ link-cli: $(addprefix stow-,$(CLI_PACKAGES)) link-visual: $(addprefix stow-,$(VISUAL_PACKAGES)) # Installing configuration packages +.PHONY: $(addprefix stow-,$(CLI_PACKAGES)) +.PHONY: $(addprefix stow-,$(VISUAL_PACKAGES)) stow-%: % $(STOW) $< @@ -164,15 +166,20 @@ stow-tmux: tmux stow-vim: vim $(STOW) $< - vim +PlugInstall + vim +PlugInstall +qa # Removing packages -unlink: unlink-cli unlink-visual +.PHONY: unlink-all +unlink-all: unlink-cli unlink-visual +.PHONY: unlink-cli unlink-cli: $(addprefix unstow-,$(CLI_PACKAGES)) +.PHONY: unlink-visual unlink-visual: $(addprefix unstow-,$(VISUAL_PACKAGES)) +.PHONY: $(addprefix unstow-,$(CLI_PACKAGES)) +.PHONY: $(addprefix unstow-,$(VISUAL_PACKAGES)) unstow-%: $(STOW) -D $*