]> granicus.if.org Git - vim/commitdiff
patch 8.1.2413: cannot update ex_cmdidxs.h on MS-Windows v8.1.2413
authorBram Moolenaar <Bram@vim.org>
Mon, 9 Dec 2019 20:48:11 +0000 (21:48 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 9 Dec 2019 20:48:11 +0000 (21:48 +0100)
Problem:    Cannot update ex_cmdidxs.h on MS-Windows.
Solution:   Add build rules and dependencies. (Ken Takata, closes #5337)

src/Make_cyg_ming.mak
src/Make_mvc.mak
src/Make_vms.mms
src/version.c

index 24c1338504d270961a11d468bb519ca51cb5eddb..8654ca3a51810c1efef82606a207d9d78126e736 100644 (file)
@@ -1082,6 +1082,13 @@ endif
        $(MAKE) -C xxd -f Make_ming.mak clean
        $(MAKE) -C tee clean
 
+# 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
+       vim --clean -X -u create_cmdidxs.vim
+
 ###########################################################################
 INCL = vim.h alloc.h ascii.h ex_cmds.h feature.h globals.h \
        keymap.h macros.h option.h os_dos.h os_win32.h proto.h regexp.h \
@@ -1128,6 +1135,8 @@ endif
 $(OUTDIR):
        $(MKDIR) $(OUTDIR)
 
+$(OUTDIR)/ex_docmd.o: ex_docmd.c $(INCL) ex_cmdidxs.h
+
 $(OUTDIR)/gui_dwrite.o:        gui_dwrite.cpp gui_dwrite.h
        $(CC) -c $(CFLAGS) $(CXXFLAGS) gui_dwrite.cpp -o $@
 
index 1a74d3bb3e2007a7a439f2fbf96370566f28f103..65967b61d739373b6f53f604384e4cb49c8c7e6e 100644 (file)
@@ -1411,6 +1411,13 @@ clean: testclean
        $(MAKE) /NOLOGO -f Makefile clean
        cd ..
 
+# 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
+       vim --clean -X -u create_cmdidxs.vim
+
 test:
        cd testdir
        $(MAKE) /NOLOGO -f Make_dos.mak win32
@@ -1530,7 +1537,7 @@ $(OUTDIR)/ex_cmds.obj:    $(OUTDIR) ex_cmds.c  $(INCL)
 
 $(OUTDIR)/ex_cmds2.obj:        $(OUTDIR) ex_cmds2.c  $(INCL)
 
-$(OUTDIR)/ex_docmd.obj:        $(OUTDIR) ex_docmd.c  $(INCL)
+$(OUTDIR)/ex_docmd.obj:        $(OUTDIR) ex_docmd.c  $(INCL) ex_cmdidxs.h
 
 $(OUTDIR)/ex_eval.obj: $(OUTDIR) ex_eval.c  $(INCL)
 
index f635d56027a27e5fc285d563d33b7dd88bd8b640..0a916310fe0016845fa0bdd3a829a7f10462c4ae 100644 (file)
@@ -765,7 +765,7 @@ ex_cmds2.obj : ex_cmds2.c vim.h [.auto]config.h feature.h os_unix.h \
 ex_docmd.obj : ex_docmd.c vim.h [.auto]config.h feature.h os_unix.h \
  ascii.h keymap.h term.h macros.h structs.h regexp.h \
  gui.h beval.h [.proto]gui_beval.pro option.h ex_cmds.h proto.h \
- globals.h
+ globals.h ex_cmdidxs.h
 ex_eval.obj : ex_eval.c vim.h [.auto]config.h feature.h os_unix.h \
  ascii.h keymap.h term.h macros.h structs.h regexp.h \
  gui.h beval.h [.proto]gui_beval.pro option.h ex_cmds.h proto.h \
index 1d6d323bc5a78c537a077ab0ef34ccad538f0422..d4a8e23d9323ece84953d010c880863eadac423d 100644 (file)
@@ -742,6 +742,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2413,
 /**/
     2412,
 /**/