comparison Makefile @ 2160:c1d31f774a03 vim73

Get rid of the "extra" and "lang" archives.
author Bram Moolenaar <bram@vim.org>
date Sat, 15 May 2010 15:41:59 +0200
parents 7c8c7c95a865
children 733f0dc510c3 dd87ce87e0cc
comparison
equal deleted inserted replaced
2158:29df04ae0fad 2160:c1d31f774a03
1 # This Makefile has two purposes: 1 # This Makefile has two purposes:
2 # 1. Starting the compilation of Vim for Unix. 2 # 1. Starting the compilation of Vim for Unix.
3 # 2. Creating the various distribution files. 3 # 2. Creating the various distribution files.
4 4
5 5
6 # 1. Using this Makefile without an argument will compile Vim for Unix. 6 #########################################################################
7 # 7 # 1. Starting the compilation of Vim for Unix.
8 #
9 # Using this Makefile without an argument will compile Vim for Unix.
8 # "make install" is also possible. 10 # "make install" is also possible.
9 # 11 #
10 # NOTE: If this doesn't work properly, first change directory to "src" and use 12 # NOTE: If this doesn't work properly, first change directory to "src" and use
11 # the Makefile there: 13 # the Makefile there:
12 # cd src 14 # cd src
31 @echo "Starting make in the src directory." 33 @echo "Starting make in the src directory."
32 @echo "If there are problems, cd to the src directory and run make there" 34 @echo "If there are problems, cd to the src directory and run make there"
33 cd src && $(MAKE) $@ 35 cd src && $(MAKE) $@
34 36
35 37
36 # 2. Create the various distributions: 38 #########################################################################
39 # 2. Creating the various distribution files.
37 # 40 #
38 # TARGET PRODUCES CONTAINS 41 # TARGET PRODUCES CONTAINS
39 # unixall vim-#.#.tar.bz2 Runtime files and Sources for Unix 42 # unixall vim-#.#.tar.bz2 All runtime files and sources, for Unix
40 #
41 # extra vim-#.#-extra.tar.gz Extra source and runtime files
42 # lang vim-#.#-lang.tar.gz multi-language files
43 # 43 #
44 # html vim##html.zip HTML docs 44 # html vim##html.zip HTML docs
45 #
46 # amisrc vim##src.tgz sources for Amiga
47 # amirt vim##rt.tgz runtime for Amiga
48 # amibin vim##bin.tgz binary for Amiga
49 # 45 #
50 # dossrc vim##src.zip sources for MS-DOS 46 # dossrc vim##src.zip sources for MS-DOS
51 # dosrt vim##rt.zip runtime for MS-DOS 47 # dosrt vim##rt.zip runtime for MS-DOS
52 # dosbin vim##d16.zip binary for MS-DOS 16 bits 48 # dosbin vim##d16.zip binary for MS-DOS 16 bits
53 # vim##d32.zip binary for MS-DOS 32 bits 49 # vim##d32.zip binary for MS-DOS 32 bits
54 # vim##w32.zip binary for Win32 50 # vim##w32.zip binary for Win32
55 # gvim##.zip binary for GUI Win32 51 # gvim##.zip binary for GUI Win32
56 # gvim##ole.zip OLE exe for Win32 GUI 52 # gvim##ole.zip OLE exe for Win32 GUI
57 # gvim##_s.zip exe for Win32s GUI 53 # gvim##_s.zip exe for Win32s GUI
58 # doslang vim##lang.zip language files for Win32 54 #
55 # OBSOLETE
56 # amisrc vim##src.tgz sources for Amiga
57 # amirt vim##rt.tgz runtime for Amiga
58 # amibin vim##bin.tgz binary for Amiga
59 # 59 #
60 # os2bin vim##os2.zip binary for OS/2 60 # os2bin vim##os2.zip binary for OS/2
61 # (use RT from dosrt) 61 # (use RT from dosrt)
62 # 62 #
63 # farsi farsi##.zip Farsi fonts 63 # farsi farsi##.zip Farsi fonts
64 # 64 #
65 # All output files are created in the "dist" directory. Existing files are 65 # All output files are created in the "dist" directory. Existing files are
66 # overwritten! 66 # overwritten!
67 # To do all this you need the unix, extra and lang archives, and 67 # To do all this you need the Unix archive and compiled binaries.
68 # compiled binaries.
69 # Before creating an archive first delete all backup files, *.orig, etc. 68 # Before creating an archive first delete all backup files, *.orig, etc.
70 69
71 MAJOR = 7 70 MAJOR = 7
72 MINOR = 3a 71 MINOR = 3a
73 72
100 # preferences or the GTK, Perl, etc. mentioned above. 99 # preferences or the GTK, Perl, etc. mentioned above.
101 # - Check file protections to be "644" for text and "755" for executables (run 100 # - Check file protections to be "644" for text and "755" for executables (run
102 # the "check" script). 101 # the "check" script).
103 # - Check compiling on Amiga, MS-DOS and MS-Windows. 102 # - Check compiling on Amiga, MS-DOS and MS-Windows.
104 # - Delete all *~, *.sw?, *.orig, *.rej files 103 # - Delete all *~, *.sw?, *.orig, *.rej files
105 # - "make unixall", "make extra", "make lang", "make html" 104 # - "make unixall", "make html"
106 # - Make diff files against the previous release: "makediff7 7.1 7.2" 105 # - Make diff files against the previous release: "makediff7 7.1 7.2"
107 # 106 #
108 # Amiga: (OBSOLETE, Amiga files are no longer distributed) 107 # Amiga: (OBSOLETE, Amiga files are no longer distributed)
109 # - "make amisrc", move the archive to the Amiga and compile: 108 # - "make amisrc", move the archive to the Amiga and compile:
110 # "make -f Make_manx.mak" (will use "big" features by default). 109 # "make -f Make_manx.mak" (will use "big" features by default).
165 # Create the archives: 164 # Create the archives:
166 # - Copy all the "*.exe" files to where this Makefile is. 165 # - Copy all the "*.exe" files to where this Makefile is.
167 # - Copy all the "*.pdb" files to where this Makefile is. 166 # - Copy all the "*.pdb" files to where this Makefile is.
168 # - "make dosbin". 167 # - "make dosbin".
169 # - Run make on Unix to update the ".mo" files. 168 # - Run make on Unix to update the ".mo" files.
170 # - "make doslang".
171 # NSIS self installing exe: 169 # NSIS self installing exe:
172 # - Unpack the doslang archive on the PC.
173 # - Make sure gvim_ole.exe, vimd32.exe, vimw32.exe, installw32.exe, 170 # - Make sure gvim_ole.exe, vimd32.exe, vimw32.exe, installw32.exe,
174 # uninstalw32.exe and xxdw32.exe have been build as mentioned above. 171 # 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 172 # - put gvimext.dll in src/GvimExt and VisVim.dll in src/VisVim (get them
176 # from a binary archive or build them) 173 # from a binary archive or build them)
177 # Note: VisVim needs to be build with MSVC 5, newer versions don't work. 174 # 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 175 # - make sure there is a diff.exe two levels up
179 # - go to ../nsis and do "makensis gvim.nsi". 176 # - go to ../nsis and do "makensis gvim.nsi".
180 # - Copy gvim##.exe to the dist directory. 177 # - Copy gvim##.exe to the dist directory.
181 # 178 #
182 # OS/2: (OBSOLETE, OS/2 version is no longer distributed) 179 # OS/2: (OBSOLETE, OS/2 version is no longer distributed)
183 # - Unpack the Unix "src", "extra" and "rt" archives. 180 # - Unpack the Unix archive.
184 # - "make -f Make_os2.mak". 181 # - "make -f Make_os2.mak".
185 # - Rename the executables to vimos2.exe, xxdos2.exe and teeos2.exe and copy 182 # - Rename the executables to vimos2.exe, xxdos2.exe and teeos2.exe and copy
186 # them to here. 183 # them to here.
187 # - "make os2bin". 184 # - "make os2bin".
188 185
213 # For the zip files we need to create a file with the comment line 210 # For the zip files we need to create a file with the comment line
214 dist/comment: 211 dist/comment:
215 mkdir dist/comment 212 mkdir dist/comment
216 213
217 COMMENT_RT = comment/$(VERSION)-rt 214 COMMENT_RT = comment/$(VERSION)-rt
218 COMMENT_RT1 = comment/$(VERSION)-rt1
219 COMMENT_RT2 = comment/$(VERSION)-rt2
220 COMMENT_D16 = comment/$(VERSION)-bin-d16 215 COMMENT_D16 = comment/$(VERSION)-bin-d16
221 COMMENT_D32 = comment/$(VERSION)-bin-d32 216 COMMENT_D32 = comment/$(VERSION)-bin-d32
222 COMMENT_W32 = comment/$(VERSION)-bin-w32 217 COMMENT_W32 = comment/$(VERSION)-bin-w32
223 COMMENT_GVIM = comment/$(VERSION)-bin-gvim 218 COMMENT_GVIM = comment/$(VERSION)-bin-gvim
224 COMMENT_OLE = comment/$(VERSION)-bin-ole 219 COMMENT_OLE = comment/$(VERSION)-bin-ole
225 COMMENT_W32S = comment/$(VERSION)-bin-w32s 220 COMMENT_W32S = comment/$(VERSION)-bin-w32s
226 COMMENT_SRC = comment/$(VERSION)-src 221 COMMENT_SRC = comment/$(VERSION)-src
227 COMMENT_OS2 = comment/$(VERSION)-bin-os2 222 COMMENT_OS2 = comment/$(VERSION)-bin-os2
228 COMMENT_HTML = comment/$(VERSION)-html 223 COMMENT_HTML = comment/$(VERSION)-html
229 COMMENT_FARSI = comment/$(VERSION)-farsi 224 COMMENT_FARSI = comment/$(VERSION)-farsi
230 COMMENT_LANG = comment/$(VERSION)-lang
231 225
232 dist/$(COMMENT_RT): dist/comment 226 dist/$(COMMENT_RT): dist/comment
233 echo "Vim - Vi IMproved - v$(VDOT) runtime files for MS-DOS and MS-Windows" > dist/$(COMMENT_RT) 227 echo "Vim - Vi IMproved - v$(VDOT) runtime files for MS-DOS and MS-Windows" > dist/$(COMMENT_RT)
234 228
235 dist/$(COMMENT_RT1): dist/comment 229 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) 230 echo "Vim - Vi IMproved - v$(VDOT) runtime files (PART 1) for MS-DOS and MS-Windows" > dist/$(COMMENT_RT1)
237 231
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)
240
241 dist/$(COMMENT_D16): dist/comment 232 dist/$(COMMENT_D16): dist/comment
242 echo "Vim - Vi IMproved - v$(VDOT) binaries for MS-DOS 16 bit real mode" > dist/$(COMMENT_D16) 233 echo "Vim - Vi IMproved - v$(VDOT) binaries for MS-DOS 16 bit real mode" > dist/$(COMMENT_D16)
243 234
244 dist/$(COMMENT_D32): dist/comment 235 dist/$(COMMENT_D32): dist/comment
245 echo "Vim - Vi IMproved - v$(VDOT) binaries for MS-DOS 32 bit protected mode" > dist/$(COMMENT_D32) 236 echo "Vim - Vi IMproved - v$(VDOT) binaries for MS-DOS 32 bit protected mode" > dist/$(COMMENT_D32)
265 dist/$(COMMENT_HTML): dist/comment 256 dist/$(COMMENT_HTML): dist/comment
266 echo "Vim - Vi IMproved - v$(VDOT) documentation in HTML" > dist/$(COMMENT_HTML) 257 echo "Vim - Vi IMproved - v$(VDOT) documentation in HTML" > dist/$(COMMENT_HTML)
267 258
268 dist/$(COMMENT_FARSI): dist/comment 259 dist/$(COMMENT_FARSI): dist/comment
269 echo "Vim - Vi IMproved - v$(VDOT) Farsi language files" > dist/$(COMMENT_FARSI) 260 echo "Vim - Vi IMproved - v$(VDOT) Farsi language files" > dist/$(COMMENT_FARSI)
270
271 dist/$(COMMENT_LANG): dist/comment
272 echo "Vim - Vi IMproved - v$(VDOT) MS-Windows language files" > dist/$(COMMENT_LANG)
273 261
274 unixall: dist prepare 262 unixall: dist prepare
275 -rm -f dist/$(VIMVER).tar.bz2 263 -rm -f dist/$(VIMVER).tar.bz2
276 -rm -rf dist/$(VIMRTDIR) 264 -rm -rf dist/$(VIMRTDIR)
277 mkdir dist/$(VIMRTDIR) 265 mkdir dist/$(VIMRTDIR)
284 $(LANG_GEN) \ 272 $(LANG_GEN) \
285 $(LANG_GEN_BIN) \ 273 $(LANG_GEN_BIN) \
286 $(SRC_ALL) \ 274 $(SRC_ALL) \
287 $(SRC_UNIX) \ 275 $(SRC_UNIX) \
288 $(SRC_DOS_UNIX) \ 276 $(SRC_DOS_UNIX) \
277 $(EXTRA) \
278 $(LANG_SRC) \
289 | (cd dist/$(VIMRTDIR); tar xf -) 279 | (cd dist/$(VIMRTDIR); tar xf -)
290 # Need to use a "distclean" config.mk file 280 # Need to use a "distclean" config.mk file
291 cp -f src/config.mk.dist dist/$(VIMRTDIR)/src/auto/config.mk 281 cp -f src/config.mk.dist dist/$(VIMRTDIR)/src/auto/config.mk
292 # Create an empty config.h file, make dependencies require it 282 # Create an empty config.h file, make dependencies require it
293 touch dist/$(VIMRTDIR)/src/auto/config.h 283 touch dist/$(VIMRTDIR)/src/auto/config.h
294 # Make sure configure is newer than config.mk to force it to be generated 284 # Make sure configure is newer than config.mk to force it to be generated
295 touch dist/$(VIMRTDIR)/src/configure 285 touch dist/$(VIMRTDIR)/src/configure
296 cd dist && tar cf $(VIMVER).tar $(VIMRTDIR)
297 bzip2 dist/$(VIMVER).tar
298
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
308
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. 286 # 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. 287 # Same for cs.cp1250.po, pl.cp1250.po and sk.cp1250.po.
318 touch dist/$(VIMRTDIR)/src/po/ja.sjis.po 288 touch dist/$(VIMRTDIR)/src/po/ja.sjis.po
319 touch dist/$(VIMRTDIR)/src/po/cs.cp1250.po 289 touch dist/$(VIMRTDIR)/src/po/cs.cp1250.po
320 touch dist/$(VIMRTDIR)/src/po/pl.cp1250.po 290 touch dist/$(VIMRTDIR)/src/po/pl.cp1250.po
321 touch dist/$(VIMRTDIR)/src/po/sk.cp1250.po 291 touch dist/$(VIMRTDIR)/src/po/sk.cp1250.po
322 touch dist/$(VIMRTDIR)/src/po/zh_CN.cp936.po 292 touch dist/$(VIMRTDIR)/src/po/zh_CN.cp936.po
323 touch dist/$(VIMRTDIR)/src/po/ru.cp1251.po 293 touch dist/$(VIMRTDIR)/src/po/ru.cp1251.po
324 touch dist/$(VIMRTDIR)/src/po/uk.cp1251.po 294 touch dist/$(VIMRTDIR)/src/po/uk.cp1251.po
325 cd dist && tar cf $(VIMVER)-lang.tar $(VIMRTDIR) 295 # Create the archive.
326 gzip -9 dist/$(VIMVER)-lang.tar 296 cd dist && tar cf $(VIMVER).tar $(VIMRTDIR)
327 297 bzip2 dist/$(VIMVER).tar
298
299 # Amiga runtime - OBSOLETE
328 amirt: dist prepare 300 amirt: dist prepare
329 -rm -f dist/vim$(VERSION)rt.tar.gz 301 -rm -f dist/vim$(VERSION)rt.tar.gz
330 -rm -rf dist/Vim 302 -rm -rf dist/Vim
331 mkdir dist/Vim 303 mkdir dist/Vim
332 mkdir dist/Vim/$(VIMRTDIR) 304 mkdir dist/Vim/$(VIMRTDIR)
345 rmdir dist/Vim/$(VIMRTDIR)/runtime 317 rmdir dist/Vim/$(VIMRTDIR)/runtime
346 cd dist && tar cf vim$(VERSION)rt.tar Vim Vim.info 318 cd dist && tar cf vim$(VERSION)rt.tar Vim Vim.info
347 gzip -9 dist/vim$(VERSION)rt.tar 319 gzip -9 dist/vim$(VERSION)rt.tar
348 mv dist/vim$(VERSION)rt.tar.gz dist/vim$(VERSION)rt.tgz 320 mv dist/vim$(VERSION)rt.tar.gz dist/vim$(VERSION)rt.tgz
349 321
322 # Amiga binaries - OBSOLETE
350 amibin: dist prepare 323 amibin: dist prepare
351 -rm -f dist/vim$(VERSION)bin.tar.gz 324 -rm -f dist/vim$(VERSION)bin.tar.gz
352 -rm -rf dist/Vim 325 -rm -rf dist/Vim
353 mkdir dist/Vim 326 mkdir dist/Vim
354 mkdir dist/Vim/$(VIMRTDIR) 327 mkdir dist/Vim/$(VIMRTDIR)
362 mv dist/Vim/$(VIMRTDIR)/runtime.info dist/Vim/$(VIMRTDIR).info 335 mv dist/Vim/$(VIMRTDIR)/runtime.info dist/Vim/$(VIMRTDIR).info
363 cd dist && tar cf vim$(VERSION)bin.tar Vim Vim.info 336 cd dist && tar cf vim$(VERSION)bin.tar Vim Vim.info
364 gzip -9 dist/vim$(VERSION)bin.tar 337 gzip -9 dist/vim$(VERSION)bin.tar
365 mv dist/vim$(VERSION)bin.tar.gz dist/vim$(VERSION)bin.tgz 338 mv dist/vim$(VERSION)bin.tar.gz dist/vim$(VERSION)bin.tgz
366 339
340 # Amiga sources - OBSOLETE
367 amisrc: dist prepare 341 amisrc: dist prepare
368 -rm -f dist/vim$(VERSION)src.tar.gz 342 -rm -f dist/vim$(VERSION)src.tar.gz
369 -rm -rf dist/Vim 343 -rm -rf dist/Vim
370 mkdir dist/Vim 344 mkdir dist/Vim
371 mkdir dist/Vim/$(VIMRTDIR) 345 mkdir dist/Vim/$(VIMRTDIR)
391 # Split in two parts to avoid a "argument list too long" error. 365 # Split in two parts to avoid a "argument list too long" error.
392 dosrt_unix2dos: dist prepare no_title.vim 366 dosrt_unix2dos: dist prepare no_title.vim
393 -rm -rf dist/vim 367 -rm -rf dist/vim
394 mkdir dist/vim 368 mkdir dist/vim
395 mkdir dist/vim/$(VIMRTDIR) 369 mkdir dist/vim/$(VIMRTDIR)
370 mkdir dist/vim/$(VIMRTDIR)/lang
371 cd src && MAKEMO=yes $(MAKE) languages
396 tar cf - \ 372 tar cf - \
397 $(RT_ALL) \ 373 $(RT_ALL) \
398 | (cd dist/vim/$(VIMRTDIR); tar xf -) 374 | (cd dist/vim/$(VIMRTDIR); tar xf -)
399 tar cf - \ 375 tar cf - \
400 $(RT_SCRIPTS) \ 376 $(RT_SCRIPTS) \
410 $(RT_DOS_BIN) \ 386 $(RT_DOS_BIN) \
411 $(LANG_GEN_BIN) \ 387 $(LANG_GEN_BIN) \
412 | (cd dist/vim/$(VIMRTDIR); tar xf -) 388 | (cd dist/vim/$(VIMRTDIR); tar xf -)
413 mv dist/vim/$(VIMRTDIR)/runtime/* dist/vim/$(VIMRTDIR) 389 mv dist/vim/$(VIMRTDIR)/runtime/* dist/vim/$(VIMRTDIR)
414 rmdir dist/vim/$(VIMRTDIR)/runtime 390 rmdir dist/vim/$(VIMRTDIR)/runtime
415
416
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 -)
423
424 dosbin: prepare dosbin_gvim dosbin_w32 dosbin_d32 dosbin_d16 dosbin_ole $(DOSBIN_S)
425
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 -X -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
444
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 -X -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
461
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 -X -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)
478
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 -X -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)
494
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 -X -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
516
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 -X -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)
533
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 -X -u no_title.vim -c ":set tx|wq" {} \;
543 # Add the message translations. Trick: skip ja.mo and use ja.sjis.mo instead. 391 # 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, 392 # 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. 393 # 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 \ 394 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 \ 395 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 \
550 mkdir dist/vim/$(VIMRTDIR)/lang/$$n/LC_MESSAGES; \ 398 mkdir dist/vim/$(VIMRTDIR)/lang/$$n/LC_MESSAGES; \
551 cp $$i dist/vim/$(VIMRTDIR)/lang/$$n/LC_MESSAGES/vim.mo; \ 399 cp $$i dist/vim/$(VIMRTDIR)/lang/$$n/LC_MESSAGES/vim.mo; \
552 fi \ 400 fi \
553 done 401 done
554 cp libintl.dll dist/vim/$(VIMRTDIR)/ 402 cp libintl.dll dist/vim/$(VIMRTDIR)/
555 cd dist && zip -9 -rD -z vim$(VERSION)lang.zip vim <$(COMMENT_LANG) 403
404
405 # Convert runtime files from Unix fileformat to dos fileformat.
406 # Used before uploading. Don't delete the AAPDIR/sign files!
407 runtime_unix2dos: dosrt_unix2dos
408 -rm -rf `find runtime/dos -type f -print | sed -e /AAPDIR/d`
409 cd dist/vim/$(VIMRTDIR); tar cf - * \
410 | (cd ../../../runtime/dos; tar xf -)
411
412 dosbin: prepare dosbin_gvim dosbin_w32 dosbin_d32 dosbin_d16 dosbin_ole $(DOSBIN_S)
413
414 # make Win32 gvim
415 dosbin_gvim: dist no_title.vim dist/$(COMMENT_GVIM)
416 -rm -rf dist/gvim$(VERSION).zip
417 -rm -rf dist/vim
418 mkdir dist/vim
419 mkdir dist/vim/$(VIMRTDIR)
420 tar cf - \
421 $(BIN_DOS) \
422 | (cd dist/vim/$(VIMRTDIR); tar xf -)
423 find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \;
424 cp gvim.exe dist/vim/$(VIMRTDIR)/gvim.exe
425 cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe
426 cp vimrun.exe dist/vim/$(VIMRTDIR)/vimrun.exe
427 cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe
428 cp uninstalw32.exe dist/vim/$(VIMRTDIR)/uninstal.exe
429 cp gvimext.dll dist/vim/$(VIMRTDIR)/gvimext.dll
430 cd dist && zip -9 -rD -z gvim$(VERSION).zip vim <$(COMMENT_GVIM)
431 cp gvim.pdb dist/gvim$(VERSION).pdb
432
433 # make Win32 console
434 dosbin_w32: dist no_title.vim dist/$(COMMENT_W32)
435 -rm -rf dist/vim$(VERSION)w32.zip
436 -rm -rf dist/vim
437 mkdir dist/vim
438 mkdir dist/vim/$(VIMRTDIR)
439 tar cf - \
440 $(BIN_DOS) \
441 | (cd dist/vim/$(VIMRTDIR); tar xf -)
442 find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \;
443 cp vimw32.exe dist/vim/$(VIMRTDIR)/vim.exe
444 cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe
445 cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe
446 cp uninstalw32.exe dist/vim/$(VIMRTDIR)/uninstal.exe
447 cd dist && zip -9 -rD -z vim$(VERSION)w32.zip vim <$(COMMENT_W32)
448 cp vimw32.pdb dist/vim$(VERSION)w32.pdb
449
450 # make 32bit DOS
451 dosbin_d32: dist no_title.vim dist/$(COMMENT_D32)
452 -rm -rf dist/vim$(VERSION)d32.zip
453 -rm -rf dist/vim
454 mkdir dist/vim
455 mkdir dist/vim/$(VIMRTDIR)
456 tar cf - \
457 $(BIN_DOS) \
458 | (cd dist/vim/$(VIMRTDIR); tar xf -)
459 find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \;
460 cp vimd32.exe dist/vim/$(VIMRTDIR)/vim.exe
461 cp xxdd32.exe dist/vim/$(VIMRTDIR)/xxd.exe
462 cp installd32.exe dist/vim/$(VIMRTDIR)/install.exe
463 cp uninstald32.exe dist/vim/$(VIMRTDIR)/uninstal.exe
464 cp csdpmi4b.zip dist/vim/$(VIMRTDIR)
465 cd dist && zip -9 -rD -z vim$(VERSION)d32.zip vim <$(COMMENT_D32)
466
467 # make 16bit DOS
468 dosbin_d16: dist no_title.vim dist/$(COMMENT_D16)
469 -rm -rf dist/vim$(VERSION)d16.zip
470 -rm -rf dist/vim
471 mkdir dist/vim
472 mkdir dist/vim/$(VIMRTDIR)
473 tar cf - \
474 $(BIN_DOS) \
475 | (cd dist/vim/$(VIMRTDIR); tar xf -)
476 find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \;
477 cp vimd16.exe dist/vim/$(VIMRTDIR)/vim.exe
478 cp xxdd16.exe dist/vim/$(VIMRTDIR)/xxd.exe
479 cp installd16.exe dist/vim/$(VIMRTDIR)/install.exe
480 cp uninstald16.exe dist/vim/$(VIMRTDIR)/uninstal.exe
481 cd dist && zip -9 -rD -z vim$(VERSION)d16.zip vim <$(COMMENT_D16)
482
483 # make Win32 gvim with OLE
484 dosbin_ole: dist no_title.vim dist/$(COMMENT_OLE)
485 -rm -rf dist/gvim$(VERSION)ole.zip
486 -rm -rf dist/vim
487 mkdir dist/vim
488 mkdir dist/vim/$(VIMRTDIR)
489 tar cf - \
490 $(BIN_DOS) \
491 | (cd dist/vim/$(VIMRTDIR); tar xf -)
492 find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \;
493 cp gvim_ole.exe dist/vim/$(VIMRTDIR)/gvim.exe
494 cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe
495 cp vimrun.exe dist/vim/$(VIMRTDIR)/vimrun.exe
496 cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe
497 cp uninstalw32.exe dist/vim/$(VIMRTDIR)/uninstal.exe
498 cp gvimext.dll dist/vim/$(VIMRTDIR)/gvimext.dll
499 cp README_ole.txt dist/vim/$(VIMRTDIR)
500 cp src/VisVim/VisVim.dll dist/vim/$(VIMRTDIR)/VisVim.dll
501 cp src/VisVim/README_VisVim.txt dist/vim/$(VIMRTDIR)
502 cd dist && zip -9 -rD -z gvim$(VERSION)ole.zip vim <$(COMMENT_OLE)
503 cp gvim_ole.pdb dist/gvim$(VERSION)ole.pdb
504
505 # make Win32s gvim
506 dosbin_s: dist no_title.vim dist/$(COMMENT_W32S)
507 -rm -rf dist/gvim$(VERSION)_s.zip
508 -rm -rf dist/vim
509 mkdir dist/vim
510 mkdir dist/vim/$(VIMRTDIR)
511 tar cf - \
512 $(BIN_DOS) \
513 | (cd dist/vim/$(VIMRTDIR); tar xf -)
514 find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \;
515 cp gvim_w32s.exe dist/vim/$(VIMRTDIR)/gvim.exe
516 cp xxdd32.exe dist/vim/$(VIMRTDIR)/xxd.exe
517 cp README_w32s.txt dist/vim/$(VIMRTDIR)
518 cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe
519 cp uninstalw32.exe dist/vim/$(VIMRTDIR)/uninstal.exe
520 cd dist && zip -9 -rD -z gvim$(VERSION)_s.zip vim <$(COMMENT_W32S)
556 521
557 # MS-DOS sources 522 # MS-DOS sources
558 dossrc: dist no_title.vim dist/$(COMMENT_SRC) runtime/doc/uganda.nsis.txt 523 dossrc: dist no_title.vim dist/$(COMMENT_SRC) runtime/doc/uganda.nsis.txt
559 -rm -rf dist/vim$(VERSION)src.zip 524 -rm -rf dist/vim$(VERSION)src.zip
560 -rm -rf dist/vim 525 -rm -rf dist/vim