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 25first: 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# Some make programs use the last target for the $@ default; put the other 34# targets separately to always let $@ expand to "first" by default. 35all install uninstall tools config configure reconfig proto depend lint tags types test testclean clean distclean: 36 @if test ! -f src/auto/config.mk; then \ 37 cp src/config.mk.dist src/auto/config.mk; \ 38 fi 39 @echo "Starting make in the src directory." 40 @echo "If there are problems, cd to the src directory and run make there" 41 cd src && $(MAKE) $@ 42 43 44######################################################################### 45# 2. Creating the various distribution files. 46# 47# TARGET PRODUCES CONTAINS 48# unixall vim-#.#.tar.bz2 All runtime files and sources, for Unix 49# 50# html vim##html.zip HTML docs 51# 52# dossrc vim##src.zip sources for MS-DOS 53# dosrt vim##rt.zip runtime for MS-DOS 54# dosbin vim##d16.zip binary for MS-DOS 16 bits 55# vim##d32.zip binary for MS-DOS 32 bits 56# vim##w32.zip binary for Win32 57# gvim##.zip binary for GUI Win32 58# gvim##ole.zip OLE exe for Win32 GUI 59# gvim##_s.zip exe for Win32s GUI 60# 61# OBSOLETE 62# amisrc vim##src.tgz sources for Amiga 63# amirt vim##rt.tgz runtime for Amiga 64# amibin vim##bin.tgz binary for Amiga 65# 66# os2bin vim##os2.zip binary for OS/2 67# (use RT from dosrt) 68# 69# farsi farsi##.zip Farsi fonts 70# 71# All output files are created in the "dist" directory. Existing files are 72# overwritten! 73# To do all this you need the Unix archive and compiled binaries. 74# Before creating an archive first delete all backup files, *.orig, etc. 75 76MAJOR = 7 77MINOR = 3 78 79# Uncomment this line if the Win32s version is to be included. 80DOSBIN_S = dosbin_s 81 82# Uncomment this line if the 16 bit DOS version is to be included. 83# DOSBIN_D16 = dosbin_d16 84 85# CHECKLIST for creating a new version: 86# 87# - Update Vim version number. For a test version in: src/version.h, Contents, 88# MAJOR/MINOR above, VIMMAJOR and VIMMINOR in src/Makefile, README*.txt, 89# runtime/doc/*.txt and nsis/gvim.nsi. Other things in README_os2.txt. For a 90# minor/major version: src/GvimExt/GvimExt.reg, src/vim.def, src/vim16.def, 91# src/gvim.exe.mnf. 92# - Adjust the date and other info in src/version.h. 93# - Correct included_patches[] in src/version.c. 94# - Compile Vim with GTK, Perl, Python, Python3, TCL, Ruby, MZscheme, Lua (if 95# you can make it all work), Cscope and "huge" features. Exclude workshop 96# and SNiFF. 97# - With these features: "make proto" (requires cproto and Motif installed; 98# ignore warnings for missing include files, fix problems for syntax errors). 99# - With these features: "make depend" (works best with gcc). 100# - If you have a lint program: "make lint" and check the output (ignore GTK 101# warnings). 102# - Enable the efence library in "src/Makefile" and run "make test". Disable 103# Python and Ruby to avoid trouble with threads (efence is not threadsafe). 104# - Check for missing entries in runtime/makemenu.vim (with checkmenu script). 105# - Check for missing options in runtime/optwin.vim et al. (with check.vim). 106# - Do "make menu" to update the runtime/synmenu.vim file. 107# - Add remarks for changes to runtime/doc/version7.txt. 108# - Check that runtime/doc/help.txt doesn't contain entries in "LOCAL 109# ADDITIONS". 110# - In runtime/doc run "make" and "make html" to check for errors. 111# - Check if src/Makefile and src/feature.h don't contain any personal 112# preferences or the GTK, Perl, etc. mentioned above. 113# - Check file protections to be "644" for text and "755" for executables (run 114# the "check" script). 115# - Check compiling on Amiga, MS-DOS and MS-Windows. 116# - Delete all *~, *.sw?, *.orig, *.rej files 117# - "make unixall", "make html" 118# - Make diff files against the previous release: "makediff7 7.1 7.2" 119# 120# Amiga: (OBSOLETE, Amiga files are no longer distributed) 121# - "make amisrc", move the archive to the Amiga and compile: 122# "make -f Make_manx.mak" (will use "big" features by default). 123# - Run the tests: "make -f Make_manx.mak test" 124# - Place the executables Vim and Xxd in this directory (set the executable 125# flag). 126# - "make amirt", "make amibin". 127# 128# PC: 129# - Run make on Unix to update the ".mo" files. 130# - "make dossrc" and "make dosrt". Unpack the archives on a PC. 131# Win32 console version: 132# - Set environment for Visual C++ 2008, e.g.: "msvc2008.bat" Or: 133# "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat". 134# Or, when using the Visual C++ Toolkit 2003: "msvcsetup.bat" (adjust the 135# paths when necessary). 136# For Windows 98/ME the 2003 version is required, but then the executable 137# won't work on Windows 7 and 64 bit. 138# - "nmake -f Make_mvc.mak" (use the same path as for vcvars32.bat) 139# - "rm testdir/*.out", "nmake -f Make_mvc.mak test" and check the output. 140# - Rename vim.exe to vimw32.exe, xxd/xxd.exe to xxdw32.exe. 141# - Rename vim.pdb to vimw32.pdb. 142# - Rename install.exe to installw32.exe and uninstal.exe to uninstalw32.exe. 143# Win32 GUI version: 144# - "nmake -f Make_mvc.mak GUI=yes" 145# - move "gvim.exe" to here (otherwise the OLE version will overwrite it). 146# - Move gvim.pdb to here. 147# - Delete vimrun.exe, install.exe and uninstal.exe. 148# - Copy "GvimExt/gvimext.dll" to here. 149# Win32 GUI version with OLE, PERL, TCL, PYTHON and dynamic IME: 150# - Run src/bigvim.bat ("nmake -f Make_mvc.mak GUI=yes OLE=yes IME=yes ...) 151# - Rename "gvim.exe" to "gvim_ole.exe". 152# - Rename gvim.pdb to "gvim_ole.pdb". 153# - Delete install.exe and uninstal.exe. 154# Create the archives: 155# - Copy all the "*.exe" files to where this Makefile is. 156# - Copy all the "*.pdb" files to where this Makefile is. 157# - "make dosbin". 158# NSIS self installing exe: 159# - To get NSIS see http://nsis.sourceforge.net 160# - Make sure gvim_ole.exe, vimw32.exe, installw32.exe, 161# uninstalw32.exe and xxdw32.exe have been build as mentioned above. 162# - copy these files (get them from a binary archive or build them): 163# gvimext.dll in src/GvimExt 164# gvimext64.dll in src/GvimExt 165# VisVim.dll in src/VisVim 166# Note: VisVim needs to be build with MSVC 5, newer versions don't work. 167# gvimext64.dll can be obtained from http://code.google.com/p/vim-win3264/ 168# It is part of vim72.zip as vim72/gvimext.dll. 169# - make sure there is a diff.exe two levels up 170# - go to ../nsis and do "makensis gvim.nsi" (takes a few minutes). 171# - Copy gvim##.exe to the dist directory. 172# 173# 64 bit builds (these are not in the normal distribution, the 32 bit build 174# works just fine on 64 bit systems). 175# Like the console and GUI version, but first run vcvars64.bat or 176# "..\VC\vcvarsall.bat x86_amd64". 177# - "nmake -f Make_mvc.mak" 178# - "nmake -f Make_mvc.mak GUI=yes" 179# Or run src/bigvim64.bat for an OLE version. 180# 181# OBSOLETE systems: You can build this if you have an appropriate system. 182# 183# 16 bit DOS version: (doesn't build anywhere) 184# - Set environment for compiling with Borland C++ 3.1. 185# - "bmake -f Make_bc3.mak BOR=E:\borlandc" (compiling xxd might fail, in that 186# case set environment for compiling with Borland C++ 4.0 and do 187# "make -f make_bc3.mak BOR=E:\BC4 xxd/xxd.exe"). 188# NOTE: this currently fails because Vim is too big. 189# - "make test" and check the output. 190# - Rename the executables to "vimd16.exe", "xxdd16.exe", "installd16.exe" and 191# "uninstald16.exe". 192# 193# 32 bit DOS version: (requires Windows XP or earlier) 194# - Set environment for compiling with DJGPP; "gmake -f Make_djg.mak". 195# - "rm testdir/*.out", "gmake -f Make_djg.mak test" and check the output for 196# "ALL DONE". 197# - Rename the executables to "vimd32.exe", "xxdd32.exe", "installd32.exe" and 198# "uninstald32.exe". 199# 200# Win32s GUI version: (requires very old compiler) 201# - Set environment for Visual C++ 4.1 (requires a new console window): 202# "vcvars32.bat" (use the path for VC 4.1 e:\msdev\bin) 203# - "nmake -f Make_mvc.mak GUI=yes INTL=no clean" (use the path for VC 4.1) 204# - "nmake -f Make_mvc.mak GUI=yes INTL=no" (use the path for VC 4.1) 205# - Rename "gvim.exe" to "gvim_w32s.exe". 206# - Rename "install.exe" to "installw32.exe" 207# - Rename "uninstal.exe" to "uninstalw32.exe" 208# - The produced uninstalw32.exe and vimrun.exe are used. 209# 210# OS/2: (requires an OS/2 system) 211# - Unpack the Unix archive. 212# - "make -f Make_os2.mak". 213# - Rename the executables to vimos2.exe, xxdos2.exe and teeos2.exe and copy 214# them to here. 215# - "make os2bin". 216 217VIMVER = vim-$(MAJOR).$(MINOR) 218VERSION = $(MAJOR)$(MINOR) 219VDOT = $(MAJOR).$(MINOR) 220VIMRTDIR = vim$(VERSION) 221 222# Vim used for conversion from "unix" to "dos" 223VIM = vim 224 225# How to include Filelist depends on the version of "make" you have. 226# If the current choice doesn't work, try the other one. 227 228include Filelist 229#.include "Filelist" 230 231 232# All output is put in the "dist" directory. 233dist: 234 mkdir dist 235 236# Clean up some files to avoid they are included. 237prepare: 238 if test -f runtime/doc/uganda.nsis.txt; then \ 239 rm runtime/doc/uganda.nsis.txt; fi 240 241# For the zip files we need to create a file with the comment line 242dist/comment: 243 mkdir dist/comment 244 245COMMENT_RT = comment/$(VERSION)-rt 246COMMENT_D16 = comment/$(VERSION)-bin-d16 247COMMENT_D32 = comment/$(VERSION)-bin-d32 248COMMENT_W32 = comment/$(VERSION)-bin-w32 249COMMENT_GVIM = comment/$(VERSION)-bin-gvim 250COMMENT_OLE = comment/$(VERSION)-bin-ole 251COMMENT_W32S = comment/$(VERSION)-bin-w32s 252COMMENT_SRC = comment/$(VERSION)-src 253COMMENT_OS2 = comment/$(VERSION)-bin-os2 254COMMENT_HTML = comment/$(VERSION)-html 255COMMENT_FARSI = comment/$(VERSION)-farsi 256 257dist/$(COMMENT_RT): dist/comment 258 echo "Vim - Vi IMproved - v$(VDOT) runtime files for MS-DOS and MS-Windows" > dist/$(COMMENT_RT) 259 260dist/$(COMMENT_D16): dist/comment 261 echo "Vim - Vi IMproved - v$(VDOT) binaries for MS-DOS 16 bit real mode" > dist/$(COMMENT_D16) 262 263dist/$(COMMENT_D32): dist/comment 264 echo "Vim - Vi IMproved - v$(VDOT) binaries for MS-DOS 32 bit protected mode" > dist/$(COMMENT_D32) 265 266dist/$(COMMENT_W32): dist/comment 267 echo "Vim - Vi IMproved - v$(VDOT) binaries for MS-Windows NT/95" > dist/$(COMMENT_W32) 268 269dist/$(COMMENT_GVIM): dist/comment 270 echo "Vim - Vi IMproved - v$(VDOT) GUI binaries for MS-Windows NT/95" > dist/$(COMMENT_GVIM) 271 272dist/$(COMMENT_OLE): dist/comment 273 echo "Vim - Vi IMproved - v$(VDOT) MS-Windows GUI binaries with OLE support" > dist/$(COMMENT_OLE) 274 275dist/$(COMMENT_W32S): dist/comment 276 echo "Vim - Vi IMproved - v$(VDOT) GUI binaries for MS-Windows 3.1/3.11" > dist/$(COMMENT_W32S) 277 278dist/$(COMMENT_SRC): dist/comment 279 echo "Vim - Vi IMproved - v$(VDOT) sources for MS-DOS and MS-Windows" > dist/$(COMMENT_SRC) 280 281dist/$(COMMENT_OS2): dist/comment 282 echo "Vim - Vi IMproved - v$(VDOT) binaries + runtime files for OS/2" > dist/$(COMMENT_OS2) 283 284dist/$(COMMENT_HTML): dist/comment 285 echo "Vim - Vi IMproved - v$(VDOT) documentation in HTML" > dist/$(COMMENT_HTML) 286 287dist/$(COMMENT_FARSI): dist/comment 288 echo "Vim - Vi IMproved - v$(VDOT) Farsi language files" > dist/$(COMMENT_FARSI) 289 290unixall: dist prepare 291 -rm -f dist/$(VIMVER).tar.bz2 292 -rm -rf dist/$(VIMRTDIR) 293 mkdir dist/$(VIMRTDIR) 294 tar cf - \ 295 $(RT_ALL) \ 296 $(RT_ALL_BIN) \ 297 $(RT_UNIX) \ 298 $(RT_UNIX_DOS_BIN) \ 299 $(RT_SCRIPTS) \ 300 $(LANG_GEN) \ 301 $(LANG_GEN_BIN) \ 302 $(SRC_ALL) \ 303 $(SRC_UNIX) \ 304 $(SRC_DOS_UNIX) \ 305 $(EXTRA) \ 306 $(LANG_SRC) \ 307 | (cd dist/$(VIMRTDIR); tar xf -) 308# Need to use a "distclean" config.mk file 309# Note: this file is not included in the repository to avoid problems, but it's 310# OK to put it in the archive. 311 cp -f src/config.mk.dist dist/$(VIMRTDIR)/src/auto/config.mk 312# Create an empty config.h file, make dependencies require it 313 touch dist/$(VIMRTDIR)/src/auto/config.h 314# Make sure configure is newer than config.mk to force it to be generated 315 touch dist/$(VIMRTDIR)/src/configure 316# Make sure ja.sjis.po is newer than ja.po to avoid it being regenerated. 317# Same for cs.cp1250.po, pl.cp1250.po and sk.cp1250.po. 318 touch dist/$(VIMRTDIR)/src/po/ja.sjis.po 319 touch dist/$(VIMRTDIR)/src/po/cs.cp1250.po 320 touch dist/$(VIMRTDIR)/src/po/pl.cp1250.po 321 touch dist/$(VIMRTDIR)/src/po/sk.cp1250.po 322 touch dist/$(VIMRTDIR)/src/po/zh_CN.cp936.po 323 touch dist/$(VIMRTDIR)/src/po/ru.cp1251.po 324 touch dist/$(VIMRTDIR)/src/po/uk.cp1251.po 325# Create the archive. 326 cd dist && tar cf $(VIMVER).tar $(VIMRTDIR) 327 bzip2 dist/$(VIMVER).tar 328 329# Amiga runtime - OBSOLETE 330amirt: dist prepare 331 -rm -f dist/vim$(VERSION)rt.tar.gz 332 -rm -rf dist/Vim 333 mkdir dist/Vim 334 mkdir dist/Vim/$(VIMRTDIR) 335 tar cf - \ 336 $(ROOT_AMI) \ 337 $(RT_ALL) \ 338 $(RT_ALL_BIN) \ 339 $(RT_SCRIPTS) \ 340 $(RT_AMI) \ 341 $(RT_NO_UNIX) \ 342 $(RT_AMI_DOS) \ 343 | (cd dist/Vim/$(VIMRTDIR); tar xf -) 344 mv dist/Vim/$(VIMRTDIR)/vimdir.info dist/Vim.info 345 mv dist/Vim/$(VIMRTDIR)/runtime.info dist/Vim/$(VIMRTDIR).info 346 mv dist/Vim/$(VIMRTDIR)/runtime/* dist/Vim/$(VIMRTDIR) 347 rmdir dist/Vim/$(VIMRTDIR)/runtime 348 cd dist && tar cf vim$(VERSION)rt.tar Vim Vim.info 349 gzip -9 dist/vim$(VERSION)rt.tar 350 mv dist/vim$(VERSION)rt.tar.gz dist/vim$(VERSION)rt.tgz 351 352# Amiga binaries - OBSOLETE 353amibin: dist prepare 354 -rm -f dist/vim$(VERSION)bin.tar.gz 355 -rm -rf dist/Vim 356 mkdir dist/Vim 357 mkdir dist/Vim/$(VIMRTDIR) 358 tar cf - \ 359 $(ROOT_AMI) \ 360 $(BIN_AMI) \ 361 Vim \ 362 Xxd \ 363 | (cd dist/Vim/$(VIMRTDIR); tar xf -) 364 mv dist/Vim/$(VIMRTDIR)/vimdir.info dist/Vim.info 365 mv dist/Vim/$(VIMRTDIR)/runtime.info dist/Vim/$(VIMRTDIR).info 366 cd dist && tar cf vim$(VERSION)bin.tar Vim Vim.info 367 gzip -9 dist/vim$(VERSION)bin.tar 368 mv dist/vim$(VERSION)bin.tar.gz dist/vim$(VERSION)bin.tgz 369 370# Amiga sources - OBSOLETE 371amisrc: dist prepare 372 -rm -f dist/vim$(VERSION)src.tar.gz 373 -rm -rf dist/Vim 374 mkdir dist/Vim 375 mkdir dist/Vim/$(VIMRTDIR) 376 tar cf - \ 377 $(ROOT_AMI) \ 378 $(SRC_ALL) \ 379 $(SRC_AMI) \ 380 $(SRC_AMI_DOS) \ 381 | (cd dist/Vim/$(VIMRTDIR); tar xf -) 382 mv dist/Vim/$(VIMRTDIR)/vimdir.info dist/Vim.info 383 mv dist/Vim/$(VIMRTDIR)/runtime.info dist/Vim/$(VIMRTDIR).info 384 cd dist && tar cf vim$(VERSION)src.tar Vim Vim.info 385 gzip -9 dist/vim$(VERSION)src.tar 386 mv dist/vim$(VERSION)src.tar.gz dist/vim$(VERSION)src.tgz 387 388no_title.vim: Makefile 389 echo "set notitle noicon nocp nomodeline viminfo=" >no_title.vim 390 391# MS-DOS sources 392dossrc: dist no_title.vim dist/$(COMMENT_SRC) runtime/doc/uganda.nsis.txt 393 -rm -rf dist/vim$(VERSION)src.zip 394 -rm -rf dist/vim 395 mkdir dist/vim 396 mkdir dist/vim/$(VIMRTDIR) 397 tar cf - \ 398 $(SRC_ALL) \ 399 $(SRC_DOS) \ 400 $(SRC_AMI_DOS) \ 401 $(SRC_DOS_UNIX) \ 402 runtime/doc/uganda.nsis.txt \ 403 | (cd dist/vim/$(VIMRTDIR); tar xf -) 404 mv dist/vim/$(VIMRTDIR)/runtime/* dist/vim/$(VIMRTDIR) 405 rmdir dist/vim/$(VIMRTDIR)/runtime 406 find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \; 407 tar cf - \ 408 $(SRC_DOS_BIN) \ 409 | (cd dist/vim/$(VIMRTDIR); tar xf -) 410 cd dist && zip -9 -rD -z vim$(VERSION)src.zip vim <$(COMMENT_SRC) 411 412runtime/doc/uganda.nsis.txt: runtime/doc/uganda.txt 413 cd runtime/doc && $(MAKE) uganda.nsis.txt 414 415dosrt: dist dist/$(COMMENT_RT) dosrt_unix2dos 416 -rm -rf dist/vim$(VERSION)rt.zip 417 cd dist && zip -9 -rD -z vim$(VERSION)rt.zip vim <$(COMMENT_RT) 418 419# Split in two parts to avoid an "argument list too long" error. 420dosrt_unix2dos: dist prepare no_title.vim 421 -rm -rf dist/vim 422 mkdir dist/vim 423 mkdir dist/vim/$(VIMRTDIR) 424 mkdir dist/vim/$(VIMRTDIR)/lang 425 cd src && MAKEMO=yes $(MAKE) languages 426 tar cf - \ 427 $(RT_ALL) \ 428 | (cd dist/vim/$(VIMRTDIR); tar xf -) 429 tar cf - \ 430 $(RT_SCRIPTS) \ 431 $(RT_DOS) \ 432 $(RT_NO_UNIX) \ 433 $(RT_AMI_DOS) \ 434 $(LANG_GEN) \ 435 | (cd dist/vim/$(VIMRTDIR); tar xf -) 436 find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \; 437 tar cf - \ 438 $(RT_UNIX_DOS_BIN) \ 439 $(RT_ALL_BIN) \ 440 $(RT_DOS_BIN) \ 441 $(LANG_GEN_BIN) \ 442 | (cd dist/vim/$(VIMRTDIR); tar xf -) 443 mv dist/vim/$(VIMRTDIR)/runtime/* dist/vim/$(VIMRTDIR) 444 rmdir dist/vim/$(VIMRTDIR)/runtime 445# Add the message translations. Trick: skip ja.mo and use ja.sjis.mo instead. 446# Same for cs.mo / cs.cp1250.mo, pl.mo / pl.cp1250.mo, sk.mo / sk.cp1250.mo, 447# zh_CN.mo / zh_CN.cp936.mo, uk.mo / uk.cp1251.mo and ru.mo / ru.cp1251.mo. 448 for i in $(LANG_DOS); do \ 449 if test "$$i" != "src/po/ja.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 \ 450 n=`echo $$i | sed -e "s+src/po/\([-a-zA-Z0-9_]*\(.UTF-8\)*\)\(.sjis\)*\(.cp1250\)*\(.cp1251\)*\(.cp936\)*.mo+\1+"`; \ 451 mkdir dist/vim/$(VIMRTDIR)/lang/$$n; \ 452 mkdir dist/vim/$(VIMRTDIR)/lang/$$n/LC_MESSAGES; \ 453 cp $$i dist/vim/$(VIMRTDIR)/lang/$$n/LC_MESSAGES/vim.mo; \ 454 fi \ 455 done 456 cp libintl.dll dist/vim/$(VIMRTDIR)/ 457 458 459# Convert runtime files from Unix fileformat to dos fileformat. 460# Used before uploading. Don't delete the AAPDIR/sign files! 461runtime_unix2dos: dosrt_unix2dos 462 -rm -rf `find runtime/dos -type f -print | sed -e /AAPDIR/d` 463 cd dist/vim/$(VIMRTDIR); tar cf - * \ 464 | (cd ../../../runtime/dos; tar xf -) 465 466dosbin: prepare dosbin_gvim dosbin_w32 dosbin_d32 dosbin_ole $(DOSBIN_S) $(DOSBIN_D16) 467 468# make Win32 gvim 469dosbin_gvim: dist no_title.vim dist/$(COMMENT_GVIM) 470 -rm -rf dist/gvim$(VERSION).zip 471 -rm -rf dist/vim 472 mkdir dist/vim 473 mkdir dist/vim/$(VIMRTDIR) 474 tar cf - \ 475 $(BIN_DOS) \ 476 | (cd dist/vim/$(VIMRTDIR); tar xf -) 477 find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \; 478 cp gvim.exe dist/vim/$(VIMRTDIR)/gvim.exe 479 cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe 480 cp vimrun.exe dist/vim/$(VIMRTDIR)/vimrun.exe 481 cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe 482 cp uninstalw32.exe dist/vim/$(VIMRTDIR)/uninstal.exe 483 cp gvimext.dll dist/vim/$(VIMRTDIR)/gvimext.dll 484 cd dist && zip -9 -rD -z gvim$(VERSION).zip vim <$(COMMENT_GVIM) 485 cp gvim.pdb dist/gvim$(VERSION).pdb 486 487# make Win32 console 488dosbin_w32: dist no_title.vim dist/$(COMMENT_W32) 489 -rm -rf dist/vim$(VERSION)w32.zip 490 -rm -rf dist/vim 491 mkdir dist/vim 492 mkdir dist/vim/$(VIMRTDIR) 493 tar cf - \ 494 $(BIN_DOS) \ 495 | (cd dist/vim/$(VIMRTDIR); tar xf -) 496 find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \; 497 cp vimw32.exe dist/vim/$(VIMRTDIR)/vim.exe 498 cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe 499 cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe 500 cp uninstalw32.exe dist/vim/$(VIMRTDIR)/uninstal.exe 501 cd dist && zip -9 -rD -z vim$(VERSION)w32.zip vim <$(COMMENT_W32) 502 cp vimw32.pdb dist/vim$(VERSION)w32.pdb 503 504# make 32bit DOS 505dosbin_d32: dist no_title.vim dist/$(COMMENT_D32) 506 -rm -rf dist/vim$(VERSION)d32.zip 507 -rm -rf dist/vim 508 mkdir dist/vim 509 mkdir dist/vim/$(VIMRTDIR) 510 tar cf - \ 511 $(BIN_DOS) \ 512 | (cd dist/vim/$(VIMRTDIR); tar xf -) 513 find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \; 514 cp vimd32.exe dist/vim/$(VIMRTDIR)/vim.exe 515 cp xxdd32.exe dist/vim/$(VIMRTDIR)/xxd.exe 516 cp installd32.exe dist/vim/$(VIMRTDIR)/install.exe 517 cp uninstald32.exe dist/vim/$(VIMRTDIR)/uninstal.exe 518 cp csdpmi4b.zip dist/vim/$(VIMRTDIR) 519 cd dist && zip -9 -rD -z vim$(VERSION)d32.zip vim <$(COMMENT_D32) 520 521# make 16bit DOS 522dosbin_d16: dist no_title.vim dist/$(COMMENT_D16) 523 -rm -rf dist/vim$(VERSION)d16.zip 524 -rm -rf dist/vim 525 mkdir dist/vim 526 mkdir dist/vim/$(VIMRTDIR) 527 tar cf - \ 528 $(BIN_DOS) \ 529 | (cd dist/vim/$(VIMRTDIR); tar xf -) 530 find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \; 531 cp vimd16.exe dist/vim/$(VIMRTDIR)/vim.exe 532 cp xxdd16.exe dist/vim/$(VIMRTDIR)/xxd.exe 533 cp installd16.exe dist/vim/$(VIMRTDIR)/install.exe 534 cp uninstald16.exe dist/vim/$(VIMRTDIR)/uninstal.exe 535 cd dist && zip -9 -rD -z vim$(VERSION)d16.zip vim <$(COMMENT_D16) 536 537# make Win32 gvim with OLE 538dosbin_ole: dist no_title.vim dist/$(COMMENT_OLE) 539 -rm -rf dist/gvim$(VERSION)ole.zip 540 -rm -rf dist/vim 541 mkdir dist/vim 542 mkdir dist/vim/$(VIMRTDIR) 543 tar cf - \ 544 $(BIN_DOS) \ 545 | (cd dist/vim/$(VIMRTDIR); tar xf -) 546 find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \; 547 cp gvim_ole.exe dist/vim/$(VIMRTDIR)/gvim.exe 548 cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe 549 cp vimrun.exe dist/vim/$(VIMRTDIR)/vimrun.exe 550 cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe 551 cp uninstalw32.exe dist/vim/$(VIMRTDIR)/uninstal.exe 552 cp gvimext.dll dist/vim/$(VIMRTDIR)/gvimext.dll 553 cp README_ole.txt dist/vim/$(VIMRTDIR) 554 cp src/VisVim/VisVim.dll dist/vim/$(VIMRTDIR)/VisVim.dll 555 cp src/VisVim/README_VisVim.txt dist/vim/$(VIMRTDIR) 556 cd dist && zip -9 -rD -z gvim$(VERSION)ole.zip vim <$(COMMENT_OLE) 557 cp gvim_ole.pdb dist/gvim$(VERSION)ole.pdb 558 559# make Win32s gvim 560dosbin_s: dist no_title.vim dist/$(COMMENT_W32S) 561 -rm -rf dist/gvim$(VERSION)_s.zip 562 -rm -rf dist/vim 563 mkdir dist/vim 564 mkdir dist/vim/$(VIMRTDIR) 565 tar cf - \ 566 $(BIN_DOS) \ 567 | (cd dist/vim/$(VIMRTDIR); tar xf -) 568 find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \; 569 cp gvim_w32s.exe dist/vim/$(VIMRTDIR)/gvim.exe 570 cp xxdd32.exe dist/vim/$(VIMRTDIR)/xxd.exe 571 cp README_w32s.txt dist/vim/$(VIMRTDIR) 572 cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe 573 cp uninstalw32.exe dist/vim/$(VIMRTDIR)/uninstal.exe 574 cd dist && zip -9 -rD -z gvim$(VERSION)_s.zip vim <$(COMMENT_W32S) 575 576os2bin: dist no_title.vim dist/$(COMMENT_OS2) 577 -rm -rf dist/vim$(VERSION)os2.zip 578 -rm -rf dist/vim 579 mkdir dist/vim 580 mkdir dist/vim/$(VIMRTDIR) 581 tar cf - \ 582 $(BIN_OS2) \ 583 | (cd dist/vim/$(VIMRTDIR); tar xf -) 584 find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \; 585 cp vimos2.exe dist/vim/$(VIMRTDIR)/vim.exe 586 cp xxdos2.exe dist/vim/$(VIMRTDIR)/xxd.exe 587 cp teeos2.exe dist/vim/$(VIMRTDIR)/tee.exe 588 cp emx.dll emxlibcs.dll dist/vim/$(VIMRTDIR) 589 cd dist && zip -9 -rD -z vim$(VERSION)os2.zip vim <$(COMMENT_OS2) 590 591html: dist dist/$(COMMENT_HTML) 592 -rm -rf dist/vim$(VERSION)html.zip 593 cd runtime/doc && zip -9 -z ../../dist/vim$(VERSION)html.zip *.html <../../dist/$(COMMENT_HTML) 594 595farsi: dist dist/$(COMMENT_FARSI) 596 -rm -f dist/farsi$(VERSION).zip 597 zip -9 -rD -z dist/farsi$(VERSION).zip farsi < dist/$(COMMENT_FARSI) 598