Evan Martin (evan) wrote in evan_tech,
Evan Martin
evan
evan_tech

srcdir != builddir

Projects using autotools ("./configure") can be built in a different directory than their source. From any other directory, just run /path/to/configure --whateverflags and things should just magically work. This keeps your source tree cleaner, which makes navigation easier while developing and makes VCSes that track tree inventory (baz inventory, monotone ls unknown) happier. (It also allows building code that's on a read-only or slower file system...)

(Subject to availability. Some projects assume srcdir=builddir and so fail when you try this. autotools are a confusing mess, but it's what we've got, so I typically just try to deal with it.)
Tags: free software
Subscribe
  • Post a new comment

    Error

    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 7 comments