Mercurial > vim
comparison Makefile @ 7443:357b7bd8d612 v7.4.1025
commit https://github.com/vim/vim/commit/6c7b44472f7055c78d996e1b626bd2932502212f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 2 15:44:32 2016 +0100
patch 7.4.1025
Problem: Version in installer needs to be updated manually.
Solution: Generate a file with the version number. (Guopeng Wen)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 02 Jan 2016 15:45:03 +0100 |
parents | 63a96fadf679 |
children | 4456fa2d22e8 |
comparison
equal
deleted
inserted
replaced
7442:31c4e00f0d31 | 7443:357b7bd8d612 |
---|---|
415 | 415 |
416 no_title.vim: Makefile | 416 no_title.vim: Makefile |
417 echo "set notitle noicon nocp nomodeline viminfo=" >no_title.vim | 417 echo "set notitle noicon nocp nomodeline viminfo=" >no_title.vim |
418 | 418 |
419 # MS-DOS sources | 419 # MS-DOS sources |
420 dossrc: dist no_title.vim dist/$(COMMENT_SRC) runtime/doc/uganda.nsis.txt | 420 dossrc: dist no_title.vim dist/$(COMMENT_SRC) \ |
421 runtime/doc/uganda.nsis.txt \ | |
422 nsis/gvim_version.nsh | |
421 -rm -rf dist/vim$(VERSION)src.zip | 423 -rm -rf dist/vim$(VERSION)src.zip |
422 -rm -rf dist/vim | 424 -rm -rf dist/vim |
423 mkdir dist/vim | 425 mkdir dist/vim |
424 mkdir dist/vim/$(VIMRTDIR) | 426 mkdir dist/vim/$(VIMRTDIR) |
425 tar cf - \ | 427 tar cf - \ |
426 $(SRC_ALL) \ | 428 $(SRC_ALL) \ |
427 $(SRC_DOS) \ | 429 $(SRC_DOS) \ |
428 $(SRC_AMI_DOS) \ | 430 $(SRC_AMI_DOS) \ |
429 $(SRC_DOS_UNIX) \ | 431 $(SRC_DOS_UNIX) \ |
430 runtime/doc/uganda.nsis.txt \ | 432 runtime/doc/uganda.nsis.txt \ |
433 nsis/gvim_version.nsh \ | |
431 | (cd dist/vim/$(VIMRTDIR); tar xf -) | 434 | (cd dist/vim/$(VIMRTDIR); tar xf -) |
432 mv dist/vim/$(VIMRTDIR)/runtime/* dist/vim/$(VIMRTDIR) | 435 mv dist/vim/$(VIMRTDIR)/runtime/* dist/vim/$(VIMRTDIR) |
433 rmdir dist/vim/$(VIMRTDIR)/runtime | 436 rmdir dist/vim/$(VIMRTDIR)/runtime |
434 # This file needs to be in dos fileformat for NSIS. | 437 # This file needs to be in dos fileformat for NSIS. |
435 $(VIM) -e -X -u no_title.vim -c ":set tx|wq" dist/vim/$(VIMRTDIR)/doc/uganda.nsis.txt | 438 $(VIM) -e -X -u no_title.vim -c ":set tx|wq" dist/vim/$(VIMRTDIR)/doc/uganda.nsis.txt |
438 | (cd dist/vim/$(VIMRTDIR); tar xf -) | 441 | (cd dist/vim/$(VIMRTDIR); tar xf -) |
439 cd dist && zip -9 -rD -z vim$(VERSION)src.zip vim <$(COMMENT_SRC) | 442 cd dist && zip -9 -rD -z vim$(VERSION)src.zip vim <$(COMMENT_SRC) |
440 | 443 |
441 runtime/doc/uganda.nsis.txt: runtime/doc/uganda.txt | 444 runtime/doc/uganda.nsis.txt: runtime/doc/uganda.txt |
442 cd runtime/doc && $(MAKE) uganda.nsis.txt | 445 cd runtime/doc && $(MAKE) uganda.nsis.txt |
446 | |
447 nsis/gvim_version.nsh: Makefile | |
448 echo "# Generated from Makefile: define the version numbers" > $@ | |
449 echo "!ifndef __GVIM_VER__NSH__" >> $@ | |
450 echo "!define __GVIM_VER__NSH__" >> $@ | |
451 echo "!define VER_MAJOR $(MAJOR)" >> $@ | |
452 echo "!define VER_MINOR $(MINOR)" >> $@ | |
453 echo "!endif" >> $@ | |
443 | 454 |
444 dosrt: dist dist/$(COMMENT_RT) dosrt_files | 455 dosrt: dist dist/$(COMMENT_RT) dosrt_files |
445 -rm -rf dist/vim$(VERSION)rt.zip | 456 -rm -rf dist/vim$(VERSION)rt.zip |
446 cd dist && zip -9 -rD -z vim$(VERSION)rt.zip vim <$(COMMENT_RT) | 457 cd dist && zip -9 -rD -z vim$(VERSION)rt.zip vim <$(COMMENT_RT) |
447 | 458 |