Commit 1d33f3ff authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

build: Facilitate VPATH bootstraps

In order to bootstrap a $(builddir) outside of $(srcdir) until now the
first step needed was to populate the environment. If for example one
wants to work from a build/ sub-directory the shortest autogen.des
invocation would look like:

    SRCDIR=.. ../autogen.des [configure options...]

Since we can infer $(srcdir) from autogen.des' relative path, it is now
possible to simply do this:

    ../autogen.des [configure options...]

It is still possible to provide a specific SRCDIR, even to a different
directory but the default should now work out of the box.
parent 630817e4
......@@ -2,7 +2,7 @@
#
# Use this when doing code development
SRCDIR=${SRCDIR:-.}
SRCDIR=${SRCDIR:-$(dirname "$0")}
set -ex
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment