Bug 16619 - [GTK] Autotools shoud default to WebKitBuild as the build directory
Summary: [GTK] Autotools shoud default to WebKitBuild as the build directory
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
Keywords: Gtk
Depends on: 16736
  Show dependency treegraph
Reported: 2007-12-27 00:16 PST by Jan Alonzo
Modified: 2008-01-21 03:17 PST (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Jan Alonzo 2007-12-27 00:16:45 PST
Autotools should default to WebKitBuild as the default build directory. This should avoid littering the source dir with object files and other build artifacts.
Comment 1 Sylvain Pasche 2008-01-04 21:59:12 PST
Usually the build directory is the current directory you are in when invoking configure or autogen.sh.

I looked at a few autogen.sh scripts, and they always use the current working directory as the objdir.

However, there could be a higher level script which would create the WebKitBuild directory, and launch autogen.sh or configure from there. But I'm not sure this brings a lot of added value.

We could rather correct the build documentation to use this WebKitBuild directory (once bug 16736 is fixed):

Instead of 

./autogen.sh --prefix=/path/to/install/directory 

There would be:

mkdir WebKitBuild
cd WebKitBuild
../autogen.sh --prefix=/path/to/install/directory 
Comment 2 Alp Toker 2008-01-21 03:17:08 PST
I would say this is a characteristic of autotools. The correct way to avoid
littering the source tree, as you pointed out yourself, is to build outside of
the source tree.

Please re-open the bug if you disagree.