comparison runtime/doc/Makefile @ 18506:b065181f0408 v8.1.2247

patch 8.1.2247: "make vimtags" does not work in runtime/doc Commit: https://github.com/vim/vim/commit/e890b9f5dd3ae76e301b2df7f3151366acaba5dc Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 3 18:38:47 2019 +0100 patch 8.1.2247: "make vimtags" does not work in runtime/doc Problem: "make vimtags" does not work in runtime/doc. Solution: Test existence with "which" instead of "test -x". (Ken Takata)
author Bram Moolenaar <Bram@vim.org>
date Sun, 03 Nov 2019 18:45:03 +0100
parents 7b1f8e4b32ba
children b832fc67f84d
comparison
equal deleted inserted replaced
18505:81ee9de74877 18506:b065181f0408
321 all: tags vim.man evim.man vimdiff.man vimtutor.man xxd.man $(CONVERTED) 321 all: tags vim.man evim.man vimdiff.man vimtutor.man xxd.man $(CONVERTED)
322 322
323 # Use Vim to generate the tags file. Can only be used when Vim has been 323 # Use Vim to generate the tags file. Can only be used when Vim has been
324 # compiled and installed. Supports multiple languages. 324 # compiled and installed. Supports multiple languages.
325 vimtags: $(DOCS) 325 vimtags: $(DOCS)
326 @if test -x $(VIMEXE); then $(VIMEXE) --clean -eX -u doctags.vim; \ 326 @if which $(VIMEXE) >/dev/null; then \
327 $(VIMEXE) --clean -eX -u doctags.vim >/dev/null; \
327 else echo "vim executable $(VIMEXE) not found"; fi 328 else echo "vim executable $(VIMEXE) not found"; fi
328 329
329 # Use "doctags" to generate the tags file. Only works for English! 330 # Use "doctags" to generate the tags file. Only works for English!
330 tags: doctags $(DOCS) 331 tags: doctags $(DOCS)
331 ./doctags $(DOCS) | LANG=C LC_ALL=C sort >tags 332 ./doctags $(DOCS) | LANG=C LC_ALL=C sort >tags