comparison Makefile @ 16417:e6fb5d39a24c v8.1.1213

patch 8.1.1213: "make clean" in top dir does not cleanup indent test output commit https://github.com/vim/vim/commit/e13a3901cae0afb4d2af30d497696af08029fd81 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 27 17:57:31 2019 +0200 patch 8.1.1213: "make clean" in top dir does not cleanup indent test output 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)
author Bram Moolenaar <Bram@vim.org>
date Sat, 27 Apr 2019 18:00:05 +0200
parents cb1652e41314
children 1ec6539cef68
comparison
equal deleted inserted replaced
16416:5f6b2c27ca41 16417:e6fb5d39a24c
41 cd src && $(MAKE) $@ 41 cd src && $(MAKE) $@
42 @# When the target is "test" also run the indent tests. 42 @# When the target is "test" also run the indent tests.
43 @if test "$@" = "test"; then \ 43 @if test "$@" = "test"; then \
44 $(MAKE) indenttest; \ 44 $(MAKE) indenttest; \
45 fi 45 fi
46 @# When the target is "clean" also clean for the indent tests.
47 @if test "$@" = "clean" -o "$@" = "distclean" -o "$@" = "testclean"; then \
48 cd runtime/indent && \
49 $(MAKE) clean; \
50 fi
46 51
47 # Executable used for running the indent tests. 52 # Executable used for running the indent tests.
48 VIM_FOR_INDENTTEST = ../../src/vim 53 VIM_FOR_INDENTTEST = ../../src/vim
49 54
50 indenttest: 55 indenttest:
51 cd runtime/indent && \ 56 cd runtime/indent && \
52 $(MAKE) clean VIM="$(VIM_FOR_INDENTTEST)" && \ 57 $(MAKE) clean && \
53 $(MAKE) test VIM="$(VIM_FOR_INDENTTEST)" 58 $(MAKE) test VIM="$(VIM_FOR_INDENTTEST)"
54 59
55 60
56 ######################################################################### 61 #########################################################################
57 # 2. Creating the various distribution files. 62 # 2. Creating the various distribution files.