summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-04-20 21:55:44 +0200
committerBram Moolenaar <Bram@vim.org>2017-04-20 21:55:44 +0200
commit6de5e126018b6f92526795cc06b1d73fac965db1 (patch)
tree3bb672d63d10452561479a98d16ba89a42d5360f /src/Makefile
parenta364cdb648ae009fa7aa05382f5659335683d349 (diff)
downloadvim-6de5e126018b6f92526795cc06b1d73fac965db1.zip
patch 8.0.0572: building the command table requires Perl
Problem: Building the command table requires Perl. Solution: Use a Vim script solution. (Dominique Pelle, closes #1641)
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/Makefile b/src/Makefile
index 11f62f341..628345179 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1885,15 +1885,12 @@ autoconf:
-rm -rf autom4te.cache
-rm -f auto/config.status auto/config.cache
-# Run Perl to generate the Ex command lookup table. This only needs to be run
-# when a command name has been added or changed.
-# NOTE: Only works when perl and vim executables are available
+# Run vim script to generate the Ex command lookup table.
+# This only needs to be run when a command name has been added or changed.
+# If this fails because you don't have Vim yet, first build and install Vim
+# without changes.
cmdidxs: ex_cmds.h
- if test X`perl -e "print 123"` = "X123"; then \
- vim ex_docmd.c -c '/Beginning.*create_cmdidxs/,/End.*create_cmdidxs/! perl create_cmdidxs.pl' -c wq; \
- else \
- echo Cannot run Perl; \
- fi
+ vim -u NONE -i NONE -X -S create_cmdidxs.vim
# Re-execute this Makefile to include the new auto/config.mk produced by
# configure Only used when typing "make" with a fresh auto/config.mk.