| 1 |
# This Makefile has two purposes: |
| 2 |
# 1. Starting the compilation of Vim for Unix. |
| 3 |
# 2. Creating the various distribution files. |
| 4 |
|
| 5 |
|
| 6 |
######################################################################### |
| 7 |
# 1. Starting the compilation of Vim for Unix. |
| 8 |
# |
| 9 |
# Using this Makefile without an argument will compile Vim for Unix. |
| 10 |
# "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 |
|
| 25 |
first: |
| 26 |
@if test ! -f src/auto/config.mk; then \ |
| 27 |
cp src/config.mk.dist src/auto/config.mk; \ |
| 28 |
fi |
| 29 |
@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. |
| 35 |
all install uninstall tools config configure reconfig proto depend lint tags types test scripttests testtiny test_libvterm unittests testclean clean distclean: |
| 36 |
@if test ! -f src/auto/config.mk; then \ |
| 37 |
cp src/config.mk.dist src/auto/config.mk; \ |
| 38 |
fi |
| 39 |
@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 |
@# When the target is "test" also run the indent and syntax tests. |
| 43 |
@if test "$@" = "test" -o "$@" = "testtiny"; then \ |
| 44 |
$(MAKE) indenttest; \ |
| 45 |
$(MAKE) syntaxtest; \ |
| 46 |
fi |
| 47 |
@# When the target is "clean" also clean for the indent and syntax tests. |
| 48 |
@if test "$@" = "clean" -o "$@" = "distclean" -o "$@" = "testclean"; then \ |
| 49 |
(cd runtime/indent && $(MAKE) clean); \ |
| 50 |
(cd runtime/syntax && $(MAKE) clean); \ |
| 51 |
fi |
| 52 |
|
| 53 |
# Executable used for running the indent tests. |
| 54 |
VIM_FOR_INDENTTEST = ../../src/vim |
| 55 |
|
| 56 |
indenttest: |
| 57 |
cd runtime/indent && \ |
| 58 |
$(MAKE) clean && \ |
| 59 |
$(MAKE) test VIMPROG="$(VIM_FOR_INDENTTEST)" |
| 60 |
|
| 61 |
# Executable used for running the syntax tests. |
| 62 |
VIM_FOR_SYNTAXTEST = ../../src/vim |
| 63 |
|
| 64 |
# (For local testing only with GNU Make.) |
| 65 |
VIM_SYNTAX_TEST_FILTER = |
| 66 |
VIM_SYNTAX_TEST_WAIT_TIME = |
| 67 |
|
| 68 |
syntaxtest: |
| 69 |
cd runtime/syntax && \ |
| 70 |
$(MAKE) clean && \ |
| 71 |
$(MAKE) test VIMPROG="$(VIM_FOR_SYNTAXTEST)" |
| 72 |
|
| 73 |
|
| 74 |
######################################################################### |
| 75 |
# 2. Creating the various distribution files. |
| 76 |
# |
| 77 |
# TARGET PRODUCES CONTAINS |
| 78 |
# unixall vim-#.#.tar.bz2 All runtime files and sources, for Unix |
| 79 |
# |
| 80 |
# html vim##html.zip HTML docs |
| 81 |
# |
| 82 |
# dossrc vim##src.zip sources for MS-DOS |
| 83 |
# dosrt vim##rt.zip runtime for MS-DOS |
| 84 |
# dosbin vim##w32.zip binary for Win32 |
| 85 |
# gvim##.zip binary for GUI Win32 |
| 86 |
# gvim##ole.zip OLE exe for Win32 GUI |
| 87 |
# |
| 88 |
# OBSOLETE |
| 89 |
# amisrc vim##src.tgz sources for Amiga |
| 90 |
# amirt vim##rt.tgz runtime for Amiga |
| 91 |
# amibin vim##bin.tgz binary for Amiga |
| 92 |
# |
| 93 |
# farsi farsi##.zip Farsi fonts |
| 94 |
# |
| 95 |
# All output files are created in the "dist" directory. Existing files are |
| 96 |
# overwritten! |
| 97 |
# To do all this you need the Unix archive and compiled binaries. |
| 98 |
# Before creating an archive first delete all backup files, *.orig, etc. |
| 99 |
|
| 100 |
MAJOR = 9 |
| 101 |
MINOR = 2 |
| 102 |
|
| 103 |
# CHECKLIST for creating a new version: |
| 104 |
# |
| 105 |
# - Update Vim version number. For a test version in: src/version.h, |
| 106 |
# READMEdir/Contents, MAJOR/MINOR above, VIMMAJOR and VIMMINOR in |
| 107 |
# src/Makefile, README.txt, README.md, src/README.md, READMEdir/README*.txt, |
| 108 |
# runtime/doc/*.txt. |
| 109 |
# For a minor/major version: src/GvimExt/GvimExt.reg, src/vim.manifest. |
| 110 |
# - Compile Vim with GTK, Perl, Python, Python3, TCL, Ruby, Lua, Cscope and |
| 111 |
# "huge" features. Add MZscheme if you can make it work. |
| 112 |
# Use "make reconfig" after selecting the configure arguments. |
| 113 |
# - With these features: "make proto" (requires cproto and Motif installed; |
| 114 |
# ignore warnings for missing include files, fix problems for syntax errors). |
| 115 |
# - With these features: "make depend" (works best with gcc). |
| 116 |
# - If you have a lint program: "make lint" and check the output (ignore GTK |
| 117 |
# warnings). |
| 118 |
# - compile release versions using -DNDEBUG to disable assert()s |
| 119 |
# - If you have valgrind, enable it in src/testdir/Makefile and run "make |
| 120 |
# test". Enable EXITFREE, disable GUI, scheme and tcl to avoid false alarms. |
| 121 |
# Check the valgrind output. |
| 122 |
# - Adjust the date and other info in src/version.h. |
| 123 |
# - Correct included_patches[] in src/version.c. |
| 124 |
# - Check for missing entries in runtime/makemenu.vim (with checkmenu script). |
| 125 |
# - Check for missing options in runtime/optwin.vim et al. (with check.vim). |
| 126 |
# - Do "make menu" to update the runtime/synmenu.vim file. |
| 127 |
# - Add remarks for changes to runtime/doc/version9.txt. |
| 128 |
# - Check that runtime/doc/help.txt doesn't contain entries in "LOCAL |
| 129 |
# ADDITIONS". |
| 130 |
# - In runtime/doc run "make" and "make html" to check for errors. |
| 131 |
# - Check if src/Makefile, src/testdir/Makefile and src/feature.h don't contain |
| 132 |
# any personal preferences or the changes mentioned above. |
| 133 |
# - Check file protections to be "644" for text and "755" for executables (run |
| 134 |
# the "check" script). |
| 135 |
# - Check compiling on Amiga, MS-DOS and MS-Windows. |
| 136 |
# - Delete all *~, *.sw?, *.orig, *.rej files |
| 137 |
# - "make unixall", "make html" |
| 138 |
# - Make diff files against the previous release: "makediff7 7.1 7.2" |
| 139 |
# |
| 140 |
# Amiga: (OBSOLETE, Amiga files are no longer distributed) |
| 141 |
# - "make amisrc", move the archive to the Amiga and compile: |
| 142 |
# "make -f Make_manx.mak" (will use "big" features by default). |
| 143 |
# - Run the tests: "make -f Make_manx.mak test" |
| 144 |
# - Place the executables Vim and Xxd in this directory (set the executable |
| 145 |
# flag). |
| 146 |
# - "make amirt", "make amibin". |
| 147 |
# |
| 148 |
# MS-Windows: |
| 149 |
# - Run make on Unix to update the ".mo" files. |
| 150 |
# - Get 32 bit libintl-8.dll, libiconv-2.dll and libgcc_s_sjlj-1.dll. E.g. from |
| 151 |
# https://mlocati.github.io/gettext-iconv-windows/ . |
| 152 |
# Use the "shared-32.zip file and extract the archive to get the files. |
| 153 |
# Put them in the gettext32 directory, "make dosrt" uses them. |
| 154 |
# - Get 64 bit libintl-8.dll and libiconv-2.dll. E.g. from |
| 155 |
# https://mlocati.github.io/gettext-iconv-windows/ . |
| 156 |
# Use the "shared-64.zip file and extract the archive to get the files. |
| 157 |
# Put them in the gettext64 directory, "make dosrt" uses them. |
| 158 |
# - > make dossrc |
| 159 |
# > make dosrt |
| 160 |
# Unpack dist/vim##rt.zip and dist/vim##src.zip on an MS-Windows PC. |
| 161 |
# This creates the directory vim/vim91 and puts all files in there. |
| 162 |
# Win32 console version build: |
| 163 |
# - See src/INSTALLpc.txt for installing the compiler and SDK. |
| 164 |
# - Set environment for Visual C++ 2015: |
| 165 |
# > cd src |
| 166 |
# > msvc-latest.bat |
| 167 |
# - Build the console binary: |
| 168 |
# > nmake.exe -f Make_mvc.mak |
| 169 |
# - Run the tests and check the output: |
| 170 |
# > nmake.exe -f Make_mvc.mak testclean |
| 171 |
# > nmake.exe -f Make_mvc.mak test |
| 172 |
# - Rename (using ../tools/rename.bat): |
| 173 |
# vim.exe to vimw32.exe |
| 174 |
# tee/tee.exe to teew32.exe |
| 175 |
# xxd/xxd.exe to xxdw32.exe |
| 176 |
# vim.pdb to vimw32.pdb |
| 177 |
# install.exe to installw32.exe |
| 178 |
# uninstall.exe to uninstallw32.exe |
| 179 |
# Win32 GUI version build: |
| 180 |
# - > cd src |
| 181 |
# > nmake.exe -f Make_mvc.mak "GUI=yes" |
| 182 |
# - Run the tests and check the output: |
| 183 |
# > nmake.exe -f Make_mvc.mak testclean |
| 184 |
# > nmake.exe -f Make_mvc.mak testgvim |
| 185 |
# - move "gvim.exe" to here (otherwise the OLE version will overwrite it). |
| 186 |
# - Move gvim.pdb to here. |
| 187 |
# - Copy "GvimExt/gvimext.dll" to here. |
| 188 |
# - Delete vimrun.exe, install.exe and uninstall.exe. |
| 189 |
# Win32 GUI version with OLE, PERL, Ruby, TCL, PYTHON and dynamic IME: |
| 190 |
# - Install the interfaces you want, see src/INSTALLpc.txt |
| 191 |
# Adjust bigvim.bat to match the version of each interface you want. |
| 192 |
# - Build: |
| 193 |
# > cd src |
| 194 |
# > bigvim.bat |
| 195 |
# - Run the tests: |
| 196 |
# > nmake.exe -f Make_mvc.mak testclean |
| 197 |
# > nmake.exe -f Make_mvc.mak testgvim |
| 198 |
# - check the output. |
| 199 |
# - Rename "gvim.exe" to "gvim_ole.exe". |
| 200 |
# - Rename gvim.pdb to "gvim_ole.pdb". |
| 201 |
# - Delete install.exe and uninstall.exe. |
| 202 |
# Create the archives: |
| 203 |
# - Copy all the "*.exe" files to where this Makefile is. |
| 204 |
# - Copy all the "*.pdb" files to where this Makefile is. |
| 205 |
# - in this directory: |
| 206 |
# > make dosbin |
| 207 |
# NSIS self installing exe: |
| 208 |
# - To get NSIS see http://nsis.sourceforge.net |
| 209 |
# - Make sure gvim_ole.exe, vimw32.exe, installw32.exe, |
| 210 |
# uninstallw32.exe, teew32.exe and xxdw32.exe have been build as mentioned |
| 211 |
# above. |
| 212 |
# - copy these files (get them from a binary archive or build them): |
| 213 |
# gvimext.dll in src/GvimExt |
| 214 |
# gvimext64.dll in src/GvimExt |
| 215 |
# gvimext64.dll can be obtained from: |
| 216 |
# https://github.com/vim/vim-win32-installer/releases |
| 217 |
# It is part of gvim_9.1.*_x64.zip as vim/vim91/GvimExt/gvimext64.dll. |
| 218 |
# - Make sure there is a diff.exe two levels up (get it from a previous Vim |
| 219 |
# version). Also put winpty32.dll and winpty-agent.exe there. |
| 220 |
# - go to ../nsis and do: |
| 221 |
# > nmake.exe -f Make_mvc.mak all |
| 222 |
# (takes a few minutes). |
| 223 |
# See nsis/README.txt for details. |
| 224 |
# - Copy gvim##.exe to the dist directory. |
| 225 |
# |
| 226 |
# 64 bit builds (these are not in the normal distribution, the 32 bit build |
| 227 |
# works just fine on 64 bit systems). |
| 228 |
# Like the console and GUI version, but first run vcvars64.bat or |
| 229 |
# "..\VC\vcvarsall.bat x86_amd64". |
| 230 |
# - Build the console version: |
| 231 |
# > nmake.exe -f Make_mvc.mak |
| 232 |
# - Build the GUI version: |
| 233 |
# > nmake.exe -f Make_mvc.mak "GUI=yes" |
| 234 |
# - Build the OLE version with interfaces: |
| 235 |
# > bigvim64.bat |
| 236 |
# |
| 237 |
# |
| 238 |
# OBSOLETE systems: You can build these if you have an appropriate system. |
| 239 |
# |
| 240 |
# 16 bit DOS version: You need to get a very old version of Vim, for several |
| 241 |
# years even the tiny build is too big to fit in DOS memory. |
| 242 |
# |
| 243 |
# 32 bit DOS version: Support was removed in 7.4.1399. When syncing to before |
| 244 |
# that it probably won't build. |
| 245 |
# |
| 246 |
# Win32s GUI version: Support was removed in patch 7.4.1364. |
| 247 |
# |
| 248 |
# OS/2 support was removed in patch 7.4.1008. If you want to give it a try |
| 249 |
# sync to before that and check the old version of this Makefile for |
| 250 |
# instructions. |
| 251 |
|
| 252 |
VIMVER = vim-$(MAJOR).$(MINOR) |
| 253 |
VERSION = $(MAJOR)$(MINOR) |
| 254 |
VDOT = $(MAJOR).$(MINOR) |
| 255 |
VIMRTDIR = vim$(VERSION) |
| 256 |
|
| 257 |
# How to include Filelist depends on the version of "make" you have. |
| 258 |
# If the current choice doesn't work, try the other one. |
| 259 |
|
| 260 |
include Filelist |
| 261 |
#.include "Filelist" |
| 262 |
|
| 263 |
|
| 264 |
# All output is put in the "dist" directory. |
| 265 |
dist: |
| 266 |
mkdir dist |
| 267 |
|
| 268 |
# Clean up some files to avoid they are included. |
| 269 |
# Copy README files to the top directory. |
| 270 |
prepare: |
| 271 |
if test -f lang/LICENSE.nsis.txt; then \ |
| 272 |
rm -f lang/LICENSE*.nsis.txt; fi |
| 273 |
for name in $(IN_README_DIR); do \ |
| 274 |
cp READMEdir/"$$name" .; \ |
| 275 |
done |
| 276 |
|
| 277 |
# For the zip files we need to create a file with the comment line |
| 278 |
dist/comment: |
| 279 |
mkdir dist/comment |
| 280 |
|
| 281 |
COMMENT_RT = comment/$(VERSION)-rt |
| 282 |
COMMENT_W32 = comment/$(VERSION)-bin-w32 |
| 283 |
COMMENT_GVIM = comment/$(VERSION)-bin-gvim |
| 284 |
COMMENT_OLE = comment/$(VERSION)-bin-ole |
| 285 |
COMMENT_SRC = comment/$(VERSION)-src |
| 286 |
COMMENT_HTML = comment/$(VERSION)-html |
| 287 |
COMMENT_FARSI = comment/$(VERSION)-farsi |
| 288 |
|
| 289 |
dist/$(COMMENT_RT): dist/comment |
| 290 |
echo "Vim - Vi IMproved - v$(VDOT) runtime files for MS-DOS and MS-Windows" > dist/$(COMMENT_RT) |
| 291 |
|
| 292 |
dist/$(COMMENT_W32): dist/comment |
| 293 |
echo "Vim - Vi IMproved - v$(VDOT) binaries for MS-Windows" > dist/$(COMMENT_W32) |
| 294 |
|
| 295 |
dist/$(COMMENT_GVIM): dist/comment |
| 296 |
echo "Vim - Vi IMproved - v$(VDOT) GUI binaries for MS-Windows" > dist/$(COMMENT_GVIM) |
| 297 |
|
| 298 |
dist/$(COMMENT_OLE): dist/comment |
| 299 |
echo "Vim - Vi IMproved - v$(VDOT) MS-Windows GUI binaries with OLE support" > dist/$(COMMENT_OLE) |
| 300 |
|
| 301 |
dist/$(COMMENT_SRC): dist/comment |
| 302 |
echo "Vim - Vi IMproved - v$(VDOT) sources for MS-DOS and MS-Windows" > dist/$(COMMENT_SRC) |
| 303 |
|
| 304 |
dist/$(COMMENT_HTML): dist/comment |
| 305 |
echo "Vim - Vi IMproved - v$(VDOT) documentation in HTML" > dist/$(COMMENT_HTML) |
| 306 |
|
| 307 |
dist/$(COMMENT_FARSI): dist/comment |
| 308 |
echo "Vim - Vi IMproved - v$(VDOT) Farsi language files" > dist/$(COMMENT_FARSI) |
| 309 |
|
| 310 |
unixall: dist prepare |
| 311 |
-rm -f dist/$(VIMVER).tar.bz2 |
| 312 |
-rm -rf dist/$(VIMRTDIR) |
| 313 |
mkdir dist/$(VIMRTDIR) |
| 314 |
tar cf - \ |
| 315 |
$(RT_ALL) \ |
| 316 |
$(RT_ALL_BIN) \ |
| 317 |
$(RT_UNIX) \ |
| 318 |
$(RT_UNIX_DOS_BIN) \ |
| 319 |
$(RT_SCRIPTS) \ |
| 320 |
$(LANG_GEN) \ |
| 321 |
$(LANG_GEN_BIN) \ |
| 322 |
$(SRC_ALL) \ |
| 323 |
$(SRC_UNIX) \ |
| 324 |
$(SRC_DOS_UNIX) \ |
| 325 |
$(EXTRA) \ |
| 326 |
$(LANG_SRC) \ |
| 327 |
| (cd dist/$(VIMRTDIR); tar xf -) |
| 328 |
-rm $(IN_README_DIR) |
| 329 |
# Need to use a "distclean" config.mk file |
| 330 |
# Note: this file is not included in the repository to avoid problems, but it's |
| 331 |
# OK to put it in the archive. |
| 332 |
cp -f src/config.mk.dist dist/$(VIMRTDIR)/src/auto/config.mk |
| 333 |
# Create an empty config.h file, make dependencies require it |
| 334 |
touch dist/$(VIMRTDIR)/src/auto/config.h |
| 335 |
# Make sure configure is newer than config.mk to force it to be generated |
| 336 |
touch dist/$(VIMRTDIR)/src/configure |
| 337 |
# Make sure ja.sjis.po is newer than ja.po to avoid it being regenerated. |
| 338 |
# Same for cs.cp1250.po, pl.cp1250.po and sk.cp1250.po. |
| 339 |
touch dist/$(VIMRTDIR)/src/po/ja.sjis.po |
| 340 |
touch dist/$(VIMRTDIR)/src/po/cs.cp1250.po |
| 341 |
touch dist/$(VIMRTDIR)/src/po/pl.cp1250.po |
| 342 |
touch dist/$(VIMRTDIR)/src/po/sk.cp1250.po |
| 343 |
touch dist/$(VIMRTDIR)/src/po/zh_CN.cp936.po |
| 344 |
touch dist/$(VIMRTDIR)/src/po/ru.cp1251.po |
| 345 |
touch dist/$(VIMRTDIR)/src/po/uk.cp1251.po |
| 346 |
# Create the archive. |
| 347 |
cd dist && tar cf $(VIMVER).tar $(VIMRTDIR) |
| 348 |
bzip2 dist/$(VIMVER).tar |
| 349 |
|
| 350 |
# Amiga runtime - OBSOLETE |
| 351 |
amirt: dist prepare |
| 352 |
-rm -f dist/vim$(VERSION)rt.tar.gz |
| 353 |
-rm -rf dist/Vim |
| 354 |
mkdir dist/Vim |
| 355 |
mkdir dist/Vim/$(VIMRTDIR) |
| 356 |
tar cf - \ |
| 357 |
$(ROOT_AMI) \ |
| 358 |
$(RT_ALL) \ |
| 359 |
$(RT_ALL_BIN) \ |
| 360 |
$(RT_SCRIPTS) \ |
| 361 |
$(RT_AMI) \ |
| 362 |
$(RT_NO_UNIX) \ |
| 363 |
$(RT_AMI_DOS) \ |
| 364 |
| (cd dist/Vim/$(VIMRTDIR); tar xf -) |
| 365 |
-rm $(IN_README_DIR) |
| 366 |
mv dist/Vim/$(VIMRTDIR)/vimdir.info dist/Vim.info |
| 367 |
mv dist/Vim/$(VIMRTDIR)/runtime.info dist/Vim/$(VIMRTDIR).info |
| 368 |
mv dist/Vim/$(VIMRTDIR)/runtime/* dist/Vim/$(VIMRTDIR) |
| 369 |
rmdir dist/Vim/$(VIMRTDIR)/runtime |
| 370 |
cd dist && tar cf vim$(VERSION)rt.tar Vim Vim.info |
| 371 |
gzip -9 dist/vim$(VERSION)rt.tar |
| 372 |
mv dist/vim$(VERSION)rt.tar.gz dist/vim$(VERSION)rt.tgz |
| 373 |
|
| 374 |
# Amiga binaries - OBSOLETE |
| 375 |
amibin: dist prepare |
| 376 |
-rm -f dist/vim$(VERSION)bin.tar.gz |
| 377 |
-rm -rf dist/Vim |
| 378 |
mkdir dist/Vim |
| 379 |
mkdir dist/Vim/$(VIMRTDIR) |
| 380 |
tar cf - \ |
| 381 |
$(ROOT_AMI) \ |
| 382 |
$(BIN_AMI) \ |
| 383 |
Vim \ |
| 384 |
Xxd \ |
| 385 |
| (cd dist/Vim/$(VIMRTDIR); tar xf -) |
| 386 |
-rm $(IN_README_DIR) |
| 387 |
mv dist/Vim/$(VIMRTDIR)/vimdir.info dist/Vim.info |
| 388 |
mv dist/Vim/$(VIMRTDIR)/runtime.info dist/Vim/$(VIMRTDIR).info |
| 389 |
cd dist && tar cf vim$(VERSION)bin.tar Vim Vim.info |
| 390 |
gzip -9 dist/vim$(VERSION)bin.tar |
| 391 |
mv dist/vim$(VERSION)bin.tar.gz dist/vim$(VERSION)bin.tgz |
| 392 |
|
| 393 |
# Amiga sources - OBSOLETE |
| 394 |
amisrc: dist prepare |
| 395 |
-rm -f dist/vim$(VERSION)src.tar.gz |
| 396 |
-rm -rf dist/Vim |
| 397 |
mkdir dist/Vim |
| 398 |
mkdir dist/Vim/$(VIMRTDIR) |
| 399 |
tar cf - \ |
| 400 |
$(ROOT_AMI) \ |
| 401 |
$(SRC_ALL) \ |
| 402 |
$(SRC_AMI) \ |
| 403 |
$(SRC_AMI_DOS) \ |
| 404 |
| (cd dist/Vim/$(VIMRTDIR); tar xf -) |
| 405 |
-rm $(IN_README_DIR) |
| 406 |
mv dist/Vim/$(VIMRTDIR)/vimdir.info dist/Vim.info |
| 407 |
mv dist/Vim/$(VIMRTDIR)/runtime.info dist/Vim/$(VIMRTDIR).info |
| 408 |
cd dist && tar cf vim$(VERSION)src.tar Vim Vim.info |
| 409 |
gzip -9 dist/vim$(VERSION)src.tar |
| 410 |
mv dist/vim$(VERSION)src.tar.gz dist/vim$(VERSION)src.tgz |
| 411 |
|
| 412 |
# MS-DOS sources |
| 413 |
dossrc: dist dist/$(COMMENT_SRC) license |
| 414 |
-rm -rf dist/vim$(VERSION)src.zip |
| 415 |
-rm -rf dist/vim |
| 416 |
mkdir dist/vim |
| 417 |
mkdir dist/vim/$(VIMRTDIR) |
| 418 |
tar cf - \ |
| 419 |
$(SRC_ALL) \ |
| 420 |
$(SRC_DOS) \ |
| 421 |
$(SRC_DOS_BIN) \ |
| 422 |
$(SRC_AMI_DOS) \ |
| 423 |
$(SRC_DOS_UNIX) \ |
| 424 |
lang/LICENSE.*.txt \ |
| 425 |
lang/README.*.txt \ |
| 426 |
| (cd dist/vim/$(VIMRTDIR); tar xf -) |
| 427 |
mv dist/vim/$(VIMRTDIR)/runtime/* dist/vim/$(VIMRTDIR) |
| 428 |
rmdir dist/vim/$(VIMRTDIR)/runtime |
| 429 |
cd dist && zip -9 -rD -z vim$(VERSION)src.zip vim <$(COMMENT_SRC) |
| 430 |
|
| 431 |
license: |
| 432 |
cd nsis && $(MAKE) -f Makefile $@ |
| 433 |
|
| 434 |
dosrt: dist dist/$(COMMENT_RT) dosrt_files |
| 435 |
-rm -rf dist/vim$(VERSION)rt.zip |
| 436 |
cd dist && zip -9 -rD -z vim$(VERSION)rt.zip vim <$(COMMENT_RT) |
| 437 |
|
| 438 |
# Split in two parts to avoid an "argument list too long" error. |
| 439 |
# We no longer convert the files from unix to dos fileformat. |
| 440 |
dosrt_files: dist prepare |
| 441 |
-rm -rf dist/vim |
| 442 |
mkdir dist/vim |
| 443 |
mkdir dist/vim/$(VIMRTDIR) |
| 444 |
mkdir dist/vim/$(VIMRTDIR)/lang |
| 445 |
cd src && MAKEMO=yes $(MAKE) languages |
| 446 |
tar cf - \ |
| 447 |
$(RT_ALL) \ |
| 448 |
| (cd dist/vim/$(VIMRTDIR); tar xf -) |
| 449 |
tar cf - \ |
| 450 |
$(RT_SCRIPTS) \ |
| 451 |
$(RT_DOS) \ |
| 452 |
$(RT_NO_UNIX) \ |
| 453 |
$(RT_AMI_DOS) \ |
| 454 |
$(LANG_GEN) \ |
| 455 |
| (cd dist/vim/$(VIMRTDIR); tar xf -) |
| 456 |
tar cf - \ |
| 457 |
$(RT_UNIX_DOS_BIN) \ |
| 458 |
$(RT_ALL_BIN) \ |
| 459 |
$(RT_DOS_BIN) \ |
| 460 |
$(LANG_GEN_BIN) \ |
| 461 |
| (cd dist/vim/$(VIMRTDIR); tar xf -) |
| 462 |
-rm $(IN_README_DIR) |
| 463 |
mv dist/vim/$(VIMRTDIR)/lang/ dist/vim/$(VIMRTDIR)/readme/ |
| 464 |
mv dist/vim/$(VIMRTDIR)/runtime/* dist/vim/$(VIMRTDIR) |
| 465 |
rmdir dist/vim/$(VIMRTDIR)/runtime |
| 466 |
# Add the message translations. Trick: skip ja.mo/ja.euc-jp.mo and use |
| 467 |
# ja.sjis.mo instead. Same for cs.mo / cs.cp1250.mo, pl.mo / pl.cp1250.mo, |
| 468 |
# sk.mo / sk.cp1250.mo, zh_CN.mo / zh_CN.cp936.mo, uk.mo / uk.cp1251.mo and |
| 469 |
# ru.mo / ru.cp1251.mo. |
| 470 |
for i in $(LANG_DOS); do \ |
| 471 |
if test "$$i" != "src/po/ja.mo" -a "$$i" != "src/po/ja.euc-jp.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 \ |
| 472 |
n=`echo $$i | sed -e "s+src/po/\([-a-zA-Z0-9_]*\(.UTF-8\)*\)\(.sjis\)*\(.cp1250\)*\(.cp1251\)*\(.cp936\)*.mo+\1+"`; \ |
| 473 |
mkdir dist/vim/$(VIMRTDIR)/lang/$$n; \ |
| 474 |
mkdir dist/vim/$(VIMRTDIR)/lang/$$n/LC_MESSAGES; \ |
| 475 |
cp $$i dist/vim/$(VIMRTDIR)/lang/$$n/LC_MESSAGES/vim.mo; \ |
| 476 |
fi \ |
| 477 |
done |
| 478 |
mkdir dist/vim/$(VIMRTDIR)/gettext32 |
| 479 |
cp gettext32/libintl-8.dll dist/vim/$(VIMRTDIR)/gettext32/ |
| 480 |
cp gettext32/libiconv-2.dll dist/vim/$(VIMRTDIR)/gettext32/ |
| 481 |
cp gettext32/libgcc_s_sjlj-1.dll dist/vim/$(VIMRTDIR)/gettext32/ |
| 482 |
mkdir dist/vim/$(VIMRTDIR)/gettext64 |
| 483 |
cp gettext64/libintl-8.dll dist/vim/$(VIMRTDIR)/gettext64/ |
| 484 |
cp gettext64/libiconv-2.dll dist/vim/$(VIMRTDIR)/gettext64/ |
| 485 |
|
| 486 |
|
| 487 |
# Used before uploading. Don't delete the AAPDIR/sign files! |
| 488 |
runtime_unix2dos: dosrt_files |
| 489 |
-rm -rf `find runtime/dos -type f -print | sed -e /AAPDIR/d` |
| 490 |
cd dist/vim/$(VIMRTDIR); tar cf - * \ |
| 491 |
| (cd ../../../runtime/dos; tar xf -) |
| 492 |
|
| 493 |
dosbin: prepare dosbin_gvim dosbin_w32 dosbin_ole $(DOSBIN_S) |
| 494 |
-rm $(IN_README_DIR) |
| 495 |
|
| 496 |
# make Win32 gvim |
| 497 |
dosbin_gvim: dist dist/$(COMMENT_GVIM) |
| 498 |
-rm -rf dist/gvim$(VERSION).zip |
| 499 |
-rm -rf dist/vim |
| 500 |
mkdir dist/vim |
| 501 |
mkdir dist/vim/$(VIMRTDIR) |
| 502 |
tar cf - \ |
| 503 |
$(BIN_DOS) \ |
| 504 |
| (cd dist/vim/$(VIMRTDIR); tar xf -) |
| 505 |
cp gvim.exe dist/vim/$(VIMRTDIR)/gvim.exe |
| 506 |
cp teew32.exe dist/vim/$(VIMRTDIR)/tee.exe |
| 507 |
cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe |
| 508 |
cp vimrun.exe dist/vim/$(VIMRTDIR)/vimrun.exe |
| 509 |
cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe |
| 510 |
cp uninstallw32.exe dist/vim/$(VIMRTDIR)/uninstall.exe |
| 511 |
mkdir dist/vim/$(VIMRTDIR)/GvimExt32 |
| 512 |
cp gvimext.dll dist/vim/$(VIMRTDIR)/GvimExt32/gvimext.dll |
| 513 |
mkdir dist/vim/$(VIMRTDIR)/GvimExt64 |
| 514 |
cp gvimext64.dll dist/vim/$(VIMRTDIR)/GvimExt64/gvimext.dll |
| 515 |
cd dist && zip -9 -rD -z gvim$(VERSION).zip vim <$(COMMENT_GVIM) |
| 516 |
cp gvim.pdb dist/gvim$(VERSION).pdb |
| 517 |
|
| 518 |
# make Win32 console |
| 519 |
dosbin_w32: dist dist/$(COMMENT_W32) |
| 520 |
-rm -rf dist/vim$(VERSION)w32.zip |
| 521 |
-rm -rf dist/vim |
| 522 |
mkdir dist/vim |
| 523 |
mkdir dist/vim/$(VIMRTDIR) |
| 524 |
tar cf - \ |
| 525 |
$(BIN_DOS) \ |
| 526 |
| (cd dist/vim/$(VIMRTDIR); tar xf -) |
| 527 |
cp vimw32.exe dist/vim/$(VIMRTDIR)/vim.exe |
| 528 |
cp teew32.exe dist/vim/$(VIMRTDIR)/tee.exe |
| 529 |
cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe |
| 530 |
cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe |
| 531 |
cp uninstallw32.exe dist/vim/$(VIMRTDIR)/uninstall.exe |
| 532 |
cd dist && zip -9 -rD -z vim$(VERSION)w32.zip vim <$(COMMENT_W32) |
| 533 |
cp vimw32.pdb dist/vim$(VERSION)w32.pdb |
| 534 |
|
| 535 |
# make Win32 gvim with OLE |
| 536 |
dosbin_ole: dist dist/$(COMMENT_OLE) |
| 537 |
-rm -rf dist/gvim$(VERSION)ole.zip |
| 538 |
-rm -rf dist/vim |
| 539 |
mkdir dist/vim |
| 540 |
mkdir dist/vim/$(VIMRTDIR) |
| 541 |
tar cf - \ |
| 542 |
$(BIN_DOS) \ |
| 543 |
| (cd dist/vim/$(VIMRTDIR); tar xf -) |
| 544 |
cp gvim_ole.exe dist/vim/$(VIMRTDIR)/gvim.exe |
| 545 |
cp teew32.exe dist/vim/$(VIMRTDIR)/tee.exe |
| 546 |
cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe |
| 547 |
cp vimrun.exe dist/vim/$(VIMRTDIR)/vimrun.exe |
| 548 |
cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe |
| 549 |
cp uninstallw32.exe dist/vim/$(VIMRTDIR)/uninstall.exe |
| 550 |
cp gvimext.dll dist/vim/$(VIMRTDIR)/gvimext.dll |
| 551 |
cp README_ole.txt dist/vim/$(VIMRTDIR) |
| 552 |
cd dist && zip -9 -rD -z gvim$(VERSION)ole.zip vim <$(COMMENT_OLE) |
| 553 |
cp gvim_ole.pdb dist/gvim$(VERSION)ole.pdb |
| 554 |
|
| 555 |
html: dist dist/$(COMMENT_HTML) |
| 556 |
-rm -rf dist/vim$(VERSION)html.zip |
| 557 |
cd runtime/doc && zip -9 -z ../../dist/vim$(VERSION)html.zip *.html <../../dist/$(COMMENT_HTML) |
| 558 |
|
| 559 |
farsi: dist dist/$(COMMENT_FARSI) |
| 560 |
-rm -f dist/farsi$(VERSION).zip |
| 561 |
zip -9 -rD -z dist/farsi$(VERSION).zip farsi < dist/$(COMMENT_FARSI) |