Mercurial > vim
comparison Makefile @ 2217:120502692d82 vim73
Improve the MS-Windows installer.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Mon, 24 May 2010 21:34:22 +0200 |
parents | dd87ce87e0cc |
children | 144aa6167799 |
comparison
equal
deleted
inserted
replaced
2216:ef150ab31dda | 2217:120502692d82 |
---|---|
111 # - Place the executables Vim and Xxd in this directory (set the executable | 111 # - Place the executables Vim and Xxd in this directory (set the executable |
112 # flag). | 112 # flag). |
113 # - "make amirt", "make amibin". | 113 # - "make amirt", "make amibin". |
114 # | 114 # |
115 # PC: | 115 # PC: |
116 # - Run make on Unix to update the ".mo" files. | |
116 # - "make dossrc" and "make dosrt". Unpack the archives on a PC. | 117 # - "make dossrc" and "make dosrt". Unpack the archives on a PC. |
117 # 16 bit DOS version: (OBSOLETE, 16 bit version doesn't build) | 118 # 16 bit DOS version: (OBSOLETE, 16 bit version doesn't build) |
118 # - Set environment for compiling with Borland C++ 3.1. | 119 # - Set environment for compiling with Borland C++ 3.1. |
119 # - "bmake -f Make_bc3.mak BOR=E:\borlandc" (compiling xxd might fail, in that | 120 # - "bmake -f Make_bc3.mak BOR=E:\borlandc" (compiling xxd might fail, in that |
120 # case set environment for compiling with Borland C++ 4.0 and do | 121 # case set environment for compiling with Borland C++ 4.0 and do |
128 # - "rm testdir/*.out", "gmake -f Make_djg.mak test" and check the output for | 129 # - "rm testdir/*.out", "gmake -f Make_djg.mak test" and check the output for |
129 # "ALL DONE". | 130 # "ALL DONE". |
130 # - Rename the executables to "vimd32.exe", "xxdd32.exe", "installd32.exe" and | 131 # - Rename the executables to "vimd32.exe", "xxdd32.exe", "installd32.exe" and |
131 # "uninstald32.exe". | 132 # "uninstald32.exe". |
132 # Win32 console version: | 133 # Win32 console version: |
133 # - Set environment for Visual C++ 2008 Express Edition: "msvc2008.bat". Or, | 134 # - Set environment for Visual C++ 2010: |
134 # when using the Visual C++ Toolkit 2003: "msvcsetup.bat" (adjust the paths | 135 # "E:\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat". Or, for Visual |
135 # when necessary). For Windows 98 the 2003 version is required. | 136 # C++ 2008 Express Edition: "msvc2008.bat". Or, when using the Visual C++ |
137 # Toolkit 2003: "msvcsetup.bat" (adjust the paths when necessary). For | |
138 # Windows 98/ME the 2003 version is required. | |
136 # - "nmake -f Make_mvc.mak" | 139 # - "nmake -f Make_mvc.mak" |
137 # - "rm testdir/*.out", "nmake -f Make_mvc.mak test" and check the output. | 140 # - "rm testdir/*.out", "nmake -f Make_mvc.mak test" and check the output. |
138 # - Rename the executables to "vimw32.exe", "xxdw32.exe". | 141 # - Rename the executables to "vimw32.exe", "xxdw32.exe". |
139 # - Rename vim.pdb to vimw32.pdb. | 142 # - Rename vim.pdb to vimw32.pdb. |
140 # - When building the Win32s version later, delete vimrun.exe, install.exe and | 143 # - When building the Win32s version later, delete vimrun.exe, install.exe and |
163 # - The produced uninstalw32.exe and vimrun.exe are used. | 166 # - The produced uninstalw32.exe and vimrun.exe are used. |
164 # Create the archives: | 167 # Create the archives: |
165 # - Copy all the "*.exe" files to where this Makefile is. | 168 # - Copy all the "*.exe" files to where this Makefile is. |
166 # - Copy all the "*.pdb" files to where this Makefile is. | 169 # - Copy all the "*.pdb" files to where this Makefile is. |
167 # - "make dosbin". | 170 # - "make dosbin". |
168 # - Run make on Unix to update the ".mo" files. | |
169 # NSIS self installing exe: | 171 # NSIS self installing exe: |
172 # - To get NSIS see http://nsis.sourceforge.net | |
170 # - Make sure gvim_ole.exe, vimd32.exe, vimw32.exe, installw32.exe, | 173 # - Make sure gvim_ole.exe, vimd32.exe, vimw32.exe, installw32.exe, |
171 # uninstalw32.exe and xxdw32.exe have been build as mentioned above. | 174 # uninstalw32.exe and xxdw32.exe have been build as mentioned above. |
172 # - put gvimext.dll in src/GvimExt and VisVim.dll in src/VisVim (get them | 175 # - copy these files (get them from a binary archive or build them): |
173 # from a binary archive or build them) | 176 # gvimext.dll in src/GvimExt |
177 # gvimext64.dll in src/GvimExt | |
178 # VisVim.dll in src/VisVim | |
174 # Note: VisVim needs to be build with MSVC 5, newer versions don't work. | 179 # Note: VisVim needs to be build with MSVC 5, newer versions don't work. |
180 # gvimext64.dll can be obtained from http://code.google.com/p/vim-win3264/ | |
175 # - make sure there is a diff.exe two levels up | 181 # - make sure there is a diff.exe two levels up |
176 # - go to ../nsis and do "makensis gvim.nsi". | 182 # - go to ../nsis and do "makensis gvim.nsi" (takes a few minutes). |
177 # - Copy gvim##.exe to the dist directory. | 183 # - Copy gvim##.exe to the dist directory. |
178 # | 184 # |
179 # OS/2: (OBSOLETE, OS/2 version is no longer distributed) | 185 # OS/2: (OBSOLETE, OS/2 version is no longer distributed) |
180 # - Unpack the Unix archive. | 186 # - Unpack the Unix archive. |
181 # - "make -f Make_os2.mak". | 187 # - "make -f Make_os2.mak". |
353 mv dist/vim$(VERSION)src.tar.gz dist/vim$(VERSION)src.tgz | 359 mv dist/vim$(VERSION)src.tar.gz dist/vim$(VERSION)src.tgz |
354 | 360 |
355 no_title.vim: Makefile | 361 no_title.vim: Makefile |
356 echo "set notitle noicon nocp nomodeline viminfo=" >no_title.vim | 362 echo "set notitle noicon nocp nomodeline viminfo=" >no_title.vim |
357 | 363 |
364 # MS-DOS sources | |
365 dossrc: dist no_title.vim dist/$(COMMENT_SRC) runtime/doc/uganda.nsis.txt | |
366 -rm -rf dist/vim$(VERSION)src.zip | |
367 -rm -rf dist/vim | |
368 mkdir dist/vim | |
369 mkdir dist/vim/$(VIMRTDIR) | |
370 tar cf - \ | |
371 $(SRC_ALL) \ | |
372 $(SRC_DOS) \ | |
373 $(SRC_AMI_DOS) \ | |
374 $(SRC_DOS_UNIX) \ | |
375 runtime/doc/uganda.nsis.txt \ | |
376 | (cd dist/vim/$(VIMRTDIR); tar xf -) | |
377 mv dist/vim/$(VIMRTDIR)/runtime/* dist/vim/$(VIMRTDIR) | |
378 rmdir dist/vim/$(VIMRTDIR)/runtime | |
379 find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \; | |
380 tar cf - \ | |
381 $(SRC_DOS_BIN) \ | |
382 | (cd dist/vim/$(VIMRTDIR); tar xf -) | |
383 cd dist && zip -9 -rD -z vim$(VERSION)src.zip vim <$(COMMENT_SRC) | |
384 | |
385 runtime/doc/uganda.nsis.txt: runtime/doc/uganda.txt | |
386 cd runtime/doc && $(MAKE) uganda.nsis.txt | |
387 | |
358 dosrt: dist dist/$(COMMENT_RT) dosrt_unix2dos | 388 dosrt: dist dist/$(COMMENT_RT) dosrt_unix2dos |
359 -rm -rf dist/vim$(VERSION)rt.zip | 389 -rm -rf dist/vim$(VERSION)rt.zip |
360 cd dist && zip -9 -rD -z vim$(VERSION)rt.zip vim <$(COMMENT_RT) | 390 cd dist && zip -9 -rD -z vim$(VERSION)rt.zip vim <$(COMMENT_RT) |
361 | 391 |
362 # Split in two parts to avoid a "argument list too long" error. | 392 # Split in two parts to avoid an "argument list too long" error. |
363 dosrt_unix2dos: dist prepare no_title.vim | 393 dosrt_unix2dos: dist prepare no_title.vim |
364 -rm -rf dist/vim | 394 -rm -rf dist/vim |
365 mkdir dist/vim | 395 mkdir dist/vim |
366 mkdir dist/vim/$(VIMRTDIR) | 396 mkdir dist/vim/$(VIMRTDIR) |
367 mkdir dist/vim/$(VIMRTDIR)/lang | 397 mkdir dist/vim/$(VIMRTDIR)/lang |
514 cp README_w32s.txt dist/vim/$(VIMRTDIR) | 544 cp README_w32s.txt dist/vim/$(VIMRTDIR) |
515 cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe | 545 cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe |
516 cp uninstalw32.exe dist/vim/$(VIMRTDIR)/uninstal.exe | 546 cp uninstalw32.exe dist/vim/$(VIMRTDIR)/uninstal.exe |
517 cd dist && zip -9 -rD -z gvim$(VERSION)_s.zip vim <$(COMMENT_W32S) | 547 cd dist && zip -9 -rD -z gvim$(VERSION)_s.zip vim <$(COMMENT_W32S) |
518 | 548 |
519 # MS-DOS sources | |
520 dossrc: dist no_title.vim dist/$(COMMENT_SRC) runtime/doc/uganda.nsis.txt | |
521 -rm -rf dist/vim$(VERSION)src.zip | |
522 -rm -rf dist/vim | |
523 mkdir dist/vim | |
524 mkdir dist/vim/$(VIMRTDIR) | |
525 tar cf - \ | |
526 $(SRC_ALL) \ | |
527 $(SRC_DOS) \ | |
528 $(SRC_AMI_DOS) \ | |
529 $(SRC_DOS_UNIX) \ | |
530 runtime/doc/uganda.nsis.txt \ | |
531 | (cd dist/vim/$(VIMRTDIR); tar xf -) | |
532 mv dist/vim/$(VIMRTDIR)/runtime/* dist/vim/$(VIMRTDIR) | |
533 rmdir dist/vim/$(VIMRTDIR)/runtime | |
534 find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \; | |
535 tar cf - \ | |
536 $(SRC_DOS_BIN) \ | |
537 | (cd dist/vim/$(VIMRTDIR); tar xf -) | |
538 cd dist && zip -9 -rD -z vim$(VERSION)src.zip vim <$(COMMENT_SRC) | |
539 | |
540 runtime/doc/uganda.nsis.txt: runtime/doc/uganda.txt | |
541 cd runtime/doc && $(MAKE) uganda.nsis.txt | |
542 | |
543 os2bin: dist no_title.vim dist/$(COMMENT_OS2) | 549 os2bin: dist no_title.vim dist/$(COMMENT_OS2) |
544 -rm -rf dist/vim$(VERSION)os2.zip | 550 -rm -rf dist/vim$(VERSION)os2.zip |
545 -rm -rf dist/vim | 551 -rm -rf dist/vim |
546 mkdir dist/vim | 552 mkdir dist/vim |
547 mkdir dist/vim/$(VIMRTDIR) | 553 mkdir dist/vim/$(VIMRTDIR) |