summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-10-29 02:32:35 -0400
committerJesse Luehrs <doy@tozt.net>2018-10-29 02:32:35 -0400
commit40956ae026974be3fb746eb48f141b8eb14470da (patch)
tree2dcf2e76d179d17e1fe9e18721caa23ba3ebe7af /Makefile
parent16dee1758ea2070d01af3be51f5606d5afb389df (diff)
downloadconf-40956ae026974be3fb746eb48f141b8eb14470da.tar.gz
conf-40956ae026974be3fb746eb48f141b8eb14470da.zip
fix make clean
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 17 insertions, 4 deletions
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'