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

  • your vcs sucks

    I've been hacking on some Haskell stuff lately that's all managed in darcs and it's reminded me of an observation I made over two years ago now (see…

  • jaunty upgrade

    Upgraded to Ubuntu Jaunty. X hung with garbage on the screen after rebooting. Booted into "restore mode" (I forget the exact name), it gave me a…

  • ubuntu summit

    There's an Ubuntu summit going on in Mountain View next week. I'll be there Monday and plan to meet up with someone who's interested in packaging…

  • 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