blob: 763f047f27661a77055de8fc2055d993896ea0c6 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001# This Makefile has two purposes:
2# 1. Starting the compilation of Vim for Unix.
3# 2. Creating the various distribution files.
4
5
Bram Moolenaar864665d2010-05-15 15:41:59 +02006#########################################################################
7# 1. Starting the compilation of Vim for Unix.
Bram Moolenaar071d4272004-06-13 20:20:40 +00008#
Bram Moolenaar864665d2010-05-15 15:41:59 +02009# Using this Makefile without an argument will compile Vim for Unix.
Bram Moolenaar071d4272004-06-13 20:20:40 +000010# "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:
Bram Moolenaar542512a2011-02-15 15:28:09 +010026 @if test ! -f src/auto/config.mk; then \
27 cp src/config.mk.dist src/auto/config.mk; \
28 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000029 @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.
Bram Moolenaardd2a3cd2007-05-05 17:10:09 +000035all install uninstall tools config configure reconfig proto depend lint tags types test testclean clean distclean:
Bram Moolenaar542512a2011-02-15 15:28:09 +010036 @if test ! -f src/auto/config.mk; then \
37 cp src/config.mk.dist src/auto/config.mk; \
38 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000039 @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
Bram Moolenaar864665d2010-05-15 15:41:59 +020044#########################################################################
45# 2. Creating the various distribution files.
Bram Moolenaar071d4272004-06-13 20:20:40 +000046#
47# TARGET PRODUCES CONTAINS
Bram Moolenaar864665d2010-05-15 15:41:59 +020048# unixall vim-#.#.tar.bz2 All runtime files and sources, for Unix
Bram Moolenaar071d4272004-06-13 20:20:40 +000049#
50# html vim##html.zip HTML docs
51#
Bram Moolenaar071d4272004-06-13 20:20:40 +000052# 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
Bram Moolenaar864665d2010-05-15 15:41:59 +020060#
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
Bram Moolenaar071d4272004-06-13 20:20:40 +000065#
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!
Bram Moolenaar864665d2010-05-15 15:41:59 +020073# To do all this you need the Unix archive and compiled binaries.
Bram Moolenaar071d4272004-06-13 20:20:40 +000074# Before creating an archive first delete all backup files, *.orig, etc.
75
Bram Moolenaara5792f52005-11-23 21:25:05 +000076MAJOR = 7
Bram Moolenaar1a42b4b2013-07-28 18:29:08 +020077MINOR = 4b
Bram Moolenaar071d4272004-06-13 20:20:40 +000078
79# Uncomment this line if the Win32s version is to be included.
Bram Moolenaar913df812013-07-06 15:44:11 +020080# DOSBIN_S = dosbin_s
Bram Moolenaar071d4272004-06-13 20:20:40 +000081
Bram Moolenaard28478b2010-07-18 23:29:58 +020082# Uncomment this line if the 16 bit DOS version is to be included.
83# DOSBIN_D16 = dosbin_d16
84
Bram Moolenaar913df812013-07-06 15:44:11 +020085# Uncomment this line if the 32 bit DOS version is to be included.
86# DOSBIN_D32 = dosbin_d32
87
Bram Moolenaar071d4272004-06-13 20:20:40 +000088# CHECKLIST for creating a new version:
89#
90# - Update Vim version number. For a test version in: src/version.h, Contents,
Bram Moolenaarc01140a2006-03-24 22:21:52 +000091# MAJOR/MINOR above, VIMMAJOR and VIMMINOR in src/Makefile, README*.txt,
Bram Moolenaarc6039d82005-12-02 00:44:04 +000092# runtime/doc/*.txt and nsis/gvim.nsi. Other things in README_os2.txt. For a
Bram Moolenaar3737f892010-08-06 20:53:49 +020093# minor/major version: src/GvimExt/GvimExt.reg, src/vim.def, src/vim16.def,
94# src/gvim.exe.mnf.
Bram Moolenaarbfc8b972010-08-13 22:05:54 +020095# - Adjust the date and other info in src/version.h.
Bram Moolenaar071d4272004-06-13 20:20:40 +000096# - Correct included_patches[] in src/version.c.
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +020097# - Compile Vim with GTK, Perl, Python, Python3, TCL, Ruby, MZscheme, Lua (if
Bram Moolenaarbfc8b972010-08-13 22:05:54 +020098# you can make it all work), Cscope and "huge" features. Exclude workshop
99# and SNiFF.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000100# - With these features: "make proto" (requires cproto and Motif installed;
101# ignore warnings for missing include files, fix problems for syntax errors).
102# - With these features: "make depend" (works best with gcc).
Bram Moolenaar6df6f472010-07-18 18:04:50 +0200103# - If you have a lint program: "make lint" and check the output (ignore GTK
104# warnings).
Bram Moolenaaraba88572008-06-25 20:13:35 +0000105# - Enable the efence library in "src/Makefile" and run "make test". Disable
106# Python and Ruby to avoid trouble with threads (efence is not threadsafe).
Bram Moolenaar071d4272004-06-13 20:20:40 +0000107# - Check for missing entries in runtime/makemenu.vim (with checkmenu script).
108# - Check for missing options in runtime/optwin.vim et al. (with check.vim).
109# - Do "make menu" to update the runtime/synmenu.vim file.
Bram Moolenaarc01140a2006-03-24 22:21:52 +0000110# - Add remarks for changes to runtime/doc/version7.txt.
Bram Moolenaar5cdd0df2007-05-12 12:58:05 +0000111# - Check that runtime/doc/help.txt doesn't contain entries in "LOCAL
112# ADDITIONS".
Bram Moolenaar071d4272004-06-13 20:20:40 +0000113# - In runtime/doc run "make" and "make html" to check for errors.
114# - Check if src/Makefile and src/feature.h don't contain any personal
115# preferences or the GTK, Perl, etc. mentioned above.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000116# - Check file protections to be "644" for text and "755" for executables (run
117# the "check" script).
118# - Check compiling on Amiga, MS-DOS and MS-Windows.
119# - Delete all *~, *.sw?, *.orig, *.rej files
Bram Moolenaar864665d2010-05-15 15:41:59 +0200120# - "make unixall", "make html"
Bram Moolenaar5cdd0df2007-05-12 12:58:05 +0000121# - Make diff files against the previous release: "makediff7 7.1 7.2"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000122#
Bram Moolenaarfff2bee2010-05-15 13:56:02 +0200123# Amiga: (OBSOLETE, Amiga files are no longer distributed)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000124# - "make amisrc", move the archive to the Amiga and compile:
125# "make -f Make_manx.mak" (will use "big" features by default).
126# - Run the tests: "make -f Make_manx.mak test"
127# - Place the executables Vim and Xxd in this directory (set the executable
128# flag).
129# - "make amirt", "make amibin".
130#
131# PC:
Bram Moolenaar442b4222010-05-24 21:34:22 +0200132# - Run make on Unix to update the ".mo" files.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000133# - "make dossrc" and "make dosrt". Unpack the archives on a PC.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000134# Win32 console version:
Bram Moolenaarba460752013-07-04 22:35:01 +0200135# - Set environment for Visual C++ 2008, e.g.: "msvc2008.bat" Or:
136# "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat".
137# Or, when using the Visual C++ Toolkit 2003: "msvcsetup.bat" (adjust the
138# paths when necessary).
139# For Windows 98/ME the 2003 version is required, but then the executable
Bram Moolenaar1a42b4b2013-07-28 18:29:08 +0200140# won't work on Windows 7 and 64 bit systems.
Bram Moolenaarba460752013-07-04 22:35:01 +0200141# - "nmake -f Make_mvc.mak" (use the same path as for vcvars32.bat)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000142# - "rm testdir/*.out", "nmake -f Make_mvc.mak test" and check the output.
Bram Moolenaarba460752013-07-04 22:35:01 +0200143# - Rename vim.exe to vimw32.exe, xxd/xxd.exe to xxdw32.exe.
Bram Moolenaardd2a3cd2007-05-05 17:10:09 +0000144# - Rename vim.pdb to vimw32.pdb.
Bram Moolenaarba460752013-07-04 22:35:01 +0200145# - Rename install.exe to installw32.exe and uninstal.exe to uninstalw32.exe.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000146# Win32 GUI version:
Bram Moolenaarba460752013-07-04 22:35:01 +0200147# - "nmake -f Make_mvc.mak GUI=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000148# - move "gvim.exe" to here (otherwise the OLE version will overwrite it).
Bram Moolenaardd2a3cd2007-05-05 17:10:09 +0000149# - Move gvim.pdb to here.
Bram Moolenaar143c38c2007-05-10 16:41:10 +0000150# - Delete vimrun.exe, install.exe and uninstal.exe.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000151# - Copy "GvimExt/gvimext.dll" to here.
152# Win32 GUI version with OLE, PERL, TCL, PYTHON and dynamic IME:
153# - Run src/bigvim.bat ("nmake -f Make_mvc.mak GUI=yes OLE=yes IME=yes ...)
154# - Rename "gvim.exe" to "gvim_ole.exe".
Bram Moolenaardd2a3cd2007-05-05 17:10:09 +0000155# - Rename gvim.pdb to "gvim_ole.pdb".
Bram Moolenaar143c38c2007-05-10 16:41:10 +0000156# - Delete install.exe and uninstal.exe.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000157# Create the archives:
158# - Copy all the "*.exe" files to where this Makefile is.
Bram Moolenaarb21e5842006-04-16 18:30:08 +0000159# - Copy all the "*.pdb" files to where this Makefile is.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000160# - "make dosbin".
Bram Moolenaar071d4272004-06-13 20:20:40 +0000161# NSIS self installing exe:
Bram Moolenaar442b4222010-05-24 21:34:22 +0200162# - To get NSIS see http://nsis.sourceforge.net
Bram Moolenaarba460752013-07-04 22:35:01 +0200163# - Make sure gvim_ole.exe, vimw32.exe, installw32.exe,
Bram Moolenaar071d4272004-06-13 20:20:40 +0000164# uninstalw32.exe and xxdw32.exe have been build as mentioned above.
Bram Moolenaar442b4222010-05-24 21:34:22 +0200165# - copy these files (get them from a binary archive or build them):
166# gvimext.dll in src/GvimExt
167# gvimext64.dll in src/GvimExt
168# VisVim.dll in src/VisVim
Bram Moolenaar3991dab2006-03-27 17:01:56 +0000169# Note: VisVim needs to be build with MSVC 5, newer versions don't work.
Bram Moolenaar442b4222010-05-24 21:34:22 +0200170# gvimext64.dll can be obtained from http://code.google.com/p/vim-win3264/
Bram Moolenaarab8205e2010-07-07 15:14:03 +0200171# It is part of vim72.zip as vim72/gvimext.dll.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000172# - make sure there is a diff.exe two levels up
Bram Moolenaar442b4222010-05-24 21:34:22 +0200173# - go to ../nsis and do "makensis gvim.nsi" (takes a few minutes).
Bram Moolenaar071d4272004-06-13 20:20:40 +0000174# - Copy gvim##.exe to the dist directory.
175#
Bram Moolenaarba460752013-07-04 22:35:01 +0200176# 64 bit builds (these are not in the normal distribution, the 32 bit build
177# works just fine on 64 bit systems).
178# Like the console and GUI version, but first run vcvars64.bat or
179# "..\VC\vcvarsall.bat x86_amd64".
180# - "nmake -f Make_mvc.mak"
181# - "nmake -f Make_mvc.mak GUI=yes"
182# Or run src/bigvim64.bat for an OLE version.
183#
184# OBSOLETE systems: You can build this if you have an appropriate system.
185#
186# 16 bit DOS version: (doesn't build anywhere)
187# - Set environment for compiling with Borland C++ 3.1.
188# - "bmake -f Make_bc3.mak BOR=E:\borlandc" (compiling xxd might fail, in that
189# case set environment for compiling with Borland C++ 4.0 and do
190# "make -f make_bc3.mak BOR=E:\BC4 xxd/xxd.exe").
191# NOTE: this currently fails because Vim is too big.
192# - "make test" and check the output.
193# - Rename the executables to "vimd16.exe", "xxdd16.exe", "installd16.exe" and
194# "uninstald16.exe".
195#
196# 32 bit DOS version: (requires Windows XP or earlier)
197# - Set environment for compiling with DJGPP; "gmake -f Make_djg.mak".
198# - "rm testdir/*.out", "gmake -f Make_djg.mak test" and check the output for
199# "ALL DONE".
200# - Rename the executables to "vimd32.exe", "xxdd32.exe", "installd32.exe" and
201# "uninstald32.exe".
202#
203# Win32s GUI version: (requires very old compiler)
204# - Set environment for Visual C++ 4.1 (requires a new console window):
205# "vcvars32.bat" (use the path for VC 4.1 e:\msdev\bin)
206# - "nmake -f Make_mvc.mak GUI=yes INTL=no clean" (use the path for VC 4.1)
207# - "nmake -f Make_mvc.mak GUI=yes INTL=no" (use the path for VC 4.1)
208# - Rename "gvim.exe" to "gvim_w32s.exe".
209# - Rename "install.exe" to "installw32.exe"
210# - Rename "uninstal.exe" to "uninstalw32.exe"
211# - The produced uninstalw32.exe and vimrun.exe are used.
212#
213# OS/2: (requires an OS/2 system)
Bram Moolenaar864665d2010-05-15 15:41:59 +0200214# - Unpack the Unix archive.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000215# - "make -f Make_os2.mak".
216# - Rename the executables to vimos2.exe, xxdos2.exe and teeos2.exe and copy
217# them to here.
218# - "make os2bin".
219
220VIMVER = vim-$(MAJOR).$(MINOR)
221VERSION = $(MAJOR)$(MINOR)
222VDOT = $(MAJOR).$(MINOR)
223VIMRTDIR = vim$(VERSION)
224
225# Vim used for conversion from "unix" to "dos"
226VIM = vim
227
228# How to include Filelist depends on the version of "make" you have.
229# If the current choice doesn't work, try the other one.
230
231include Filelist
232#.include "Filelist"
233
234
235# All output is put in the "dist" directory.
236dist:
237 mkdir dist
238
239# Clean up some files to avoid they are included.
240prepare:
241 if test -f runtime/doc/uganda.nsis.txt; then \
242 rm runtime/doc/uganda.nsis.txt; fi
243
244# For the zip files we need to create a file with the comment line
245dist/comment:
246 mkdir dist/comment
247
248COMMENT_RT = comment/$(VERSION)-rt
Bram Moolenaar071d4272004-06-13 20:20:40 +0000249COMMENT_D16 = comment/$(VERSION)-bin-d16
250COMMENT_D32 = comment/$(VERSION)-bin-d32
251COMMENT_W32 = comment/$(VERSION)-bin-w32
252COMMENT_GVIM = comment/$(VERSION)-bin-gvim
253COMMENT_OLE = comment/$(VERSION)-bin-ole
254COMMENT_W32S = comment/$(VERSION)-bin-w32s
255COMMENT_SRC = comment/$(VERSION)-src
256COMMENT_OS2 = comment/$(VERSION)-bin-os2
257COMMENT_HTML = comment/$(VERSION)-html
258COMMENT_FARSI = comment/$(VERSION)-farsi
Bram Moolenaar071d4272004-06-13 20:20:40 +0000259
260dist/$(COMMENT_RT): dist/comment
261 echo "Vim - Vi IMproved - v$(VDOT) runtime files for MS-DOS and MS-Windows" > dist/$(COMMENT_RT)
262
Bram Moolenaar071d4272004-06-13 20:20:40 +0000263dist/$(COMMENT_D16): dist/comment
264 echo "Vim - Vi IMproved - v$(VDOT) binaries for MS-DOS 16 bit real mode" > dist/$(COMMENT_D16)
265
266dist/$(COMMENT_D32): dist/comment
267 echo "Vim - Vi IMproved - v$(VDOT) binaries for MS-DOS 32 bit protected mode" > dist/$(COMMENT_D32)
268
269dist/$(COMMENT_W32): dist/comment
270 echo "Vim - Vi IMproved - v$(VDOT) binaries for MS-Windows NT/95" > dist/$(COMMENT_W32)
271
272dist/$(COMMENT_GVIM): dist/comment
273 echo "Vim - Vi IMproved - v$(VDOT) GUI binaries for MS-Windows NT/95" > dist/$(COMMENT_GVIM)
274
275dist/$(COMMENT_OLE): dist/comment
276 echo "Vim - Vi IMproved - v$(VDOT) MS-Windows GUI binaries with OLE support" > dist/$(COMMENT_OLE)
277
278dist/$(COMMENT_W32S): dist/comment
279 echo "Vim - Vi IMproved - v$(VDOT) GUI binaries for MS-Windows 3.1/3.11" > dist/$(COMMENT_W32S)
280
281dist/$(COMMENT_SRC): dist/comment
282 echo "Vim - Vi IMproved - v$(VDOT) sources for MS-DOS and MS-Windows" > dist/$(COMMENT_SRC)
283
284dist/$(COMMENT_OS2): dist/comment
285 echo "Vim - Vi IMproved - v$(VDOT) binaries + runtime files for OS/2" > dist/$(COMMENT_OS2)
286
287dist/$(COMMENT_HTML): dist/comment
288 echo "Vim - Vi IMproved - v$(VDOT) documentation in HTML" > dist/$(COMMENT_HTML)
289
290dist/$(COMMENT_FARSI): dist/comment
291 echo "Vim - Vi IMproved - v$(VDOT) Farsi language files" > dist/$(COMMENT_FARSI)
292
Bram Moolenaarcef9dcc2005-12-06 19:50:41 +0000293unixall: dist prepare
294 -rm -f dist/$(VIMVER).tar.bz2
Bram Moolenaar071d4272004-06-13 20:20:40 +0000295 -rm -rf dist/$(VIMRTDIR)
296 mkdir dist/$(VIMRTDIR)
297 tar cf - \
298 $(RT_ALL) \
299 $(RT_ALL_BIN) \
300 $(RT_UNIX) \
301 $(RT_UNIX_DOS_BIN) \
Bram Moolenaar071d4272004-06-13 20:20:40 +0000302 $(RT_SCRIPTS) \
303 $(LANG_GEN) \
Bram Moolenaar5482f332005-04-17 20:18:43 +0000304 $(LANG_GEN_BIN) \
Bram Moolenaarcef9dcc2005-12-06 19:50:41 +0000305 $(SRC_ALL) \
Bram Moolenaar071d4272004-06-13 20:20:40 +0000306 $(SRC_UNIX) \
307 $(SRC_DOS_UNIX) \
Bram Moolenaar864665d2010-05-15 15:41:59 +0200308 $(EXTRA) \
309 $(LANG_SRC) \
Bram Moolenaar071d4272004-06-13 20:20:40 +0000310 | (cd dist/$(VIMRTDIR); tar xf -)
311# Need to use a "distclean" config.mk file
Bram Moolenaarba460752013-07-04 22:35:01 +0200312# Note: this file is not included in the repository to avoid problems, but it's
313# OK to put it in the archive.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000314 cp -f src/config.mk.dist dist/$(VIMRTDIR)/src/auto/config.mk
315# Create an empty config.h file, make dependencies require it
316 touch dist/$(VIMRTDIR)/src/auto/config.h
317# Make sure configure is newer than config.mk to force it to be generated
318 touch dist/$(VIMRTDIR)/src/configure
Bram Moolenaar071d4272004-06-13 20:20:40 +0000319# Make sure ja.sjis.po is newer than ja.po to avoid it being regenerated.
320# Same for cs.cp1250.po, pl.cp1250.po and sk.cp1250.po.
321 touch dist/$(VIMRTDIR)/src/po/ja.sjis.po
322 touch dist/$(VIMRTDIR)/src/po/cs.cp1250.po
323 touch dist/$(VIMRTDIR)/src/po/pl.cp1250.po
324 touch dist/$(VIMRTDIR)/src/po/sk.cp1250.po
325 touch dist/$(VIMRTDIR)/src/po/zh_CN.cp936.po
326 touch dist/$(VIMRTDIR)/src/po/ru.cp1251.po
Bram Moolenaar15d0a8c2004-09-06 17:44:46 +0000327 touch dist/$(VIMRTDIR)/src/po/uk.cp1251.po
Bram Moolenaar864665d2010-05-15 15:41:59 +0200328# Create the archive.
329 cd dist && tar cf $(VIMVER).tar $(VIMRTDIR)
330 bzip2 dist/$(VIMVER).tar
Bram Moolenaar071d4272004-06-13 20:20:40 +0000331
Bram Moolenaar864665d2010-05-15 15:41:59 +0200332# Amiga runtime - OBSOLETE
Bram Moolenaar071d4272004-06-13 20:20:40 +0000333amirt: dist prepare
334 -rm -f dist/vim$(VERSION)rt.tar.gz
335 -rm -rf dist/Vim
336 mkdir dist/Vim
337 mkdir dist/Vim/$(VIMRTDIR)
338 tar cf - \
339 $(ROOT_AMI) \
340 $(RT_ALL) \
341 $(RT_ALL_BIN) \
342 $(RT_SCRIPTS) \
343 $(RT_AMI) \
344 $(RT_NO_UNIX) \
345 $(RT_AMI_DOS) \
346 | (cd dist/Vim/$(VIMRTDIR); tar xf -)
347 mv dist/Vim/$(VIMRTDIR)/vimdir.info dist/Vim.info
348 mv dist/Vim/$(VIMRTDIR)/runtime.info dist/Vim/$(VIMRTDIR).info
349 mv dist/Vim/$(VIMRTDIR)/runtime/* dist/Vim/$(VIMRTDIR)
350 rmdir dist/Vim/$(VIMRTDIR)/runtime
351 cd dist && tar cf vim$(VERSION)rt.tar Vim Vim.info
352 gzip -9 dist/vim$(VERSION)rt.tar
353 mv dist/vim$(VERSION)rt.tar.gz dist/vim$(VERSION)rt.tgz
354
Bram Moolenaar864665d2010-05-15 15:41:59 +0200355# Amiga binaries - OBSOLETE
Bram Moolenaar071d4272004-06-13 20:20:40 +0000356amibin: dist prepare
357 -rm -f dist/vim$(VERSION)bin.tar.gz
358 -rm -rf dist/Vim
359 mkdir dist/Vim
360 mkdir dist/Vim/$(VIMRTDIR)
361 tar cf - \
362 $(ROOT_AMI) \
363 $(BIN_AMI) \
364 Vim \
365 Xxd \
366 | (cd dist/Vim/$(VIMRTDIR); tar xf -)
367 mv dist/Vim/$(VIMRTDIR)/vimdir.info dist/Vim.info
368 mv dist/Vim/$(VIMRTDIR)/runtime.info dist/Vim/$(VIMRTDIR).info
369 cd dist && tar cf vim$(VERSION)bin.tar Vim Vim.info
370 gzip -9 dist/vim$(VERSION)bin.tar
371 mv dist/vim$(VERSION)bin.tar.gz dist/vim$(VERSION)bin.tgz
372
Bram Moolenaar864665d2010-05-15 15:41:59 +0200373# Amiga sources - OBSOLETE
Bram Moolenaar071d4272004-06-13 20:20:40 +0000374amisrc: dist prepare
375 -rm -f dist/vim$(VERSION)src.tar.gz
376 -rm -rf dist/Vim
377 mkdir dist/Vim
378 mkdir dist/Vim/$(VIMRTDIR)
379 tar cf - \
380 $(ROOT_AMI) \
Bram Moolenaarcef9dcc2005-12-06 19:50:41 +0000381 $(SRC_ALL) \
Bram Moolenaar071d4272004-06-13 20:20:40 +0000382 $(SRC_AMI) \
383 $(SRC_AMI_DOS) \
384 | (cd dist/Vim/$(VIMRTDIR); tar xf -)
385 mv dist/Vim/$(VIMRTDIR)/vimdir.info dist/Vim.info
386 mv dist/Vim/$(VIMRTDIR)/runtime.info dist/Vim/$(VIMRTDIR).info
387 cd dist && tar cf vim$(VERSION)src.tar Vim Vim.info
388 gzip -9 dist/vim$(VERSION)src.tar
389 mv dist/vim$(VERSION)src.tar.gz dist/vim$(VERSION)src.tgz
390
391no_title.vim: Makefile
392 echo "set notitle noicon nocp nomodeline viminfo=" >no_title.vim
393
Bram Moolenaar442b4222010-05-24 21:34:22 +0200394# MS-DOS sources
395dossrc: dist no_title.vim dist/$(COMMENT_SRC) runtime/doc/uganda.nsis.txt
396 -rm -rf dist/vim$(VERSION)src.zip
397 -rm -rf dist/vim
398 mkdir dist/vim
399 mkdir dist/vim/$(VIMRTDIR)
400 tar cf - \
401 $(SRC_ALL) \
402 $(SRC_DOS) \
403 $(SRC_AMI_DOS) \
404 $(SRC_DOS_UNIX) \
405 runtime/doc/uganda.nsis.txt \
406 | (cd dist/vim/$(VIMRTDIR); tar xf -)
407 mv dist/vim/$(VIMRTDIR)/runtime/* dist/vim/$(VIMRTDIR)
408 rmdir dist/vim/$(VIMRTDIR)/runtime
409 find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \;
410 tar cf - \
411 $(SRC_DOS_BIN) \
412 | (cd dist/vim/$(VIMRTDIR); tar xf -)
413 cd dist && zip -9 -rD -z vim$(VERSION)src.zip vim <$(COMMENT_SRC)
414
415runtime/doc/uganda.nsis.txt: runtime/doc/uganda.txt
416 cd runtime/doc && $(MAKE) uganda.nsis.txt
417
Bram Moolenaar071d4272004-06-13 20:20:40 +0000418dosrt: dist dist/$(COMMENT_RT) dosrt_unix2dos
419 -rm -rf dist/vim$(VERSION)rt.zip
420 cd dist && zip -9 -rD -z vim$(VERSION)rt.zip vim <$(COMMENT_RT)
421
Bram Moolenaar442b4222010-05-24 21:34:22 +0200422# Split in two parts to avoid an "argument list too long" error.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000423dosrt_unix2dos: dist prepare no_title.vim
424 -rm -rf dist/vim
425 mkdir dist/vim
426 mkdir dist/vim/$(VIMRTDIR)
Bram Moolenaar864665d2010-05-15 15:41:59 +0200427 mkdir dist/vim/$(VIMRTDIR)/lang
428 cd src && MAKEMO=yes $(MAKE) languages
Bram Moolenaar071d4272004-06-13 20:20:40 +0000429 tar cf - \
430 $(RT_ALL) \
Bram Moolenaara5792f52005-11-23 21:25:05 +0000431 | (cd dist/vim/$(VIMRTDIR); tar xf -)
432 tar cf - \
Bram Moolenaar071d4272004-06-13 20:20:40 +0000433 $(RT_SCRIPTS) \
434 $(RT_DOS) \
435 $(RT_NO_UNIX) \
436 $(RT_AMI_DOS) \
437 $(LANG_GEN) \
438 | (cd dist/vim/$(VIMRTDIR); tar xf -)
Bram Moolenaard8e21d32010-01-06 21:16:31 +0100439 find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000440 tar cf - \
441 $(RT_UNIX_DOS_BIN) \
442 $(RT_ALL_BIN) \
443 $(RT_DOS_BIN) \
Bram Moolenaar5482f332005-04-17 20:18:43 +0000444 $(LANG_GEN_BIN) \
Bram Moolenaar071d4272004-06-13 20:20:40 +0000445 | (cd dist/vim/$(VIMRTDIR); tar xf -)
446 mv dist/vim/$(VIMRTDIR)/runtime/* dist/vim/$(VIMRTDIR)
447 rmdir dist/vim/$(VIMRTDIR)/runtime
Bram Moolenaar864665d2010-05-15 15:41:59 +0200448# Add the message translations. Trick: skip ja.mo and use ja.sjis.mo instead.
449# Same for cs.mo / cs.cp1250.mo, pl.mo / pl.cp1250.mo, sk.mo / sk.cp1250.mo,
450# zh_CN.mo / zh_CN.cp936.mo, uk.mo / uk.cp1251.mo and ru.mo / ru.cp1251.mo.
451 for i in $(LANG_DOS); do \
452 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 \
453 n=`echo $$i | sed -e "s+src/po/\([-a-zA-Z0-9_]*\(.UTF-8\)*\)\(.sjis\)*\(.cp1250\)*\(.cp1251\)*\(.cp936\)*.mo+\1+"`; \
454 mkdir dist/vim/$(VIMRTDIR)/lang/$$n; \
455 mkdir dist/vim/$(VIMRTDIR)/lang/$$n/LC_MESSAGES; \
456 cp $$i dist/vim/$(VIMRTDIR)/lang/$$n/LC_MESSAGES/vim.mo; \
457 fi \
458 done
459 cp libintl.dll dist/vim/$(VIMRTDIR)/
Bram Moolenaar071d4272004-06-13 20:20:40 +0000460
461
462# Convert runtime files from Unix fileformat to dos fileformat.
463# Used before uploading. Don't delete the AAPDIR/sign files!
464runtime_unix2dos: dosrt_unix2dos
465 -rm -rf `find runtime/dos -type f -print | sed -e /AAPDIR/d`
466 cd dist/vim/$(VIMRTDIR); tar cf - * \
467 | (cd ../../../runtime/dos; tar xf -)
468
Bram Moolenaar913df812013-07-06 15:44:11 +0200469dosbin: prepare dosbin_gvim dosbin_w32 $(DOSBIN_D32) dosbin_ole $(DOSBIN_S) $(DOSBIN_D16)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000470
471# make Win32 gvim
472dosbin_gvim: dist no_title.vim dist/$(COMMENT_GVIM)
473 -rm -rf dist/gvim$(VERSION).zip
474 -rm -rf dist/vim
475 mkdir dist/vim
476 mkdir dist/vim/$(VIMRTDIR)
477 tar cf - \
478 $(BIN_DOS) \
479 | (cd dist/vim/$(VIMRTDIR); tar xf -)
Bram Moolenaard8e21d32010-01-06 21:16:31 +0100480 find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000481 cp gvim.exe dist/vim/$(VIMRTDIR)/gvim.exe
482 cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe
483 cp vimrun.exe dist/vim/$(VIMRTDIR)/vimrun.exe
484 cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe
485 cp uninstalw32.exe dist/vim/$(VIMRTDIR)/uninstal.exe
486 cp gvimext.dll dist/vim/$(VIMRTDIR)/gvimext.dll
487 cd dist && zip -9 -rD -z gvim$(VERSION).zip vim <$(COMMENT_GVIM)
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000488 cp gvim.pdb dist/gvim$(VERSION).pdb
Bram Moolenaar071d4272004-06-13 20:20:40 +0000489
490# make Win32 console
491dosbin_w32: dist no_title.vim dist/$(COMMENT_W32)
492 -rm -rf dist/vim$(VERSION)w32.zip
493 -rm -rf dist/vim
494 mkdir dist/vim
495 mkdir dist/vim/$(VIMRTDIR)
496 tar cf - \
497 $(BIN_DOS) \
498 | (cd dist/vim/$(VIMRTDIR); tar xf -)
Bram Moolenaard8e21d32010-01-06 21:16:31 +0100499 find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000500 cp vimw32.exe dist/vim/$(VIMRTDIR)/vim.exe
501 cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe
502 cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe
503 cp uninstalw32.exe dist/vim/$(VIMRTDIR)/uninstal.exe
504 cd dist && zip -9 -rD -z vim$(VERSION)w32.zip vim <$(COMMENT_W32)
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000505 cp vimw32.pdb dist/vim$(VERSION)w32.pdb
Bram Moolenaar071d4272004-06-13 20:20:40 +0000506
507# make 32bit DOS
508dosbin_d32: dist no_title.vim dist/$(COMMENT_D32)
509 -rm -rf dist/vim$(VERSION)d32.zip
510 -rm -rf dist/vim
511 mkdir dist/vim
512 mkdir dist/vim/$(VIMRTDIR)
513 tar cf - \
514 $(BIN_DOS) \
515 | (cd dist/vim/$(VIMRTDIR); tar xf -)
Bram Moolenaard8e21d32010-01-06 21:16:31 +0100516 find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000517 cp vimd32.exe dist/vim/$(VIMRTDIR)/vim.exe
518 cp xxdd32.exe dist/vim/$(VIMRTDIR)/xxd.exe
519 cp installd32.exe dist/vim/$(VIMRTDIR)/install.exe
520 cp uninstald32.exe dist/vim/$(VIMRTDIR)/uninstal.exe
521 cp csdpmi4b.zip dist/vim/$(VIMRTDIR)
522 cd dist && zip -9 -rD -z vim$(VERSION)d32.zip vim <$(COMMENT_D32)
523
524# make 16bit DOS
525dosbin_d16: dist no_title.vim dist/$(COMMENT_D16)
526 -rm -rf dist/vim$(VERSION)d16.zip
527 -rm -rf dist/vim
528 mkdir dist/vim
529 mkdir dist/vim/$(VIMRTDIR)
530 tar cf - \
531 $(BIN_DOS) \
532 | (cd dist/vim/$(VIMRTDIR); tar xf -)
Bram Moolenaard8e21d32010-01-06 21:16:31 +0100533 find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000534 cp vimd16.exe dist/vim/$(VIMRTDIR)/vim.exe
535 cp xxdd16.exe dist/vim/$(VIMRTDIR)/xxd.exe
536 cp installd16.exe dist/vim/$(VIMRTDIR)/install.exe
537 cp uninstald16.exe dist/vim/$(VIMRTDIR)/uninstal.exe
538 cd dist && zip -9 -rD -z vim$(VERSION)d16.zip vim <$(COMMENT_D16)
539
540# make Win32 gvim with OLE
541dosbin_ole: dist no_title.vim dist/$(COMMENT_OLE)
542 -rm -rf dist/gvim$(VERSION)ole.zip
543 -rm -rf dist/vim
544 mkdir dist/vim
545 mkdir dist/vim/$(VIMRTDIR)
546 tar cf - \
547 $(BIN_DOS) \
548 | (cd dist/vim/$(VIMRTDIR); tar xf -)
Bram Moolenaard8e21d32010-01-06 21:16:31 +0100549 find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000550 cp gvim_ole.exe dist/vim/$(VIMRTDIR)/gvim.exe
551 cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe
552 cp vimrun.exe dist/vim/$(VIMRTDIR)/vimrun.exe
553 cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe
554 cp uninstalw32.exe dist/vim/$(VIMRTDIR)/uninstal.exe
555 cp gvimext.dll dist/vim/$(VIMRTDIR)/gvimext.dll
556 cp README_ole.txt dist/vim/$(VIMRTDIR)
557 cp src/VisVim/VisVim.dll dist/vim/$(VIMRTDIR)/VisVim.dll
558 cp src/VisVim/README_VisVim.txt dist/vim/$(VIMRTDIR)
559 cd dist && zip -9 -rD -z gvim$(VERSION)ole.zip vim <$(COMMENT_OLE)
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000560 cp gvim_ole.pdb dist/gvim$(VERSION)ole.pdb
Bram Moolenaar071d4272004-06-13 20:20:40 +0000561
562# make Win32s gvim
563dosbin_s: dist no_title.vim dist/$(COMMENT_W32S)
564 -rm -rf dist/gvim$(VERSION)_s.zip
565 -rm -rf dist/vim
566 mkdir dist/vim
567 mkdir dist/vim/$(VIMRTDIR)
568 tar cf - \
569 $(BIN_DOS) \
570 | (cd dist/vim/$(VIMRTDIR); tar xf -)
Bram Moolenaard8e21d32010-01-06 21:16:31 +0100571 find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000572 cp gvim_w32s.exe dist/vim/$(VIMRTDIR)/gvim.exe
573 cp xxdd32.exe dist/vim/$(VIMRTDIR)/xxd.exe
574 cp README_w32s.txt dist/vim/$(VIMRTDIR)
575 cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe
576 cp uninstalw32.exe dist/vim/$(VIMRTDIR)/uninstal.exe
577 cd dist && zip -9 -rD -z gvim$(VERSION)_s.zip vim <$(COMMENT_W32S)
578
Bram Moolenaar071d4272004-06-13 20:20:40 +0000579os2bin: dist no_title.vim dist/$(COMMENT_OS2)
580 -rm -rf dist/vim$(VERSION)os2.zip
581 -rm -rf dist/vim
582 mkdir dist/vim
583 mkdir dist/vim/$(VIMRTDIR)
584 tar cf - \
585 $(BIN_OS2) \
586 | (cd dist/vim/$(VIMRTDIR); tar xf -)
Bram Moolenaard8e21d32010-01-06 21:16:31 +0100587 find dist/vim/$(VIMRTDIR) -type f -exec $(VIM) -e -X -u no_title.vim -c ":set tx|wq" {} \;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000588 cp vimos2.exe dist/vim/$(VIMRTDIR)/vim.exe
589 cp xxdos2.exe dist/vim/$(VIMRTDIR)/xxd.exe
590 cp teeos2.exe dist/vim/$(VIMRTDIR)/tee.exe
591 cp emx.dll emxlibcs.dll dist/vim/$(VIMRTDIR)
592 cd dist && zip -9 -rD -z vim$(VERSION)os2.zip vim <$(COMMENT_OS2)
593
594html: dist dist/$(COMMENT_HTML)
595 -rm -rf dist/vim$(VERSION)html.zip
596 cd runtime/doc && zip -9 -z ../../dist/vim$(VERSION)html.zip *.html <../../dist/$(COMMENT_HTML)
597
598farsi: dist dist/$(COMMENT_FARSI)
599 -rm -f dist/farsi$(VERSION).zip
600 zip -9 -rD -z dist/farsi$(VERSION).zip farsi < dist/$(COMMENT_FARSI)