Re: [PATCH] Have to configure and build inside the source directory.

Subject: Re: [PATCH] Have to configure and build inside the source directory.

Date: Fri, 28 Jan 2011 17:18:16 -0600

To: Carl Worth

Cc: notmuch@notmuchmail.org, Thomas Schwinge

From: Rob Browning


Carl Worth <cworth@cworth.org> writes:

> What do other build systems generally do when running configure from
> some other directory? Copy/link the Makefiles and then construct them
> carefully such that they can find all the source files?

I think the use of GNU make VPATH is fairly common.  For example, I
believe the autotools build a tree that matches the srcdir structure and
add Makefiles that contain something like this:

  VPATH = ../../wherever/notmuch/thisdir
  ...

Of course, given that, the build tree doesn't include any source files.

FWIW
-- 
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4

Thread: