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