comparison src/Makefile @ 502:52e76e2b5b65 v7.0140

updated for version 7.0140
author vimboss
date Thu, 01 Sep 2005 20:46:49 +0000
parents 21c3634c2113
children 2df7f3a5eb96
comparison
equal deleted inserted replaced
501:ce2181d14aa0 502:52e76e2b5b65
117 # The runtime files are in a different directory for each version. You 117 # The runtime files are in a different directory for each version. You
118 # might want to delete an older version. 118 # might want to delete an older version.
119 # If you don't want to install everything, there are other targets: 119 # If you don't want to install everything, there are other targets:
120 # make installvim only installs Vim, not the tools 120 # make installvim only installs Vim, not the tools
121 # make installvimbin only installs the Vim executable 121 # make installvimbin only installs the Vim executable
122 # make installruntime only installs the Vim help and 122 # make installruntime installs most of the runtime files
123 # make installrtbase only installs the Vim help and
123 # runtime files 124 # runtime files
124 # make installlinks only installs the Vim binary links 125 # make installlinks only installs the Vim binary links
125 # make installmanlinks only installs the Vim manpage links 126 # make installmanlinks only installs the Vim manpage links
126 # make installmacros only installs the Vim macros 127 # make installmacros only installs the Vim macros
127 # make installtutor only installs the Vim tutor 128 # make installtutorbin only installs the Vim tutor program
129 # make installtutor only installs the Vim tutor files
128 # make installspell only installs the spell files 130 # make installspell only installs the spell files
129 # make installtools only installs xxd 131 # make installtools only installs xxd
130 # If you install Vim, not to install for real but to prepare a package 132 # If you install Vim, not to install for real but to prepare a package
131 # or RPM, set DESTDIR to the root of the tree. 133 # or RPM, set DESTDIR to the root of the tree.
132 # 134 #
1723 # 1725 #
1724 install: $(GUI_INSTALL) 1726 install: $(GUI_INSTALL)
1725 1727
1726 install_normal: installvim installtools $(INSTALL_LANGS) install-icons 1728 install_normal: installvim installtools $(INSTALL_LANGS) install-icons
1727 1729
1728 installvim: installvimbin installruntime installlinks installmanlinks installmacros installtutor installspell 1730 installvim: installvimbin installtutorbin \
1731 installruntime installlinks installmanlinks
1729 1732
1730 installvimbin: $(VIMTARGET) $(DESTDIR)$(exec_prefix) $(DEST_BIN) 1733 installvimbin: $(VIMTARGET) $(DESTDIR)$(exec_prefix) $(DEST_BIN)
1731 -if test -f $(DEST_BIN)/$(VIMTARGET); then \ 1734 -if test -f $(DEST_BIN)/$(VIMTARGET); then \
1732 mv -f $(DEST_BIN)/$(VIMTARGET) $(DEST_BIN)/$(VIMNAME).rm; \ 1735 mv -f $(DEST_BIN)/$(VIMTARGET) $(DEST_BIN)/$(VIMNAME).rm; \
1733 rm -f $(DEST_BIN)/$(VIMNAME).rm; \ 1736 rm -f $(DEST_BIN)/$(VIMNAME).rm; \
1741 # Long list of arguments for the shell script that installs the manual pages 1744 # Long list of arguments for the shell script that installs the manual pages
1742 # for one language. 1745 # for one language.
1743 INSTALLMANARGS = $(VIMLOC) $(SCRIPTLOC) $(VIMRCLOC) $(HELPSOURCE) $(MANMOD) \ 1746 INSTALLMANARGS = $(VIMLOC) $(SCRIPTLOC) $(VIMRCLOC) $(HELPSOURCE) $(MANMOD) \
1744 $(VIMNAME) $(VIMDIFFNAME) $(EVIMNAME) 1747 $(VIMNAME) $(VIMDIFFNAME) $(EVIMNAME)
1745 1748
1749 # Install most of the runtime files
1750 installruntime: installrtbase installmacros installtutor installspell
1751
1746 # install the help files; first adjust the contents for the final location 1752 # install the help files; first adjust the contents for the final location
1747 installruntime: $(HELPSOURCE)/vim.1 $(DEST_VIM) $(DEST_RT) \ 1753 installrtbase: $(HELPSOURCE)/vim.1 $(DEST_VIM) $(DEST_RT) \
1748 $(DEST_HELP) $(DEST_PRINT) $(DEST_COL) $(DEST_SYN) $(DEST_IND) \ 1754 $(DEST_HELP) $(DEST_PRINT) $(DEST_COL) $(DEST_SYN) $(DEST_IND) \
1749 $(DEST_FTP) $(DEST_AUTO) $(DEST_PLUG) $(DEST_TUTOR) \ 1755 $(DEST_FTP) $(DEST_AUTO) $(DEST_PLUG) $(DEST_TUTOR) \
1750 $(DEST_SPELL) $(DEST_COMP) 1756 $(DEST_SPELL) $(DEST_COMP)
1751 -$(SHELL) ./installman.sh install $(DEST_MAN) "" $(INSTALLMANARGS) 1757 -$(SHELL) ./installman.sh install $(DEST_MAN) "" $(INSTALLMANARGS)
1752 @echo generating help tags 1758 @echo generating help tags
1832 if test -n "$$cvs"; then \ 1838 if test -n "$$cvs"; then \
1833 rm -rf $$cvs; \ 1839 rm -rf $$cvs; \
1834 fi 1840 fi
1835 1841
1836 # install the tutor files 1842 # install the tutor files
1837 installtutor: $(DEST_VIM) $(DEST_RT) $(DEST_TUTOR) 1843 installtutorbin: $(DEST_VIM)
1838 $(INSTALL_DATA) vimtutor $(DEST_BIN)/$(VIMNAME)tutor 1844 $(INSTALL_DATA) vimtutor $(DEST_BIN)/$(VIMNAME)tutor
1839 chmod $(SCRIPTMOD) $(DEST_BIN)/$(VIMNAME)tutor 1845 chmod $(SCRIPTMOD) $(DEST_BIN)/$(VIMNAME)tutor
1846
1847 installtutor: $(DEST_RT) $(DEST_TUTOR)
1840 -$(INSTALL_DATA) $(TUTORSOURCE)/README* $(TUTORSOURCE)/tutor* $(DEST_TUTOR) 1848 -$(INSTALL_DATA) $(TUTORSOURCE)/README* $(TUTORSOURCE)/tutor* $(DEST_TUTOR)
1841 chmod $(HELPMOD) $(DEST_TUTOR)/* 1849 chmod $(HELPMOD) $(DEST_TUTOR)/*
1842 1850
1843 # Install the spell files, if they exist. This assumes at least the English 1851 # Install the spell files, if they exist. This assumes at least the English
1844 # spell file is there. 1852 # spell file is there.
2537 #ICON_DOC = $(shell if [ -e doc.icns ] ; then echo doc.icns ; else echo ; fi) 2545 #ICON_DOC = $(shell if [ -e doc.icns ] ; then echo doc.icns ; else echo ; fi)
2538 #ICON_DOCTXT = $(shell if [ -e doc-txt.icns ] ; then echo doc-txt.icns ; else echo ; fi) 2546 #ICON_DOCTXT = $(shell if [ -e doc-txt.icns ] ; then echo doc-txt.icns ; else echo ; fi)
2539 #ICONS = $(addprefix $(RESDIR)/, $(ICON_APP) $(ICON_DOC) $(ICON_DOCTXT)) 2547 #ICONS = $(addprefix $(RESDIR)/, $(ICON_APP) $(ICON_DOC) $(ICON_DOCTXT))
2540 2548
2541 install_macosx: gui_bundle 2549 install_macosx: gui_bundle
2550 # Remove the link to the runtime dir, don't want to copy all of that.
2551 -rm $(APPDIR)/runtime
2542 $(INSTALL_DATA_R) $(APPDIR) $(DESTDIR)$(prefix) 2552 $(INSTALL_DATA_R) $(APPDIR) $(DESTDIR)$(prefix)
2553 # Install the runtime files. Recursive!
2554 -mkdir $(DESTDIR)$(prefix)/$(APPDIR)/runtime
2555 -mkdir $(DESTDIR)$(prefix)/$(APPDIR)/bin
2556 srcdir=`pwd`; $(MAKE) -f Makefile installruntime \
2557 VIMEXE=$$srcdir/$(VIMTARGET) \
2558 prefix=$(DESTDIR)$(prefix)/$(APPDIR) \
2559 VIMRTLOC=$(DESTDIR)$(prefix)/$(APPDIR)/runtime
2560 # Put the link back.
2561 ln -s `pwd`/../runtime $(APPDIR)
2562 # TODO: Create the vimtutor application.
2543 2563
2544 gui_bundle: $(APPDIR) bundle-dir bundle-executable bundle-info bundle-resource \ 2564 gui_bundle: $(APPDIR) bundle-dir bundle-executable bundle-info bundle-resource \
2545 bundle-language 2565 bundle-language
2546 2566
2547 $(APPDIR): 2567 $(APPDIR):
2548 mkdir -p $@ 2568 mkdir -p $@
2549 2569
2550 bundle-dir: $(APPDIR)/Contents $(VIMTARGET) 2570 bundle-dir: $(APPDIR)/Contents $(VIMTARGET)
2551 -@srcdir=`pwd`; cd $(HELPSOURCE); $(MAKE) VIMEXE=$$srcdir/$(VIMTARGET) vimtags 2571 -@srcdir=`pwd`; cd $(HELPSOURCE); $(MAKE) VIMEXE=$$srcdir/$(VIMTARGET) vimtags
2552 cp -R ../runtime $(APPDIR) 2572 # Make a link to the runtime directory, so that we can try out the executable
2553 # When using CVS some CVS directories might have been copied. 2573 # without installing it.
2554 cvs=`find $(APPDIR) \( -name CVS -o -name AAPDIR \) -print`; \ 2574 -ln -s `pwd`/../runtime $(APPDIR)
2555 if test -n "$$cvs"; then \
2556 rm -rf $$cvs; \
2557 fi
2558 2575
2559 bundle-executable: $(VIMTARGET) 2576 bundle-executable: $(VIMTARGET)
2560 cp $(VIMTARGET) $(APPDIR)/Contents/MacOS/$(VIMTARGET) 2577 cp $(VIMTARGET) $(APPDIR)/Contents/MacOS/$(VIMTARGET)
2561 2578
2562 bundle-info: bundle-dir 2579 bundle-info: bundle-dir