sponsor Vim development Vim logo Vim Book Ad

MakeInBuilddir : runs :make for projects where build and source directories are separated

 script karma  Rating 1/1, Downloaded by 529    Comments, bugs, improvements  Vim wiki

created by
Sylvain Joyeux
 
script type
utility
 
description
Let's consider a libtool/autoconf project where source and build directories are separeted:
  source_dir
  source_dir/build

If you're editing a file in source_dir/src and type Make then
  1/ the name of the build directory will be asked (here 'build') (it is asked only once)
  2/ :make will be run in source_dir/build/src

source_dir is found by searching for configure.ac, configure.in or configure

The following additional commands are defined:
   Compile - compiles the current file by calling the libtool-specific
           :make basename.lo
   MakeAll - runs :make in source_dir regardless of the directory of the current file
   Reconfigure - runs "config.status --recheck" in source_dir/build
   RegenAll - runs "config.status" in source_dir/build
   Run execname - starts execname instead of :make
   Debug execname - start a libtool-wrapped gdb (for libtool generated executables)
 
install details
copy makeinbuilddir.vim in .vim/plugin
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
makeinbuilddir.vim 0.3 2006-10-26 7.0 Sylvain Joyeux Added completion for -C in :Make
makeinbuilddir.vim 0.1 2006-10-23 7.0 Sylvain Joyeux Initial upload
ip used for rating: 54.92.253.128

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo