From 40956ae026974be3fb746eb48f141b8eb14470da Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 29 Oct 2018 02:32:35 -0400 Subject: fix make clean --- Makefile | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 88028dc..036b0dd 100644 --- a/Makefile +++ b/Makefile @@ -57,9 +57,8 @@ EMPTYDIRS := \ .cache/vim/hist \ .cache/vim/undo \ -INSTALLED := \ - $(INSTALLED) \ - $(patsubst %,$(INTO)/%,$(EMPTYDIRS) $(INSTALL)) +INSTALL_CUSTOM := \ + $(INSTALL_CUSTOM) BUILD := \ $(BUILD) \ @@ -68,10 +67,22 @@ BUILD := \ vim/spell/en.utf-8.add.spl \ less +INSTALLED_SYMLINKS := \ + $(patsubst %,$(INTO)/%,$(INSTALL)) \ + $(INSTALL_CUSTOM) + +INSTALLED_DIRS := \ + $(patsubst %,$(INTO)/%,$(EMPTYDIRS)) + +INSTALLED := \ + $(INSTALLED_SYMLINKS) \ + $(INSTALLED_DIRS) + ECHO = @echo LN = @ln -sf MKDIR = @mkdir -p RM = @rm -f +RMDIR = @rmdir -p # named targets @@ -87,7 +98,9 @@ install :: all $(INSTALLED) clean :: $(ECHO) Cleaning from $(INTO) - $(RM) $(BUILD) $(INSTALLED) + $(RM) $(BUILD) + $(RM) $(INSTALLED_SYMLINKS) + $(RMDIR) $(INSTALLED_DIRS) update : @git submodule foreach '(if [ $$path == "vim/pack/filetype/start/perl" ]; then git checkout dev; else git checkout master; fi) && git pull' -- cgit v1.2.3-54-g00ecf