summaryrefslogtreecommitdiffstats
path: root/runtime/doc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/doc/Makefile b/runtime/doc/Makefile
index 4ca08818dd..e10415f9ef 100644
--- a/runtime/doc/Makefile
+++ b/runtime/doc/Makefile
@@ -323,9 +323,9 @@ all: tags vim.man evim.man vimdiff.man vimtutor.man xxd.man $(CONVERTED)
# Use Vim to generate the tags file. Can only be used when Vim has been
# compiled and installed. Supports multiple languages.
vimtags: $(DOCS)
- @if which $(VIMEXE) >/dev/null; then \
- $(VIMEXE) --clean -eX -u doctags.vim >/dev/null; \
- echo "help tags updated"; \
+ @if command -v $(VIMEXE); then \
+ $(VIMEXE) --clean -eX -u doctags.vim >/dev/null && \
+ echo "help tags updated"; \
else echo "vim executable $(VIMEXE) not found; help tags not updated"; fi
# Use "doctags" to generate the tags file. Only works for English!