207207# SunOS 4.1.x +X11 -GUI 5.1b (J) Bram Moolenaar
208208# SunOS 4.1.3_U1 (sun4c) gcc +X11 +GUI Athena 5.0w (J) Darren Hiebert
209209# SUPER-UX 6.2 (NEC SX-4) cc +X11R6 Motif,Athena4.6b (P) Lennart Schultz
210- # Tandem/NSK (c) Matthew Woehlke
210+ # Tandem/NSK (c) Matthew Woehlke
211211# Unisys 6035 cc +X11 Motif 5.3 (8) Glauber Ribeiro
212212# ESIX V4.2 cc +X11 6.0 (a) Reinhard Wobst
213213# Mac OS X 10.[23] gcc Carbon 6.2 (x) Bram Moolenaar
@@ -403,6 +403,7 @@ CClink = $(CC)
403403# First one is for static linking, second one for dynamic loading.
404404# Use --with-luajit if you want to use LuaJIT instead of Lua.
405405# Set PATH environment variable to find lua or luajit executable.
406+ # This requires at least "normal" features, "tiny" and "small" don't work.
406407# CONF_OPT_LUA = --enable-luainterp
407408# CONF_OPT_LUA = --enable-luainterp=dynamic
408409# CONF_OPT_LUA = --enable-luainterp --with-luajit
@@ -429,16 +430,15 @@ CClink = $(CC)
429430# the next line.
430431# When you get an error for a missing "perl.exp" file, try creating an empty
431432# one: "touch perl.exp".
432- # This requires at least "small " features, "tiny" doesn 't work.
433+ # This requires at least "normal " features, "tiny" and "small" don 't work.
433434# CONF_OPT_PERL = --enable-perlinterp
434435# CONF_OPT_PERL = --enable-perlinterp=dynamic
435436
436437# PYTHON
437- # Uncomment this when you want to include the Python interface.
438- # Requires small features or better, fails with tiny features .
438+ # Uncomment lines here when you want to include the Python interface.
439+ # This requires at least "normal" features, "tiny" and "small" don't work .
439440# NOTE: This may cause threading to be enabled, which has side effects (such
440441# as using different libraries and debugging becomes more difficult).
441- # NOTE: Using this together with Perl may cause a crash in initialization.
442442# For Python3 support make a symbolic link in /usr/local/bin:
443443# ln -s python3 python3.1
444444# If both python2.x and python3.x are enabled then the linking will be via
@@ -454,6 +454,7 @@ CClink = $(CC)
454454# Uncomment this when you want to include the Ruby interface.
455455# First one for static linking, second one for loading when used.
456456# Note: you need the development package (e.g., ruby1.9.1-dev on Ubuntu).
457+ # This requires at least "normal" features, "tiny" and "small" don't work.
457458# CONF_OPT_RUBY = --enable-rubyinterp
458459# CONF_OPT_RUBY = --enable-rubyinterp=dynamic
459460# CONF_OPT_RUBY = --enable-rubyinterp --with-ruby-command=ruby1.9.1
@@ -617,7 +618,7 @@ AUTOCONF = autoconf
617618# PURIFY = purify
618619
619620# VALGRIND - remove the # to use valgrind for memory leaks and access errors.
620- # Used for the unittest targets.
621+ # Used for the unittest targets.
621622# VALGRIND = valgrind --tool=memcheck --leak-check=yes --num-callers=25 --log-file=valgrind.$@
622623
623624# NBDEBUG - debugging the netbeans interface.
@@ -649,15 +650,15 @@ LINT_OPTIONS = -beprxzF
649650# coverage information. (provided by Yegappan Lakshmanan)
650651# 1. make clean, run configure and build Vim as usual.
651652# 2. Generate the baseline code coverage information:
652- # $ lcov -c -i -b . -d objects -o objects/coverage_base.info
653+ # $ lcov -c -i -b . -d objects -o objects/coverage_base.info
653654# 3. Run "make test" to run the unit tests. The code coverage information will
654655# be generated in the src/objects directory.
655656# 4. Generate the code coverage information from the tests:
656- # $ lcov -c -b . -d objects/ -o objects/coverage_test.info
657+ # $ lcov -c -b . -d objects/ -o objects/coverage_test.info
657658# 5. Combine the baseline and test code coverage data:
658- # $ lcov -a objects/coverage_base.info -a objects/coverage_test.info -o objects/coverage_total.info
659+ # $ lcov -a objects/coverage_base.info -a objects/coverage_test.info -o objects/coverage_total.info
659660# 6. Process the test coverage data and generate a report in html:
660- # $ genhtml objects/coverage_total.info -o objects
661+ # $ genhtml objects/coverage_total.info -o objects
661662# 7. Open the objects/index.html file in a web browser to view the coverage
662663# information.
663664#
@@ -1424,6 +1425,11 @@ PROTO_FLAGS = -d -E"$(CPP)" $(NO_ATTR)
14241425
14251426SHELL = /bin/sh
14261427
1428+ # We would normally use "mkdir -p" but it doesn't work properly everywhere.
1429+ # Using AC_PROG_MKDIR_P in configure.ac has a problem with the "auto"
1430+ # directory. Always use the install-sh script, it's slower but reliable.
1431+ MKDIR_P = $(SHELL ) install-sh -c -d
1432+
14271433.SUFFIXES :
14281434.SUFFIXES : .c .o .pro
14291435
@@ -1901,20 +1907,12 @@ autoconf:
19011907 -rm -rf autom4te.cache
19021908 -rm -f auto/config.status auto/config.cache
19031909
1904- # Run Perl to generate the Ex command lookup table. This only needs to be run
1905- # when a command name has been added or changed.
1906- # NOTE: Only works when perl and vim executables are available
1910+ # Run vim script to generate the Ex command lookup table.
1911+ # This only needs to be run when a command name has been added or changed.
1912+ # If this fails because you don't have Vim yet, first build and install Vim
1913+ # without changes.
19071914cmdidxs : ex_cmds.h
1908- if test X` perl -e " print 123" ` = " X123" ; then \
1909- vim ex_docmd.c -c ' /Beginning.*create_cmdidxs/,/End.*create_cmdidxs/! perl create_cmdidxs.pl' -c wq; \
1910- else \
1911- echo Cannot run Perl; \
1912- fi
1913-
1914- # Re-execute this Makefile to include the new auto/config.mk produced by
1915- # configure Only used when typing "make" with a fresh auto/config.mk.
1916- myself :
1917- $(MAKE ) -f Makefile all
1915+ vim -u NONE -i NONE -X -S create_cmdidxs.vim
19181916
19191917
19201918# The normal command to compile a .c file to its .o file.
@@ -2583,7 +2581,7 @@ DESKTOPPATH = $(DESTDIR)$(DATADIR)/applications
25832581KDEPATH = $(HOME ) /.kde/share/icons
25842582install-icons :
25852583 if test -n " $( DESTDIR) " ; then \
2586- $(SHELL ) ./mkinstalldirs $(ICON48PATH ) $(ICON32PATH ) \
2584+ $(MKDIR_P ) $(ICON48PATH ) $(ICON32PATH ) \
25872585 $(ICON16PATH ) $(DESKTOPPATH ) ; \
25882586 fi
25892587
@@ -2624,7 +2622,7 @@ $(DESTDIR)$(exec_prefix) $(DEST_BIN) \
26242622 $(DEST_LANG) $(DEST_KMAP) $(DEST_COMP) $(DEST_MACRO) \
26252623 $(DEST_PACK) $(DEST_TOOLS) $(DEST_TUTOR) $(DEST_SPELL) \
26262624 $(DEST_AUTO) $(DEST_AUTO)/xml $(DEST_PLUG):
2627- -$(SHELL) ./mkinstalldirs $@
2625+ $(MKDIR_P) $@
26282626 -chmod $(DIRMOD) $@
26292627
26302628# create links from various names to vim. This is only done when the links
@@ -2787,7 +2785,8 @@ uninstall_runtime:
27872785# Clean up all the files that have been produced, except configure's.
27882786# We support common typing mistakes for Juergen! :-)
27892787clean celan : testclean macvimclean
2790- -rm -f * .o objects/* core $(VIMTARGET ) .core $(VIMTARGET ) vim xxd/* .o
2788+ -rm -f * .o core $(VIMTARGET ) .core $(VIMTARGET ) vim xxd/* .o
2789+ -rm -rf objects
27912790 -rm -f $(TOOLS ) auto/osdef.h auto/pathdef.c auto/if_perl.c auto/gui_gtk_gresources.c auto/gui_gtk_gresources.h
27922791 -rm -f conftest* * ~ auto/link.sed
27932792 -rm -f testdir/opt_test.vim
@@ -2804,25 +2803,25 @@ clean celan: testclean macvimclean
28042803SHADOWDIR = shadow
28052804
28062805shadow : runtime pixmaps
2807- mkdir $(SHADOWDIR )
2808- cd $(SHADOWDIR ) ; ln -s ../* .[chm] ../* .in ../* .sh ../* .xs ../* .xbm ../gui_gtk_res.xml ../toolcheck ../proto ../vimtutor ../gvimtutor ../mkinstalldirs .
2806+ $( MKDIR_P ) $(SHADOWDIR )
2807+ cd $(SHADOWDIR ) ; ln -s ../* .[chm] ../* .in ../* .sh ../* .xs ../* .xbm ../gui_gtk_res.xml ../toolcheck ../proto ../vimtutor ../gvimtutor ../install-sh .
28092808 mkdir $(SHADOWDIR ) /auto
28102809 cd $(SHADOWDIR ) /auto; ln -s ../../auto/configure .
2811- mkdir $(SHADOWDIR ) /po
2810+ $( MKDIR_P ) $(SHADOWDIR ) /po
28122811 cd $(SHADOWDIR ) /po; ln -s ../../po/* .po ../../po/* .mak ../../po/* .vim ../../po/Makefile .
28132812 cd $(SHADOWDIR ) ; rm -f auto/link.sed
28142813 cp Makefile configure $(SHADOWDIR )
28152814 rm -f $(SHADOWDIR ) /auto/config.mk $(SHADOWDIR ) /config.mk.dist
28162815 cp config.mk.dist $(SHADOWDIR ) /auto/config.mk
28172816 cp config.mk.dist $(SHADOWDIR )
2818- mkdir $(SHADOWDIR ) /xxd
2817+ $( MKDIR_P ) $(SHADOWDIR ) /xxd
28192818 cd $(SHADOWDIR ) /xxd; ln -s ../../xxd/* .[ch] ../../xxd/Make* .
28202819 if test -d $( RSRC_DIR) ; then \
28212820 cd $(SHADOWDIR ) ; \
28222821 ln -s ../infplist.xml . ; \
28232822 ln -s ../$(RSRC_DIR ) ../os_mac.rsr.hqx ../dehqx.py . ; \
28242823 fi
2825- mkdir $(SHADOWDIR ) /testdir
2824+ $( MKDIR_P ) $(SHADOWDIR ) /testdir
28262825 cd $(SHADOWDIR ) /testdir; ln -s ../../testdir/Makefile \
28272826 ../../testdir/Make_all.mak \
28282827 ../../testdir/README.txt \
@@ -2959,7 +2958,7 @@ auto/gui_gtk_gresources.h: gui_gtk_res.xml $(GUI_GTK_RES_INPUTS)
29592958objects : objects/.dirstamp
29602959
29612960objects/.dirstamp :
2962- mkdir -p objects
2961+ $( MKDIR_P ) objects
29632962 touch objects/.dirstamp
29642963
29652964# All object files depend on the objects directory, so that parallel make
@@ -3299,8 +3298,7 @@ install_macosx: gui_bundle
32993298# Generate the help tags file now, it won't work with "make installruntime".
33003299 -@srcdir=`pwd`; cd $(HELPSOURCE); $(MAKE) VIMEXE=$$srcdir/$(VIMTARGET) vimtags
33013300# Install the runtime files. Recursive!
3302- -mkdir -p $(DESTDIR)$(prefix)/$(RESDIR)/vim/runtime
3303- # -mkdir $(DESTDIR)$(prefix)/$(APPDIR)/bin
3301+ $(MKDIR_P) $(DESTDIR)$(prefix)/$(RESDIR)/vim/runtime
33043302 srcdir=`pwd`; $(MAKE) -f Makefile installruntime \
33053303 VIMEXE=$$srcdir/$(VIMTARGET) \
33063304 prefix=$(DESTDIR)$(prefix)/$(RESDIR)$(VIMDIR) \
@@ -3318,16 +3316,16 @@ gui_bundle: $(RESDIR) bundle-dir bundle-executable bundle-info bundle-resource \
33183316 bundle-language
33193317
33203318$(RESDIR ) :
3321- mkdir -p $@
3319+ $( MKDIR_P ) $@
33223320
33233321bundle-dir : $(APPDIR ) /Contents $(VIMTARGET )
33243322# Make a link to the runtime directory, so that we can try out the executable
33253323# without installing it.
3326- mkdir -p $(RESDIR)/vim
3324+ $(MKDIR_P) $(RESDIR)/vim
33273325 -ln -s `pwd`/../runtime $(RESDIR)/vim
33283326
33293327bundle-executable : $(VIMTARGET )
3330- mkdir -p $(APPDIR ) /Contents/MacOS
3328+ $( MKDIR_P ) $(APPDIR ) /Contents/MacOS
33313329 cp $(VIMTARGET ) $(APPDIR ) /Contents/MacOS/$(VIMTARGET )
33323330
33333331bundle-info : bundle-dir
@@ -3358,8 +3356,8 @@ bundle-rsrc: os_mac.rsr.hqx
33583356bundle-language : bundle-dir
33593357
33603358$(APPDIR ) /Contents :
3361- - $( SHELL ) ./mkinstalldirs $(APPDIR ) /Contents/MacOS
3362- - $( SHELL ) ./mkinstalldirs $(RESDIR ) /English.lproj
3359+ $( MKDIR_P ) $(APPDIR ) /Contents/MacOS
3360+ $( MKDIR_P ) $(RESDIR ) /English.lproj
33633361
33643362
33653363# #############################################################################
0 commit comments