@@ -63,9 +63,6 @@ all install uninstall tools config configure reconfig proto depend lint tags typ
6363# amirt vim##rt.tgz runtime for Amiga
6464# amibin vim##bin.tgz binary for Amiga
6565#
66- # os2bin vim##os2.zip binary for OS/2
67- # (use RT from dosrt)
68- #
6966# farsi farsi##.zip Farsi fonts
7067#
7168# All output files are created in the "dist" directory. Existing files are
@@ -89,9 +86,9 @@ MINOR = 4
8986#
9087# - Update Vim version number. For a test version in: src/version.h, Contents,
9188# MAJOR/MINOR above, VIMMAJOR and VIMMINOR in src/Makefile, README*.txt,
92- # runtime/doc/*.txt and nsis/gvim.nsi. Other things in README_os2.txt. For a
93- # minor/major version: src/GvimExt/GvimExt.reg, src/vim.def, src/vim16 .def,
94- # src/gvim.exe.mnf.
89+ # runtime/doc/*.txt and nsis/gvim.nsi.
90+ # For a minor/major version: src/GvimExt/GvimExt.reg, src/vim.def,
91+ # src/vim16.def, src/ gvim.exe.mnf.
9592# - Compile Vim with GTK, Perl, Python, Python3, TCL, Ruby, MZscheme, Lua (if
9693# you can make it all work), Cscope and "huge" features. Exclude workshop
9794# and SNiFF.
@@ -132,49 +129,58 @@ MINOR = 4
132129# flag).
133130# - "make amirt", "make amibin".
134131#
135- # PC :
132+ # MS-Windows :
136133# - Run make on Unix to update the ".mo" files.
137- # - "make dossrc" and "make dosrt". Unpack the archives on a PC.
138- # Win32 console version:
139- # - Set environment for Visual C++ 2008, e.g.: "msvc2008.bat" Or:
140- # "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat".
134+ # - > make dossrc
135+ # > make dosrt
136+ # Unpack dist/vim##rt.zip and dist/vim##src.zip on an MS-Windows PC.
137+ # Win32 console version build:
138+ # - Set environment for Visual C++ 2008, e.g.:
139+ # > src/msvc2008.bat
140+ # Or:
141+ # > C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat
141142# Or, when using the Visual C++ Toolkit 2003: "msvcsetup.bat" (adjust the
142143# paths when necessary).
143144# For Windows 98/ME the 2003 version is required, but then the executable
144145# won't work on Windows 7 and 64 bit systems.
145- # - "nmake -f Make_mvc.mak" (use the same path as for vcvars32.bat)
146+ # - > cd src
147+ # > nmake -f Make_mvc.mak
146148# - Run the tests:
147- # > rm testdir/*.out
149+ # > rm testdir/*.out testdir/*.res
148150# > nmake -f Make_mvc.mak test
149151# - check the output.
150152# - Rename vim.exe to vimw32.exe, xxd/xxd.exe to xxdw32.exe.
151153# - Rename vim.pdb to vimw32.pdb.
152154# - Rename install.exe to installw32.exe and uninstal.exe to uninstalw32.exe.
153- # Win32 GUI version:
154- # - "nmake -f Make_mvc.mak GUI=yes"
155+ # Win32 GUI version build:
156+ # - > cd src
157+ # > nmake -f Make_mvc.mak GUI=yes
155158# - Run the tests:
156- # > cd testdir
157- # > rm *.out
158- # > nmake -f Make_dos.mak VIMPROG=..\gvim
159+ # > rm testdir/*.out testdir/*.res
160+ # > nmake -f Make_mvc.mak testgvim
159161# - check the output.
160162# - move "gvim.exe" to here (otherwise the OLE version will overwrite it).
161163# - Move gvim.pdb to here.
162- # - Delete vimrun.exe, install.exe and uninstal.exe.
163164# - Copy "GvimExt/gvimext.dll" to here.
165+ # - Delete vimrun.exe, install.exe and uninstal.exe.
164166# Win32 GUI version with OLE, PERL, TCL, PYTHON and dynamic IME:
165- # - Run src/bigvim.bat ("nmake -f Make_mvc.mak GUI=yes OLE=yes IME=yes ...)
167+ # - Install the interfaces you want, see src/INSTALLpc.txt
168+ # - Build:
169+ # > cd src
170+ # Adjust bigvim.bat to match the version of each interface you want.
171+ # > bigvim.bat
166172# - Run the tests:
167- # > cd testdir
168- # > rm *.out
169- # > nmake -f Make_dos.mak VIMPROG=..\gvim
173+ # > rm testdir/*.out testdir/*.res
174+ # > nmake -f Make_mvc.mak testgvim
170175# - check the output.
171176# - Rename "gvim.exe" to "gvim_ole.exe".
172177# - Rename gvim.pdb to "gvim_ole.pdb".
173178# - Delete install.exe and uninstal.exe.
174179# Create the archives:
175180# - Copy all the "*.exe" files to where this Makefile is.
176181# - Copy all the "*.pdb" files to where this Makefile is.
177- # - "make dosbin".
182+ # - in this directory:
183+ # > make dosbin
178184# NSIS self installing exe:
179185# - To get NSIS see http://nsis.sourceforge.net
180186# - Make sure gvim_ole.exe, vimw32.exe, installw32.exe,
@@ -186,17 +192,23 @@ MINOR = 4
186192# Note: VisVim needs to be build with MSVC 5, newer versions don't work.
187193# gvimext64.dll can be obtained from http://code.google.com/p/vim-win3264/
188194# It is part of vim72.zip as vim72/gvimext.dll.
189- # - make sure there is a diff.exe two levels up
190- # - go to ../nsis and do "makensis gvim.nsi" (takes a few minutes).
195+ # - Make sure there is a diff.exe two levels up (get it from a previous Vim
196+ # version).
197+ # - go to ../nsis and do:
198+ # > makensis gvim.nsi (takes a few minutes).
191199# - Copy gvim##.exe to the dist directory.
192200#
193201# 64 bit builds (these are not in the normal distribution, the 32 bit build
194202# works just fine on 64 bit systems).
195203# Like the console and GUI version, but first run vcvars64.bat or
196204# "..\VC\vcvarsall.bat x86_amd64".
197- # - "nmake -f Make_mvc.mak"
198- # - "nmake -f Make_mvc.mak GUI=yes"
199- # Or run src/bigvim64.bat for an OLE version.
205+ # - Build the console version:
206+ # > nmake -f Make_mvc.mak
207+ # - Build the GUI version:
208+ # > nmake -f Make_mvc.mak GUI=yes
209+ # - Build the OLE version with interfaces:
210+ # > bigvim64.bat
211+ #
200212#
201213# OBSOLETE systems: You can build this if you have an appropriate system.
202214#
@@ -217,7 +229,7 @@ MINOR = 4
217229# - Rename the executables to "vimd32.exe", "xxdd32.exe", "installd32.exe" and
218230# "uninstald32.exe".
219231#
220- # Win32s GUI version: (requires very old compiler)
232+ # Win32s GUI version: (requires a very old compiler)
221233# - Set environment for Visual C++ 4.1 (requires a new console window):
222234# "vcvars32.bat" (use the path for VC 4.1 e:\msdev\bin)
223235# - "nmake -f Make_mvc.mak GUI=yes INTL=no clean" (use the path for VC 4.1)
@@ -270,7 +282,6 @@ COMMENT_GVIM = comment/$(VERSION)-bin-gvim
270282COMMENT_OLE = comment/$(VERSION ) -bin-ole
271283COMMENT_W32S = comment/$(VERSION ) -bin-w32s
272284COMMENT_SRC = comment/$(VERSION ) -src
273- COMMENT_OS2 = comment/$(VERSION ) -bin-os2
274285COMMENT_HTML = comment/$(VERSION ) -html
275286COMMENT_FARSI = comment/$(VERSION ) -farsi
276287
@@ -298,9 +309,6 @@ dist/$(COMMENT_W32S): dist/comment
298309dist/$(COMMENT_SRC ) : dist/comment
299310 echo " Vim - Vi IMproved - v$( VDOT) sources for MS-DOS and MS-Windows" > dist/$(COMMENT_SRC )
300311
301- dist/$(COMMENT_OS2 ) : dist/comment
302- echo " Vim - Vi IMproved - v$( VDOT) binaries + runtime files for OS/2" > dist/$(COMMENT_OS2 )
303-
304312dist/$(COMMENT_HTML ) : dist/comment
305313 echo " Vim - Vi IMproved - v$( VDOT) documentation in HTML" > dist/$(COMMENT_HTML )
306314
@@ -409,7 +417,9 @@ no_title.vim: Makefile
409417 echo " set notitle noicon nocp nomodeline viminfo=" > no_title.vim
410418
411419# MS-DOS sources
412- dossrc : dist no_title.vim dist/$(COMMENT_SRC ) runtime/doc/uganda.nsis.txt
420+ dossrc : dist no_title.vim dist/$(COMMENT_SRC ) \
421+ runtime/doc/uganda.nsis.txt \
422+ nsis/gvim_version.nsh
413423 -rm -rf dist/vim$(VERSION ) src.zip
414424 -rm -rf dist/vim
415425 mkdir dist/vim
@@ -420,10 +430,12 @@ dossrc: dist no_title.vim dist/$(COMMENT_SRC) runtime/doc/uganda.nsis.txt
420430 $(SRC_AMI_DOS ) \
421431 $(SRC_DOS_UNIX ) \
422432 runtime/doc/uganda.nsis.txt \
433+ nsis/gvim_version.nsh \
423434 | (cd dist/vim/$( VIMRTDIR) ; tar xf -)
424435 mv dist/vim/$(VIMRTDIR ) /runtime/* dist/vim/$(VIMRTDIR )
425436 rmdir dist/vim/$(VIMRTDIR ) /runtime
426- find dist/vim/$(VIMRTDIR ) -type f -exec $(VIM ) -e -X -u no_title.vim -c " :set tx|wq" {} \;
437+ # This file needs to be in dos fileformat for NSIS.
438+ $(VIM ) -e -X -u no_title.vim -c " :set tx|wq" dist/vim/$(VIMRTDIR ) /doc/uganda.nsis.txt
427439 tar cf - \
428440 $(SRC_DOS_BIN ) \
429441 | (cd dist/vim/$( VIMRTDIR) ; tar xf -)
@@ -432,12 +444,21 @@ dossrc: dist no_title.vim dist/$(COMMENT_SRC) runtime/doc/uganda.nsis.txt
432444runtime/doc/uganda.nsis.txt : runtime/doc/uganda.txt
433445 cd runtime/doc && $(MAKE ) uganda.nsis.txt
434446
435- dosrt : dist dist/$(COMMENT_RT ) dosrt_unix2dos
447+ nsis/gvim_version.nsh : Makefile
448+ echo " # Generated from Makefile: define the version numbers" > $@
449+ echo " !ifndef __GVIM_VER__NSH__" >> $@
450+ echo " !define __GVIM_VER__NSH__" >> $@
451+ echo " !define VER_MAJOR $( MAJOR) " >> $@
452+ echo " !define VER_MINOR $( MINOR) " >> $@
453+ echo " !endif" >> $@
454+
455+ dosrt : dist dist/$(COMMENT_RT ) dosrt_files
436456 -rm -rf dist/vim$(VERSION ) rt.zip
437457 cd dist && zip -9 -rD -z vim$(VERSION ) rt.zip vim < $(COMMENT_RT )
438458
439459# Split in two parts to avoid an "argument list too long" error.
440- dosrt_unix2dos : dist prepare no_title.vim
460+ # We no longer convert the files from unix to dos fileformat.
461+ dosrt_files : dist prepare no_title.vim
441462 -rm -rf dist/vim
442463 mkdir dist/vim
443464 mkdir dist/vim/$(VIMRTDIR )
@@ -453,7 +474,6 @@ dosrt_unix2dos: dist prepare no_title.vim
453474 $(RT_AMI_DOS ) \
454475 $(LANG_GEN ) \
455476 | (cd dist/vim/$( VIMRTDIR) ; tar xf -)
456- find dist/vim/$(VIMRTDIR ) -type f -exec $(VIM ) -e -X -u no_title.vim -c " :set tx|wq" {} \;
457477 tar cf - \
458478 $(RT_UNIX_DOS_BIN ) \
459479 $(RT_ALL_BIN ) \
@@ -476,9 +496,8 @@ dosrt_unix2dos: dist prepare no_title.vim
476496 cp libintl.dll dist/vim/$(VIMRTDIR)/
477497
478498
479- # Convert runtime files from Unix fileformat to dos fileformat.
480499# Used before uploading. Don't delete the AAPDIR/sign files!
481- runtime_unix2dos : dosrt_unix2dos
500+ runtime_unix2dos : dosrt_files
482501 -rm -rf ` find runtime/dos -type f -print | sed -e /AAPDIR/d`
483502 cd dist/vim/$(VIMRTDIR ) ; tar cf - * \
484503 | (cd ../../../runtime/dos; tar xf -)
@@ -494,7 +513,6 @@ dosbin_gvim: dist no_title.vim dist/$(COMMENT_GVIM)
494513 tar cf - \
495514 $(BIN_DOS ) \
496515 | (cd dist/vim/$( VIMRTDIR) ; tar xf -)
497- find dist/vim/$(VIMRTDIR ) -type f -exec $(VIM ) -e -X -u no_title.vim -c " :set tx|wq" {} \;
498516 cp gvim.exe dist/vim/$(VIMRTDIR ) /gvim.exe
499517 cp xxdw32.exe dist/vim/$(VIMRTDIR ) /xxd.exe
500518 cp vimrun.exe dist/vim/$(VIMRTDIR ) /vimrun.exe
@@ -513,7 +531,6 @@ dosbin_w32: dist no_title.vim dist/$(COMMENT_W32)
513531 tar cf - \
514532 $(BIN_DOS ) \
515533 | (cd dist/vim/$( VIMRTDIR) ; tar xf -)
516- find dist/vim/$(VIMRTDIR ) -type f -exec $(VIM ) -e -X -u no_title.vim -c " :set tx|wq" {} \;
517534 cp vimw32.exe dist/vim/$(VIMRTDIR ) /vim.exe
518535 cp xxdw32.exe dist/vim/$(VIMRTDIR ) /xxd.exe
519536 cp installw32.exe dist/vim/$(VIMRTDIR ) /install.exe
@@ -530,7 +547,6 @@ dosbin_d32: dist no_title.vim dist/$(COMMENT_D32)
530547 tar cf - \
531548 $(BIN_DOS ) \
532549 | (cd dist/vim/$( VIMRTDIR) ; tar xf -)
533- find dist/vim/$(VIMRTDIR ) -type f -exec $(VIM ) -e -X -u no_title.vim -c " :set tx|wq" {} \;
534550 cp vimd32.exe dist/vim/$(VIMRTDIR ) /vim.exe
535551 cp xxdd32.exe dist/vim/$(VIMRTDIR ) /xxd.exe
536552 cp installd32.exe dist/vim/$(VIMRTDIR ) /install.exe
@@ -547,7 +563,6 @@ dosbin_d16: dist no_title.vim dist/$(COMMENT_D16)
547563 tar cf - \
548564 $(BIN_DOS ) \
549565 | (cd dist/vim/$( VIMRTDIR) ; tar xf -)
550- find dist/vim/$(VIMRTDIR ) -type f -exec $(VIM ) -e -X -u no_title.vim -c " :set tx|wq" {} \;
551566 cp vimd16.exe dist/vim/$(VIMRTDIR ) /vim.exe
552567 cp xxdd16.exe dist/vim/$(VIMRTDIR ) /xxd.exe
553568 cp installd16.exe dist/vim/$(VIMRTDIR ) /install.exe
@@ -563,7 +578,6 @@ dosbin_ole: dist no_title.vim dist/$(COMMENT_OLE)
563578 tar cf - \
564579 $(BIN_DOS ) \
565580 | (cd dist/vim/$( VIMRTDIR) ; tar xf -)
566- find dist/vim/$(VIMRTDIR ) -type f -exec $(VIM ) -e -X -u no_title.vim -c " :set tx|wq" {} \;
567581 cp gvim_ole.exe dist/vim/$(VIMRTDIR ) /gvim.exe
568582 cp xxdw32.exe dist/vim/$(VIMRTDIR ) /xxd.exe
569583 cp vimrun.exe dist/vim/$(VIMRTDIR ) /vimrun.exe
@@ -585,29 +599,13 @@ dosbin_s: dist no_title.vim dist/$(COMMENT_W32S)
585599 tar cf - \
586600 $(BIN_DOS ) \
587601 | (cd dist/vim/$( VIMRTDIR) ; tar xf -)
588- find dist/vim/$(VIMRTDIR ) -type f -exec $(VIM ) -e -X -u no_title.vim -c " :set tx|wq" {} \;
589602 cp gvim_w32s.exe dist/vim/$(VIMRTDIR ) /gvim.exe
590603 cp xxdd32.exe dist/vim/$(VIMRTDIR ) /xxd.exe
591604 cp README_w32s.txt dist/vim/$(VIMRTDIR )
592605 cp installw32.exe dist/vim/$(VIMRTDIR ) /install.exe
593606 cp uninstalw32.exe dist/vim/$(VIMRTDIR ) /uninstal.exe
594607 cd dist && zip -9 -rD -z gvim$(VERSION ) _s.zip vim < $(COMMENT_W32S )
595608
596- os2bin : dist no_title.vim dist/$(COMMENT_OS2 )
597- -rm -rf dist/vim$(VERSION ) os2.zip
598- -rm -rf dist/vim
599- mkdir dist/vim
600- mkdir dist/vim/$(VIMRTDIR )
601- tar cf - \
602- $(BIN_OS2 ) \
603- | (cd dist/vim/$( VIMRTDIR) ; tar xf -)
604- find dist/vim/$(VIMRTDIR ) -type f -exec $(VIM ) -e -X -u no_title.vim -c " :set tx|wq" {} \;
605- cp vimos2.exe dist/vim/$(VIMRTDIR ) /vim.exe
606- cp xxdos2.exe dist/vim/$(VIMRTDIR ) /xxd.exe
607- cp teeos2.exe dist/vim/$(VIMRTDIR ) /tee.exe
608- cp emx.dll emxlibcs.dll dist/vim/$(VIMRTDIR )
609- cd dist && zip -9 -rD -z vim$(VERSION ) os2.zip vim < $(COMMENT_OS2 )
610-
611609html : dist dist/$(COMMENT_HTML )
612610 -rm -rf dist/vim$(VERSION ) html.zip
613611 cd runtime/doc && zip -9 -z ../../dist/vim$(VERSION ) html.zip * .html < ../../dist/$(COMMENT_HTML )
0 commit comments