Mercurial > vim
comparison Makefile @ 8623:58e749232bd7 v7.4.1601
commit https://github.com/vim/vim/commit/818c9e7edfce339eff7cb357f2ec29a72afd1977
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 19 16:09:42 2016 +0100
patch 7.4.1601
Problem: README files take a lot of space in the top directory.
Solution: Move most of them to "READMEdir".
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 19 Mar 2016 16:15:04 +0100 |
parents | 4456fa2d22e8 |
children | 271f3ae34835 |
comparison
equal
deleted
inserted
replaced
8622:eec3ad6e6189 | 8623:58e749232bd7 |
---|---|
211 # > nmake -f Make_mvc.mak GUI=yes | 211 # > nmake -f Make_mvc.mak GUI=yes |
212 # - Build the OLE version with interfaces: | 212 # - Build the OLE version with interfaces: |
213 # > bigvim64.bat | 213 # > bigvim64.bat |
214 # | 214 # |
215 # | 215 # |
216 # OBSOLETE systems: You can build this if you have an appropriate system. | 216 # OBSOLETE systems: You can build these if you have an appropriate system. |
217 # | 217 # |
218 # 16 bit DOS version: (doesn't build anywhere) | 218 # 16 bit DOS version: You need to get a very old version of Vim, for several |
219 # - Set environment for compiling with Borland C++ 3.1. | 219 # years even the tiny build is too big to fit in DOS memory. |
220 # - "bmake -f Make_bc3.mak BOR=E:\borlandc" (compiling xxd might fail, in that | 220 # |
221 # case set environment for compiling with Borland C++ 4.0 and do | 221 # 32 bit DOS version: Support was removed in 7.4.1399. When syncing to before |
222 # "make -f make_bc3.mak BOR=E:\BC4 xxd/xxd.exe"). | 222 # that it probably won't build. |
223 # NOTE: this currently fails because Vim is too big. | |
224 # - "make test" and check the output. | |
225 # - Rename the executables to "vimd16.exe", "xxdd16.exe", "installd16.exe" and | |
226 # "uninstald16.exe". | |
227 # | |
228 # 32 bit DOS version: (requires Windows XP or earlier) | |
229 # - Set environment for compiling with DJGPP; "gmake -f Make_djg.mak". | |
230 # - "rm testdir/*.out", "gmake -f Make_djg.mak test" and check the output for | |
231 # "ALL DONE". | |
232 # - Rename the executables to "vimd32.exe", "xxdd32.exe", "installd32.exe" and | |
233 # "uninstald32.exe". | |
234 # | 223 # |
235 # Win32s GUI version: (requires a very old compiler) | 224 # Win32s GUI version: (requires a very old compiler) |
236 # - Set environment for Visual C++ 4.1 (requires a new console window): | 225 # - Set environment for Visual C++ 4.1 (requires a new console window): |
237 # "vcvars32.bat" (use the path for VC 4.1 e:\msdev\bin) | 226 # "vcvars32.bat" (use the path for VC 4.1 e:\msdev\bin) |
238 # - "nmake -f Make_mvc.mak GUI=yes INTL=no clean" (use the path for VC 4.1) | 227 # - "nmake -f Make_mvc.mak GUI=yes INTL=no clean" (use the path for VC 4.1) |
240 # - Rename "gvim.exe" to "gvim_w32s.exe". | 229 # - Rename "gvim.exe" to "gvim_w32s.exe". |
241 # - Rename "install.exe" to "installw32.exe" | 230 # - Rename "install.exe" to "installw32.exe" |
242 # - Rename "uninstal.exe" to "uninstalw32.exe" | 231 # - Rename "uninstal.exe" to "uninstalw32.exe" |
243 # - The produced uninstalw32.exe and vimrun.exe are used. | 232 # - The produced uninstalw32.exe and vimrun.exe are used. |
244 # | 233 # |
245 # OS/2: (requires an OS/2 system) | 234 # OS/2 support was removed in patch 7.4.1008. If you want to give it a try |
246 # - Unpack the Unix archive. | 235 # sync to before that and check the old version of this Makefile for |
247 # - "make -f Make_os2.mak". | 236 # instructions. |
248 # - Rename the executables to vimos2.exe, xxdos2.exe and teeos2.exe and copy | |
249 # them to here. | |
250 # - "make os2bin". | |
251 | 237 |
252 VIMVER = vim-$(MAJOR).$(MINOR) | 238 VIMVER = vim-$(MAJOR).$(MINOR) |
253 VERSION = $(MAJOR)$(MINOR) | 239 VERSION = $(MAJOR)$(MINOR) |
254 VDOT = $(MAJOR).$(MINOR) | 240 VDOT = $(MAJOR).$(MINOR) |
255 VIMRTDIR = vim$(VERSION) | 241 VIMRTDIR = vim$(VERSION) |
267 # All output is put in the "dist" directory. | 253 # All output is put in the "dist" directory. |
268 dist: | 254 dist: |
269 mkdir dist | 255 mkdir dist |
270 | 256 |
271 # Clean up some files to avoid they are included. | 257 # Clean up some files to avoid they are included. |
258 # Copy README files to the top directory. | |
272 prepare: | 259 prepare: |
273 if test -f runtime/doc/uganda.nsis.txt; then \ | 260 if test -f runtime/doc/uganda.nsis.txt; then \ |
274 rm runtime/doc/uganda.nsis.txt; fi | 261 rm runtime/doc/uganda.nsis.txt; fi |
262 for name in $(IN_README_DIR); do \ | |
263 cp READMEdir/"$$name" .; \ | |
264 done | |
275 | 265 |
276 # For the zip files we need to create a file with the comment line | 266 # For the zip files we need to create a file with the comment line |
277 dist/comment: | 267 dist/comment: |
278 mkdir dist/comment | 268 mkdir dist/comment |
279 | 269 |
334 $(SRC_UNIX) \ | 324 $(SRC_UNIX) \ |
335 $(SRC_DOS_UNIX) \ | 325 $(SRC_DOS_UNIX) \ |
336 $(EXTRA) \ | 326 $(EXTRA) \ |
337 $(LANG_SRC) \ | 327 $(LANG_SRC) \ |
338 | (cd dist/$(VIMRTDIR); tar xf -) | 328 | (cd dist/$(VIMRTDIR); tar xf -) |
329 -rm $(IN_README_DIR) | |
339 # Need to use a "distclean" config.mk file | 330 # Need to use a "distclean" config.mk file |
340 # Note: this file is not included in the repository to avoid problems, but it's | 331 # Note: this file is not included in the repository to avoid problems, but it's |
341 # OK to put it in the archive. | 332 # OK to put it in the archive. |
342 cp -f src/config.mk.dist dist/$(VIMRTDIR)/src/auto/config.mk | 333 cp -f src/config.mk.dist dist/$(VIMRTDIR)/src/auto/config.mk |
343 # Create an empty config.h file, make dependencies require it | 334 # Create an empty config.h file, make dependencies require it |
370 $(RT_SCRIPTS) \ | 361 $(RT_SCRIPTS) \ |
371 $(RT_AMI) \ | 362 $(RT_AMI) \ |
372 $(RT_NO_UNIX) \ | 363 $(RT_NO_UNIX) \ |
373 $(RT_AMI_DOS) \ | 364 $(RT_AMI_DOS) \ |
374 | (cd dist/Vim/$(VIMRTDIR); tar xf -) | 365 | (cd dist/Vim/$(VIMRTDIR); tar xf -) |
366 -rm $(IN_README_DIR) | |
375 mv dist/Vim/$(VIMRTDIR)/vimdir.info dist/Vim.info | 367 mv dist/Vim/$(VIMRTDIR)/vimdir.info dist/Vim.info |
376 mv dist/Vim/$(VIMRTDIR)/runtime.info dist/Vim/$(VIMRTDIR).info | 368 mv dist/Vim/$(VIMRTDIR)/runtime.info dist/Vim/$(VIMRTDIR).info |
377 mv dist/Vim/$(VIMRTDIR)/runtime/* dist/Vim/$(VIMRTDIR) | 369 mv dist/Vim/$(VIMRTDIR)/runtime/* dist/Vim/$(VIMRTDIR) |
378 rmdir dist/Vim/$(VIMRTDIR)/runtime | 370 rmdir dist/Vim/$(VIMRTDIR)/runtime |
379 cd dist && tar cf vim$(VERSION)rt.tar Vim Vim.info | 371 cd dist && tar cf vim$(VERSION)rt.tar Vim Vim.info |
390 $(ROOT_AMI) \ | 382 $(ROOT_AMI) \ |
391 $(BIN_AMI) \ | 383 $(BIN_AMI) \ |
392 Vim \ | 384 Vim \ |
393 Xxd \ | 385 Xxd \ |
394 | (cd dist/Vim/$(VIMRTDIR); tar xf -) | 386 | (cd dist/Vim/$(VIMRTDIR); tar xf -) |
387 -rm $(IN_README_DIR) | |
395 mv dist/Vim/$(VIMRTDIR)/vimdir.info dist/Vim.info | 388 mv dist/Vim/$(VIMRTDIR)/vimdir.info dist/Vim.info |
396 mv dist/Vim/$(VIMRTDIR)/runtime.info dist/Vim/$(VIMRTDIR).info | 389 mv dist/Vim/$(VIMRTDIR)/runtime.info dist/Vim/$(VIMRTDIR).info |
397 cd dist && tar cf vim$(VERSION)bin.tar Vim Vim.info | 390 cd dist && tar cf vim$(VERSION)bin.tar Vim Vim.info |
398 gzip -9 dist/vim$(VERSION)bin.tar | 391 gzip -9 dist/vim$(VERSION)bin.tar |
399 mv dist/vim$(VERSION)bin.tar.gz dist/vim$(VERSION)bin.tgz | 392 mv dist/vim$(VERSION)bin.tar.gz dist/vim$(VERSION)bin.tgz |
408 $(ROOT_AMI) \ | 401 $(ROOT_AMI) \ |
409 $(SRC_ALL) \ | 402 $(SRC_ALL) \ |
410 $(SRC_AMI) \ | 403 $(SRC_AMI) \ |
411 $(SRC_AMI_DOS) \ | 404 $(SRC_AMI_DOS) \ |
412 | (cd dist/Vim/$(VIMRTDIR); tar xf -) | 405 | (cd dist/Vim/$(VIMRTDIR); tar xf -) |
406 -rm $(IN_README_DIR) | |
413 mv dist/Vim/$(VIMRTDIR)/vimdir.info dist/Vim.info | 407 mv dist/Vim/$(VIMRTDIR)/vimdir.info dist/Vim.info |
414 mv dist/Vim/$(VIMRTDIR)/runtime.info dist/Vim/$(VIMRTDIR).info | 408 mv dist/Vim/$(VIMRTDIR)/runtime.info dist/Vim/$(VIMRTDIR).info |
415 cd dist && tar cf vim$(VERSION)src.tar Vim Vim.info | 409 cd dist && tar cf vim$(VERSION)src.tar Vim Vim.info |
416 gzip -9 dist/vim$(VERSION)src.tar | 410 gzip -9 dist/vim$(VERSION)src.tar |
417 mv dist/vim$(VERSION)src.tar.gz dist/vim$(VERSION)src.tgz | 411 mv dist/vim$(VERSION)src.tar.gz dist/vim$(VERSION)src.tgz |
481 $(RT_UNIX_DOS_BIN) \ | 475 $(RT_UNIX_DOS_BIN) \ |
482 $(RT_ALL_BIN) \ | 476 $(RT_ALL_BIN) \ |
483 $(RT_DOS_BIN) \ | 477 $(RT_DOS_BIN) \ |
484 $(LANG_GEN_BIN) \ | 478 $(LANG_GEN_BIN) \ |
485 | (cd dist/vim/$(VIMRTDIR); tar xf -) | 479 | (cd dist/vim/$(VIMRTDIR); tar xf -) |
480 -rm $(IN_README_DIR) | |
486 mv dist/vim/$(VIMRTDIR)/runtime/* dist/vim/$(VIMRTDIR) | 481 mv dist/vim/$(VIMRTDIR)/runtime/* dist/vim/$(VIMRTDIR) |
487 rmdir dist/vim/$(VIMRTDIR)/runtime | 482 rmdir dist/vim/$(VIMRTDIR)/runtime |
488 # Add the message translations. Trick: skip ja.mo and use ja.sjis.mo instead. | 483 # Add the message translations. Trick: skip ja.mo and use ja.sjis.mo instead. |
489 # Same for cs.mo / cs.cp1250.mo, pl.mo / pl.cp1250.mo, sk.mo / sk.cp1250.mo, | 484 # Same for cs.mo / cs.cp1250.mo, pl.mo / pl.cp1250.mo, sk.mo / sk.cp1250.mo, |
490 # zh_CN.mo / zh_CN.cp936.mo, uk.mo / uk.cp1251.mo and ru.mo / ru.cp1251.mo. | 485 # zh_CN.mo / zh_CN.cp936.mo, uk.mo / uk.cp1251.mo and ru.mo / ru.cp1251.mo. |
515 mkdir dist/vim | 510 mkdir dist/vim |
516 mkdir dist/vim/$(VIMRTDIR) | 511 mkdir dist/vim/$(VIMRTDIR) |
517 tar cf - \ | 512 tar cf - \ |
518 $(BIN_DOS) \ | 513 $(BIN_DOS) \ |
519 | (cd dist/vim/$(VIMRTDIR); tar xf -) | 514 | (cd dist/vim/$(VIMRTDIR); tar xf -) |
515 -rm $(IN_README_DIR) | |
520 cp gvim.exe dist/vim/$(VIMRTDIR)/gvim.exe | 516 cp gvim.exe dist/vim/$(VIMRTDIR)/gvim.exe |
521 cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe | 517 cp xxdw32.exe dist/vim/$(VIMRTDIR)/xxd.exe |
522 cp vimrun.exe dist/vim/$(VIMRTDIR)/vimrun.exe | 518 cp vimrun.exe dist/vim/$(VIMRTDIR)/vimrun.exe |
523 cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe | 519 cp installw32.exe dist/vim/$(VIMRTDIR)/install.exe |
524 cp uninstalw32.exe dist/vim/$(VIMRTDIR)/uninstal.exe | 520 cp uninstalw32.exe dist/vim/$(VIMRTDIR)/uninstal.exe |