summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-04-27 17:57:31 +0200
committerBram Moolenaar <Bram@vim.org>2019-04-27 17:57:31 +0200
commite13a3901cae0afb4d2af30d497696af08029fd81 (patch)
treeb65c945ba6a7e8b831ed1a191a75a678f396b6fc /Makefile
parent520e245237fa92f9022968a52eb418da6eade9b4 (diff)
downloadvim-git-e13a3901cae0afb4d2af30d497696af08029fd81.tar.gz
patch 8.1.1213: "make clean" in top dir does not cleanup indent test outputv8.1.1213
Problem: "make clean" in top dir does not cleanup indent test output. Solution: Clean the indent test output. Do not rely on the vim executable for that. (closes #4307)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 16fc84ccd..6ee3b1cdd 100644
--- a/Makefile
+++ b/Makefile
@@ -43,13 +43,18 @@ all install uninstall tools config configure reconfig proto depend lint tags typ
@if test "$@" = "test"; then \
$(MAKE) indenttest; \
fi
+ @# When the target is "clean" also clean for the indent tests.
+ @if test "$@" = "clean" -o "$@" = "distclean" -o "$@" = "testclean"; then \
+ cd runtime/indent && \
+ $(MAKE) clean; \
+ fi
# Executable used for running the indent tests.
VIM_FOR_INDENTTEST = ../../src/vim
indenttest:
cd runtime/indent && \
- $(MAKE) clean VIM="$(VIM_FOR_INDENTTEST)" && \
+ $(MAKE) clean && \
$(MAKE) test VIM="$(VIM_FOR_INDENTTEST)"