Evan Martin (evan) wrote in evan_tech,
Evan Martin

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

  • inspiration

    _why: "when you don't create things, you become defined by your tastes rather than ability. your tastes only narrow & exclude people. so create."

  • exceptions

    This bug makes me a little sad. From one of the patches for fixing: - @string = (str.string rescue str) + @string = str.respond_to?(:string) ?…

  • minimal openid consumer

    Here's a minimal OpenID consumer using the Ruby OpenID libraries. (Their included examples only contain Rails spew.) This example is useful for…

  • Post a new comment


    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.