vim

Fork of vim, an acceptable text editor
git clone git://git.laack.co/vim.git
Log | Files | Refs | README | LICENSE

Makefile (19819B)


      1 # This Makefile has two purposes:
      2 # 1. Starting the compilation of Vim for Unix.
      3 # 2. Creating the various distribution files.
      4 
      5 
      6 #########################################################################
      7 # 1. Starting the compilation of Vim for Unix.
      8 #
      9 # Using this Makefile without an argument will compile Vim for Unix.
     10 # "make install" is also possible.
     11 #
     12 # NOTE: If this doesn't work properly, first change directory to "src" and use
     13 # the Makefile there:
     14 #	cd src
     15 #	make [arguments]
     16 # Noticed on AIX systems when using this Makefile: Trying to run "cproto" or
     17 # something else after Vim has been compiled.  Don't know why...
     18 # Noticed on OS/390 Unix: Restarts configure.
     19 #
     20 # The first (default) target is "first".  This will result in running
     21 # "make first", so that the target from "src/auto/config.mk" is picked
     22 # up properly when config didn't run yet.  Doing "make all" before configure
     23 # has run can result in compiling with $(CC) empty.
     24 
     25 first:
     26 	@if test ! -f src/auto/config.mk; then \
     27 		cp src/config.mk.dist src/auto/config.mk; \
     28 	fi
     29 	@echo "Starting make in the src directory."
     30 	@echo "If there are problems, cd to the src directory and run make there"
     31 	cd src && $(MAKE) $@
     32 
     33 tags notags:
     34 	$(MAKE) -C src/ -f Make_tags.mak $@
     35 
     36 # Some make programs use the last target for the $@ default; put the other
     37 # targets separately to always let $@ expand to "first" by default.
     38 all install uninstall tools config configure reconfig proto depend lint types test scripttests testtiny test_libvterm unittests testclean clean distclean:
     39 	@if test ! -f src/auto/config.mk; then \
     40 		cp src/config.mk.dist src/auto/config.mk; \
     41 	fi
     42 	@echo "Starting make in the src directory."
     43 	@echo "If there are problems, cd to the src directory and run make there"
     44 	cd src && $(MAKE) $@
     45 	@# When the target is "test" also run the indent and syntax tests.
     46 	@if test "$@" = "test" -o "$@" = "testtiny"; then \
     47 		$(MAKE) indenttest; \
     48 		$(MAKE) syntaxtest; \
     49 	fi
     50 	@# When the target is "clean" also clean for the indent and syntax tests.
     51 	@if test "$@" = "clean" -o "$@" = "distclean" -o "$@" = "testclean"; then \
     52 		(cd runtime/indent && $(MAKE) clean); \
     53 		(cd runtime/syntax && $(MAKE) clean); \
     54 	fi
     55 
     56 # Executable used for running the indent tests.
     57 VIM_FOR_INDENTTEST = ../../src/vim
     58 
     59 indenttest:
     60 	cd runtime/indent && \
     61 		$(MAKE) clean && \
     62 		$(MAKE) test VIMPROG="$(VIM_FOR_INDENTTEST)"
     63 
     64 # Executable used for running the syntax tests.
     65 VIM_FOR_SYNTAXTEST = ../../src/vim
     66 
     67 # (For local testing only with GNU Make.)
     68 VIM_SYNTAX_TEST_FILTER =
     69 VIM_SYNTAX_TEST_WAIT_TIME =
     70 
     71 syntaxtest:
     72 	cd runtime/syntax && \
     73 		$(MAKE) clean && \
     74 		$(MAKE) test VIMPROG="$(VIM_FOR_SYNTAXTEST)"
     75 
     76 
     77 #########################################################################
     78 # 2. Creating the various distribution files.
     79 #
     80 # TARGET	PRODUCES		CONTAINS
     81 # unixall	vim-#.#.tar.bz2		All runtime files and sources, for Unix
     82 #
     83 # html		vim##html.zip		HTML docs
     84 #
     85 # dossrc	vim##src.zip		sources for MS-DOS
     86 # dosrt		vim##rt.zip		runtime for MS-DOS
     87 # dosbin	vim##w32.zip		binary for Win32
     88 #		gvim##.zip		binary for GUI Win32
     89 #		gvim##ole.zip		OLE exe for Win32 GUI
     90 #
     91 # OBSOLETE
     92 # amisrc	vim##src.tgz		sources for Amiga
     93 # amirt		vim##rt.tgz		runtime for Amiga
     94 # amibin	vim##bin.tgz		binary for Amiga
     95 #
     96 # farsi		farsi##.zip		Farsi fonts
     97 #
     98 #    All output files are created in the "dist" directory.  Existing files are
     99 #    overwritten!
    100 #    To do all this you need the Unix archive and compiled binaries.
    101 #    Before creating an archive first delete all backup files, *.orig, etc.
    102 
    103 MAJOR = 9
    104 MINOR = 2
    105 
    106 # CHECKLIST for creating a new version:
    107 #
    108 # - Update Vim version number.  For a test version in: src/version.h,
    109 #   READMEdir/Contents, MAJOR/MINOR above, VIMMAJOR and VIMMINOR in
    110 #   src/Makefile, README.txt, README.md, src/README.md, READMEdir/README*.txt,
    111 #   runtime/doc/*.txt.
    112 #   For a minor/major version: src/GvimExt/GvimExt.reg, src/vim.manifest.
    113 # - Compile Vim with GTK, Perl, Python, Python3, TCL, Ruby, Lua, Cscope and
    114 #   "huge" features.  Add MZscheme if you can make it work.
    115 #   Use "make reconfig" after selecting the configure arguments.
    116 # - With these features: "make proto" (requires cproto and Motif installed;
    117 #   ignore warnings for missing include files, fix problems for syntax errors).
    118 # - With these features: "make depend" (works best with gcc).
    119 # - If you have a lint program: "make lint" and check the output (ignore GTK
    120 #   warnings).
    121 # - compile release versions using -DNDEBUG to disable assert()s
    122 # - If you have valgrind, enable it in src/testdir/Makefile and run "make
    123 #   test".  Enable EXITFREE, disable GUI, scheme and tcl to avoid false alarms.
    124 #   Check the valgrind output.
    125 # - Adjust the date and other info in src/version.h.
    126 # - Correct included_patches[] in src/version.c.
    127 # - Check for missing entries in runtime/makemenu.vim (with checkmenu script).
    128 # - Check for missing options in runtime/optwin.vim et al. (with check.vim).
    129 # - Do "make menu" to update the runtime/synmenu.vim file.
    130 # - Add remarks for changes to runtime/doc/version9.txt.
    131 # - Check that runtime/doc/help.txt doesn't contain entries in "LOCAL
    132 #   ADDITIONS".
    133 # - In runtime/doc run "make" and "make html" to check for errors.
    134 # - Check if src/Makefile, src/testdir/Makefile and src/feature.h don't contain
    135 #   any personal preferences or the changes mentioned above.
    136 # - Check file protections to be "644" for text and "755" for executables (run
    137 #   the "check" script).
    138 # - Check compiling on Amiga, MS-DOS and MS-Windows.
    139 # - Delete all *~, *.sw?, *.orig, *.rej files
    140 # - "make unixall", "make html"
    141 # - Make diff files against the previous release: "makediff7 7.1 7.2"
    142 #
    143 # Amiga: (OBSOLETE, Amiga files are no longer distributed)
    144 # - "make amisrc", move the archive to the Amiga and compile:
    145 #   "make -f Make_manx.mak" (will use "big" features by default).
    146 # - Run the tests: "make -f Make_manx.mak test"
    147 # - Place the executables Vim and Xxd in this directory (set the executable
    148 #   flag).
    149 # - "make amirt", "make amibin".
    150 #
    151 # MS-Windows:
    152 # - Run make on Unix to update the ".mo" files.
    153 # - Get 32 bit libintl-8.dll, libiconv-2.dll and libgcc_s_sjlj-1.dll. E.g. from
    154 #   https://mlocati.github.io/gettext-iconv-windows/ .
    155 #   Use the "shared-32.zip file and extract the archive to get the files.
    156 #   Put them in the gettext32 directory, "make dosrt" uses them.
    157 # - Get 64 bit libintl-8.dll and libiconv-2.dll. E.g. from
    158 #   https://mlocati.github.io/gettext-iconv-windows/ .
    159 #   Use the "shared-64.zip file and extract the archive to get the files.
    160 #   Put them in the gettext64 directory, "make dosrt" uses them.
    161 # - > make dossrc
    162 #   > make dosrt
    163 #   Unpack dist/vim##rt.zip and dist/vim##src.zip on an MS-Windows PC.
    164 #   This creates the directory vim/vim91 and puts all files in there.
    165 # Win32 console version build:
    166 # - See src/INSTALLpc.txt for installing the compiler and SDK.
    167 # - Set environment for Visual C++ 2015:
    168 #   > cd src
    169 #   > msvc-latest.bat
    170 # - Build the console binary:
    171 #   > nmake.exe -f Make_mvc.mak
    172 # - Run the tests and check the output:
    173 #   > nmake.exe -f Make_mvc.mak testclean
    174 #   > nmake.exe -f Make_mvc.mak test
    175 # - Rename (using ../tools/rename.bat):
    176 #           vim.exe to vimw32.exe
    177 #           tee/tee.exe to teew32.exe
    178 #           xxd/xxd.exe to xxdw32.exe
    179 #           vim.pdb to vimw32.pdb
    180 #           install.exe to installw32.exe
    181 #           uninstall.exe to uninstallw32.exe
    182 # Win32 GUI version build:
    183 # - > cd src
    184 #   > nmake.exe -f Make_mvc.mak "GUI=yes"
    185 # - Run the tests and check the output:
    186 #   > nmake.exe -f Make_mvc.mak testclean
    187 #   > nmake.exe -f Make_mvc.mak testgvim
    188 # - move "gvim.exe" to here (otherwise the OLE version will overwrite it).
    189 # - Move gvim.pdb to here.
    190 # - Copy "GvimExt/gvimext.dll" to here.
    191 # - Delete vimrun.exe, install.exe and uninstall.exe.
    192 # Win32 GUI version with OLE, PERL, Ruby, TCL, PYTHON and dynamic IME:
    193 # - Install the interfaces you want, see src/INSTALLpc.txt
    194 #   Adjust bigvim.bat to match the version of each interface you want.
    195 # - Build:
    196 #   > cd src
    197 #   > bigvim.bat
    198 # - Run the tests:
    199 #   > nmake.exe -f Make_mvc.mak testclean
    200 #   > nmake.exe -f Make_mvc.mak testgvim
    201 #   - check the output.
    202 # - Rename "gvim.exe" to "gvim_ole.exe".
    203 # - Rename gvim.pdb to "gvim_ole.pdb".
    204 # - Delete install.exe and uninstall.exe.
    205 # Create the archives:
    206 # - Copy all the "*.exe" files to where this Makefile is.
    207 # - Copy all the "*.pdb" files to where this Makefile is.
    208 # - in this directory:
    209 #   > make dosbin
    210 # NSIS self installing exe:
    211 #   See https://github.com/vim/vim-win32-installer
    212 #
    213 # 64 bit builds (these are not in the normal distribution, the 32 bit build
    214 # works just fine on 64 bit systems).
    215 # Like the console and GUI version, but first run vcvars64.bat or
    216 #   "..\VC\vcvarsall.bat x86_amd64".
    217 # - Build the console version:
    218 #   > nmake.exe -f Make_mvc.mak
    219 # - Build the GUI version:
    220 #   > nmake.exe -f Make_mvc.mak "GUI=yes"
    221 # - Build the OLE version with interfaces:
    222 #   > bigvim64.bat
    223 #
    224 #
    225 # OBSOLETE systems: You can build these if you have an appropriate system.
    226 #
    227 # 16 bit DOS version: You need to get a very old version of Vim, for several
    228 # years even the tiny build is too big to fit in DOS memory.
    229 #
    230 # 32 bit DOS version: Support was removed in 7.4.1399.  When syncing to before
    231 # that it probably won't build.
    232 #
    233 # Win32s GUI version: Support was removed in patch 7.4.1364.
    234 #
    235 # OS/2 support was removed in patch 7.4.1008.  If you want to give it a try
    236 # sync to before that and check the old version of this Makefile for
    237 # instructions.
    238 
    239 VIMVER	= vim-$(MAJOR).$(MINOR)
    240 VERSION = $(MAJOR)$(MINOR)
    241 VDOT	= $(MAJOR).$(MINOR)
    242 VIMRTDIR = vim$(VERSION)
    243 
    244 # How to include Filelist depends on the version of "make" you have.
    245 # If the current choice doesn't work, try the other one.
    246 
    247 include Filelist
    248 #.include "Filelist"
    249 
    250 
    251 # All output is put in the "dist" directory.
    252 dist:
    253 	mkdir dist
    254 
    255 # Clean up some files to avoid they are included.
    256 # Copy README files to the top directory.
    257 prepare:
    258 	if test -f lang/LICENSE.nsis.txt; then \
    259 		rm -f lang/LICENSE*.nsis.txt; fi
    260 	for name in $(IN_README_DIR); do \
    261 	  cp READMEdir/"$$name" .; \
    262 	  done
    263 
    264 # For the zip files we need to create a file with the comment line
    265 dist/comment:
    266 	mkdir dist/comment
    267 
    268 COMMENT_RT = comment/$(VERSION)-rt
    269 COMMENT_W32 = comment/$(VERSION)-bin-w32
    270 COMMENT_GVIM = comment/$(VERSION)-bin-gvim
    271 COMMENT_OLE = comment/$(VERSION)-bin-ole
    272 COMMENT_SRC = comment/$(VERSION)-src
    273 COMMENT_HTML = comment/$(VERSION)-html
    274 COMMENT_FARSI = comment/$(VERSION)-farsi
    275 
    276 dist/$(COMMENT_RT): dist/comment
    277 	echo "Vim - Vi IMproved - v$(VDOT) runtime files for MS-DOS and MS-Windows" > dist/$(COMMENT_RT)
    278 
    279 dist/$(COMMENT_W32): dist/comment
    280 	echo "Vim - Vi IMproved - v$(VDOT) binaries for MS-Windows" > dist/$(COMMENT_W32)
    281 
    282 dist/$(COMMENT_GVIM): dist/comment
    283 	echo "Vim - Vi IMproved - v$(VDOT) GUI binaries for MS-Windows" > dist/$(COMMENT_GVIM)
    284 
    285 dist/$(COMMENT_OLE): dist/comment
    286 	echo "Vim - Vi IMproved - v$(VDOT) MS-Windows GUI binaries with OLE support" > dist/$(COMMENT_OLE)
    287 
    288 dist/$(COMMENT_SRC): dist/comment
    289 	echo "Vim - Vi IMproved - v$(VDOT) sources for MS-DOS and MS-Windows" > dist/$(COMMENT_SRC)
    290 
    291 dist/$(COMMENT_HTML): dist/comment
    292 	echo "Vim - Vi IMproved - v$(VDOT) documentation in HTML" > dist/$(COMMENT_HTML)
    293 
    294 dist/$(COMMENT_FARSI): dist/comment
    295 	echo "Vim - Vi IMproved - v$(VDOT) Farsi language files" > dist/$(COMMENT_FARSI)
    296 
    297 unixall: dist prepare
    298 	-rm -f dist/$(VIMVER).tar.bz2
    299 	-rm -rf dist/$(VIMRTDIR)
    300 	mkdir dist/$(VIMRTDIR)
    301 	tar cf - \
    302 		$(RT_ALL) \
    303 		$(RT_ALL_BIN) \
    304 		$(RT_UNIX) \
    305 		$(RT_UNIX_DOS_BIN) \
    306 		$(RT_SCRIPTS) \
    307 		$(LANG_GEN) \
    308 		$(LANG_GEN_BIN) \
    309 		$(SRC_ALL) \
    310 		$(SRC_UNIX) \
    311 		$(SRC_DOS_UNIX) \
    312 		$(EXTRA) \
    313 		$(LANG_SRC) \
    314 		| (cd dist/$(VIMRTDIR); tar xf -)
    315 	-rm $(IN_README_DIR)
    316 # Need to use a "distclean" config.mk file
    317 # Note: this file is not included in the repository to avoid problems, but it's
    318 # OK to put it in the archive.
    319 	cp -f src/config.mk.dist dist/$(VIMRTDIR)/src/auto/config.mk
    320 # Create an empty config.h file, make dependencies require it
    321 	touch dist/$(VIMRTDIR)/src/auto/config.h
    322 # Make sure configure is newer than config.mk to force it to be generated
    323 	touch dist/$(VIMRTDIR)/src/configure
    324 # Make sure ja.sjis.po is newer than ja.po to avoid it being regenerated.
    325 # Same for cs.cp1250.po, pl.cp1250.po and sk.cp1250.po.
    326 	touch dist/$(VIMRTDIR)/src/po/ja.sjis.po
    327 	touch dist/$(VIMRTDIR)/src/po/cs.cp1250.po
    328 	touch dist/$(VIMRTDIR)/src/po/pl.cp1250.po
    329 	touch dist/$(VIMRTDIR)/src/po/sk.cp1250.po
    330 	touch dist/$(VIMRTDIR)/src/po/zh_CN.cp936.po
    331 	touch dist/$(VIMRTDIR)/src/po/ru.cp1251.po
    332 	touch dist/$(VIMRTDIR)/src/po/uk.cp1251.po
    333 # Create the archive.
    334 	cd dist && tar cf $(VIMVER).tar $(VIMRTDIR)
    335 	bzip2 dist/$(VIMVER).tar
    336 
    337 # Amiga runtime - OBSOLETE
    338 amirt: dist prepare
    339 	-rm -f dist/vim$(VERSION)rt.tar.gz
    340 	-rm -rf dist/Vim
    341 	mkdir dist/Vim
    342 	mkdir dist/Vim/$(VIMRTDIR)
    343 	tar cf - \
    344 		$(ROOT_AMI) \
    345 		$(RT_ALL) \
    346 		$(RT_ALL_BIN) \
    347 		$(RT_SCRIPTS) \
    348 		$(RT_AMI) \
    349 		$(RT_NO_UNIX) \
    350 		$(RT_AMI_DOS) \
    351 		| (cd dist/Vim/$(VIMRTDIR); tar xf -)
    352 	-rm $(IN_README_DIR)
    353 	mv dist/Vim/$(VIMRTDIR)/vimdir.info dist/Vim.info
    354 	mv dist/Vim/$(VIMRTDIR)/runtime.info dist/Vim/$(VIMRTDIR).info
    355 	mv dist/Vim/$(VIMRTDIR)/runtime/* dist/Vim/$(VIMRTDIR)
    356 	rmdir dist/Vim/$(VIMRTDIR)/runtime
    357 	cd dist && tar cf vim$(VERSION)rt.tar Vim Vim.info
    358 	gzip -9 dist/vim$(VERSION)rt.tar
    359 	mv dist/vim$(VERSION)rt.tar.gz dist/vim$(VERSION)rt.tgz
    360 
    361 # Amiga binaries - OBSOLETE
    362 amibin: dist prepare
    363 	-rm -f dist/vim$(VERSION)bin.tar.gz
    364 	-rm -rf dist/Vim
    365 	mkdir dist/Vim
    366 	mkdir dist/Vim/$(VIMRTDIR)
    367 	tar cf - \
    368 		$(ROOT_AMI) \
    369 		$(BIN_AMI) \
    370 		Vim \
    371 		Xxd \
    372 		| (cd dist/Vim/$(VIMRTDIR); tar xf -)
    373 	-rm $(IN_README_DIR)
    374 	mv dist/Vim/$(VIMRTDIR)/vimdir.info dist/Vim.info
    375 	mv dist/Vim/$(VIMRTDIR)/runtime.info dist/Vim/$(VIMRTDIR).info
    376 	cd dist && tar cf vim$(VERSION)bin.tar Vim Vim.info
    377 	gzip -9 dist/vim$(VERSION)bin.tar
    378 	mv dist/vim$(VERSION)bin.tar.gz dist/vim$(VERSION)bin.tgz
    379 
    380 # Amiga sources - OBSOLETE
    381 amisrc: dist prepare
    382 	-rm -f dist/vim$(VERSION)src.tar.gz
    383 	-rm -rf dist/Vim
    384 	mkdir dist/Vim
    385 	mkdir dist/Vim/$(VIMRTDIR)
    386 	tar cf - \
    387 		$(ROOT_AMI) \
    388 		$(SRC_ALL) \
    389 		$(SRC_AMI) \
    390 		$(SRC_AMI_DOS) \
    391 		| (cd dist/Vim/$(VIMRTDIR); tar xf -)
    392 	-rm $(IN_README_DIR)
    393 	mv dist/Vim/$(VIMRTDIR)/vimdir.info dist/Vim.info
    394 	mv dist/Vim/$(VIMRTDIR)/runtime.info dist/Vim/$(VIMRTDIR).info
    395 	cd dist && tar cf vim$(VERSION)src.tar Vim Vim.info
    396 	gzip -9 dist/vim$(VERSION)src.tar
    397 	mv dist/vim$(VERSION)src.tar.gz dist/vim$(VERSION)src.tgz
    398 
    399 # MS-DOS sources
    400 dossrc: dist dist/$(COMMENT_SRC)
    401 	-rm -rf dist/vim$(VERSION)src.zip
    402 	-rm -rf dist/vim
    403 	mkdir dist/vim
    404 	mkdir dist/vim/$(VIMRTDIR)
    405 	tar cf - \
    406 		$(SRC_ALL) \
    407 		$(SRC_DOS) \
    408 		$(SRC_DOS_BIN) \
    409 		$(SRC_AMI_DOS) \
    410 		$(SRC_DOS_UNIX) \
    411 		lang/LICENSE.*.txt \
    412 		lang/README.*.txt \
    413 		| (cd dist/vim/$(VIMRTDIR); tar xf -)
    414 	mv dist/vim/$(VIMRTDIR)/runtime/* dist/vim/$(VIMRTDIR)
    415 	rmdir dist/vim/$(VIMRTDIR)/runtime
    416 	cd dist && zip -9 -rD -z vim$(VERSION)src.zip vim <$(COMMENT_SRC)
    417 
    418 dosrt: dist dist/$(COMMENT_RT) dosrt_files
    419 	-rm -rf dist/vim$(VERSION)rt.zip
    420 	cd dist && zip -9 -rD -z vim$(VERSION)rt.zip vim <$(COMMENT_RT)
    421 
    422 # Split in two parts to avoid an "argument list too long" error.
    423 # We no longer convert the files from unix to dos fileformat.
    424 dosrt_files: dist prepare
    425 	-rm -rf dist/vim
    426 	mkdir dist/vim
    427 	mkdir dist/vim/$(VIMRTDIR)
    428 	mkdir dist/vim/$(VIMRTDIR)/lang
    429 	cd src && MAKEMO=yes $(MAKE) languages
    430 	tar cf - \
    431 		$(RT_ALL) \
    432 		| (cd dist/vim/$(VIMRTDIR); tar xf -)
    433 	tar cf - \
    434 		$(RT_SCRIPTS) \
    435 		$(RT_DOS) \
    436 		$(RT_NO_UNIX) \
    437 		$(RT_AMI_DOS) \
    438 		$(LANG_GEN) \
    439 		| (cd dist/vim/$(VIMRTDIR); tar xf -)
    440 	tar cf - \
    441 		$(RT_UNIX_DOS_BIN) \
    442 		$(RT_ALL_BIN) \
    443 		$(RT_DOS_BIN) \
    444 		$(LANG_GEN_BIN) \
    445 		| (cd dist/vim/$(VIMRTDIR); tar xf -)
    446 	-rm $(IN_README_DIR)
    447 	mv dist/vim/$(VIMRTDIR)/lang/ dist/vim/$(VIMRTDIR)/readme/
    448 	mv dist/vim/$(VIMRTDIR)/runtime/* dist/vim/$(VIMRTDIR)
    449 	rmdir dist/vim/$(VIMRTDIR)/runtime
    450 # Add the message translations.  Trick: skip ja.mo/ja.euc-jp.mo and use
    451 # ja.sjis.mo instead.  Same for cs.mo / cs.cp1250.mo, pl.mo / pl.cp1250.mo,
    452 # sk.mo / sk.cp1250.mo, zh_CN.mo / zh_CN.cp936.mo, uk.mo / uk.cp1251.mo and
    453 # ru.mo / ru.cp1251.mo.
    454 	for i in $(LANG_DOS); do \
    455 	      if test "$$i" != "src/po/ja.mo" -a "$$i" != "src/po/ja.euc-jp.mo" -a "$$i" != "src/po/pl.mo" -a "$$i" != "src/po/cs.mo" -a "$$i" != "src/po/sk.mo" -a "$$i" != "src/po/zh_CN.mo" -a "$$i" != "src/po/ru.mo" -a "$$i" != "src/po/uk.mo"; then \
    456 		n=`echo $$i | sed -e "s+src/po/\([-a-zA-Z0-9_]*\(.UTF-8\)*\)\(.sjis\)*\(.cp1250\)*\(.cp1251\)*\(.cp936\)*.mo+\1+"`; \
    457 		mkdir dist/vim/$(VIMRTDIR)/lang/$$n; \
    458 		mkdir dist/vim/$(VIMRTDIR)/lang/$$n/LC_MESSAGES; \
    459 		cp $$i dist/vim/$(VIMRTDIR)/lang/$$n/LC_MESSAGES/vim.mo; \
    460 	      fi \
    461 	    done
    462 	mkdir dist/vim/$(VIMRTDIR)/gettext32
    463 	cp gettext32/libintl-8.dll dist/vim/$(VIMRTDIR)/gettext32/
    464 	cp gettext32/libiconv-2.dll dist/vim/$(VIMRTDIR)/gettext32/
    465 	cp gettext32/libgcc_s_sjlj-1.dll dist/vim/$(VIMRTDIR)/gettext32/
    466 	mkdir dist/vim/$(VIMRTDIR)/gettext64
    467 	cp gettext64/libintl-8.dll dist/vim/$(VIMRTDIR)/gettext64/
    468 	cp gettext64/libiconv-2.dll dist/vim/$(VIMRTDIR)/gettext64/
    469 
    470 
    471 # Used before uploading.  Don't delete the AAPDIR/sign files!
    472 runtime_unix2dos: dosrt_files
    473 	-rm -rf `find runtime/dos -type f -print | sed -e /AAPDIR/d`
    474 	cd dist/vim/$(VIMRTDIR); tar cf - * \
    475 		| (cd ../../../runtime/dos; tar xf -)
    476 
    477 dosbin: prepare dosbin_gvim dosbin_w32 dosbin_ole $(DOSBIN_S)
    478 	-rm $(IN_README_DIR)
    479 
    480 # make Win32 gvim
    481 dosbin_gvim: dist dist/$(COMMENT_GVIM)
    482 	-rm -rf dist/gvim$(VERSION).zip
    483 	-rm -rf dist/vim
    484 	mkdir dist/vim
    485 	mkdir dist/vim/$(VIMRTDIR)
    486 	tar cf - \
    487 		$(BIN_DOS) \
    488 		| (cd dist/vim/$(VIMRTDIR); tar xf -)
    489 	cp gvim.exe dist/vim/$(VIMRTDIR)/gvim.exe
    490 	cp teew32.exe dist/vim/$(VIMRTDIR)/tee.exe
    491 	cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe
    492 	cp vimrun.exe dist/vim/$(VIMRTDIR)/vimrun.exe
    493 	cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe
    494 	cp uninstallw32.exe dist/vim/$(VIMRTDIR)/uninstall.exe
    495 	mkdir dist/vim/$(VIMRTDIR)/GvimExt32
    496 	cp gvimext.dll dist/vim/$(VIMRTDIR)/GvimExt32/gvimext.dll
    497 	mkdir dist/vim/$(VIMRTDIR)/GvimExt64
    498 	cp gvimext64.dll dist/vim/$(VIMRTDIR)/GvimExt64/gvimext.dll
    499 	cd dist && zip -9 -rD -z gvim$(VERSION).zip vim <$(COMMENT_GVIM)
    500 	cp gvim.pdb dist/gvim$(VERSION).pdb
    501 
    502 # make Win32 console
    503 dosbin_w32: dist dist/$(COMMENT_W32)
    504 	-rm -rf dist/vim$(VERSION)w32.zip
    505 	-rm -rf dist/vim
    506 	mkdir dist/vim
    507 	mkdir dist/vim/$(VIMRTDIR)
    508 	tar cf - \
    509 		$(BIN_DOS) \
    510 		| (cd dist/vim/$(VIMRTDIR); tar xf -)
    511 	cp vimw32.exe dist/vim/$(VIMRTDIR)/vim.exe
    512 	cp teew32.exe dist/vim/$(VIMRTDIR)/tee.exe
    513 	cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe
    514 	cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe
    515 	cp uninstallw32.exe dist/vim/$(VIMRTDIR)/uninstall.exe
    516 	cd dist && zip -9 -rD -z vim$(VERSION)w32.zip vim <$(COMMENT_W32)
    517 	cp vimw32.pdb dist/vim$(VERSION)w32.pdb
    518 
    519 # make Win32 gvim with OLE
    520 dosbin_ole: dist dist/$(COMMENT_OLE)
    521 	-rm -rf dist/gvim$(VERSION)ole.zip
    522 	-rm -rf dist/vim
    523 	mkdir dist/vim
    524 	mkdir dist/vim/$(VIMRTDIR)
    525 	tar cf - \
    526 		$(BIN_DOS) \
    527 		| (cd dist/vim/$(VIMRTDIR); tar xf -)
    528 	cp gvim_ole.exe dist/vim/$(VIMRTDIR)/gvim.exe
    529 	cp teew32.exe dist/vim/$(VIMRTDIR)/tee.exe
    530 	cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe
    531 	cp vimrun.exe dist/vim/$(VIMRTDIR)/vimrun.exe
    532 	cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe
    533 	cp uninstallw32.exe dist/vim/$(VIMRTDIR)/uninstall.exe
    534 	cp gvimext.dll dist/vim/$(VIMRTDIR)/gvimext.dll
    535 	cp README_ole.txt dist/vim/$(VIMRTDIR)
    536 	cd dist && zip -9 -rD -z gvim$(VERSION)ole.zip vim <$(COMMENT_OLE)
    537 	cp gvim_ole.pdb dist/gvim$(VERSION)ole.pdb
    538 
    539 html: dist dist/$(COMMENT_HTML)
    540 	-rm -rf dist/vim$(VERSION)html.zip
    541 	cd runtime/doc && zip -9 -z ../../dist/vim$(VERSION)html.zip *.html <../../dist/$(COMMENT_HTML)
    542 
    543 farsi: dist dist/$(COMMENT_FARSI)
    544 	-rm -f dist/farsi$(VERSION).zip
    545 	zip -9 -rD -z dist/farsi$(VERSION).zip farsi < dist/$(COMMENT_FARSI)